Hi
I am new to Struts 2. I would like to know how to retrieve last inserted id.
I have page called "welcome" where I have 3 fields (name, telephone, email)
my execute method is as follows.
public String execute() throws Exception {
CustomerFacadeLocal customerFacedeLocalObj= lookupCustomerFacade();
Customer customerObj = new Customer();
customerObj.setName(getName());
customerObj.setTelephone(getTelephone());
customerObj.setEmail(getEmail());
customerFacedeLocalObj.create(customerObj);
return SUCCESS;
}
So after this insertion happens , i need to take the last inserted id.
Please help
Thanks in advance
Unni
--
View this message in context:
http://www.nabble.com/Retrieving-last-inserted-ID-tf4880006.html#a13965438
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]