Unni, I'm not sure if this is related to Struts2. CustomerFacadeLocal looks like an application specific class for your application. You'll need to find out what api this class provides within your application
- Omkar Unnikrishnan wrote: > > 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#a13966734 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]