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.
Hello Ranchers, In my Action class i have a string variable - myName. I have put this in session i.e. request.getSession(true).setAttribute("Name", myName);
Now i am Forwarded to "xyz.JSP". I want the variable in the previous Action class to be displayed in the JSP.
It can be done through "request.getParameter()". But on submission of xyz.jsp (i am using Validation.xml for validations) if the validation fails - "request.getParameter()" will return null when "xyz.jsp" is redisplayed.
So can someone suggest me, how to display the value in the jsp such that even if validation fails - when the jsp is redisplayed i can have that value.