I had declared scope="session" in my struts_Config.xml file. But when I come to my
JSP page unless I specify scope="session" in bean:write I am not getting the data.
<action
path="/editRequest"
attribute="RequestForm"
name="RequestForm"
scope="session"
input="/jsp/ViewRequest.jsp"
type="com.abc.xyz.ijk.action.request.EditRequestAction">
<forward name="success" path="/jsp/request/jsp/Request.jsp" />
</action>
JSP page
<bean:write name="RequestForm" property="requestOriginator" scope="session"/>
If I explicitly use session.setAttribte("RequestForm") in my EditRequestAction then it is working perfectly without specify scope="session" in struts_Config
Please let me know how to do it with scope="session" struts_Config and without explicitly setting the session attribute in action class and using scope="session" in jsp page.
[ September 01, 2007: Message edited by: Vishnu Prakash ]