Bhaarat Sharma wrote:
What I wanted to do was that when user edits something and comes back to the listing page, they see a message on top saying id XXX has been modified. However, I think this is not possible because a method name is mentioned in struts.xml. Is that correct?
No.
to try it out I added a private member string called successString in EmployeeAction class and created getter/setters for it. Then in doSave and doDelete methods I added a line that sets the member string. Then on the listing jsp page. I simple added this line <s:property value="successString" default="test"/> However, it seems that the jsp page is never getting the value from getSuccessString method. Can someone please tell me an approach I can take to overcome this problem? Below are the doSave and doDelete methods. public String doDelete() { empService.deleteEmployee(employee.getEmployeeId()); setSampleString("successfully deleted"); return SUCCESS; }
Here you're calling setSampleString(); in the expository text above you reference a property named "successString". Is that a (repeated) typographical error?
Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org