This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
when i try to edit i am getting an errror
[ERROR] [jsp] - Servlet.service() for servlet jsp threw exception <tag 'push', field 'value': You must specify a value to push on the stack. Example: person - [unknown location]>tag 'push', field 'value': You must specify a value to push on the stack. Example: person - [unknown location]
yeah getter/setter methods are set properly. If I remove that stack it works good. Users is my actionclass
could you please let me know if something is wrong..
Joined: Aug 29, 2008
I'm a bit confused. From your jsp, it looks like you are trying to push an object named "user" to the top of your stack. The most convetional way to do this is to have a private object in your action class (seeing your struts.xml file might clear things up a little) called "user" and a getter method for user. If your Users class is your action class, I don't think the push will work since I don't see a private object called "user" and its getter (I also don't see a method that would return the result string, but your srtuts.xml file might clear that up as well).
When you say
If I remove that stack it works good.
I assume you mean removing the push. That makes sense if Users is your action class, since it will already be on top of the stack and there for id, name, gender, country, and aboutYou are already accessible as names. If its working the way you want with out the push, why are you putting the push in the jsp?