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.
I am developing a application which reads a XML , The values of these XML are set in a "Object" (consumerXML) and that object is set in a list and list will be set in session , Key being "results"
The Flow is like this
1. Welcome JSP whose actionform is consumerxmlActionForm --> No Issues here
2. editxml.jsp Even here the actionform is consumerxmlActionForm --> here list gets populated but doesnt pass the same, back.
The scope of request attribute value is a limited one. The result list set in request scope on ConsumerXMLAction.java and mapping editxml.jsp can obtain the same. Again you are making another request to server by clicking change button. But here you would not get result list in the corresponding action which set in ConsumerXMLAction.java. That needs to be passed thru form. Otherwise change scope as session instead of request.
Joined: Aug 19, 2011
Thanks For your reply
I have changed the scope to session still it is not the list is null... Following is struts-config