Hi! I'm new to Struts and have a question regarding how data can/should be passed between an action (extending ActionSupport) and the JavaServer page to which one is then redirected (according to the mapping done in the struts config file).
Should I explicitly store the action/JavaBean in the session object (from the action file) and then retrieve it from the JSP to which I'm redirected?. I've been reading the Struts 2.x documentation, but I can't quite wrap my head around it.
Or is there a Struts tag which can/should be used for this purpose, i.e. to access the fields/getter methods of a bean? The sroperty tag for example? What I'm wondering is if the action/bean object is implicitly made available to the JSP by the framework, and can be accessed using a Struts tag.
Any input would be greatly appreciated.
Thanks.
Should I explicitly store the action/JavaBean in the session object (from the action file) and then retrieve it from the JSP to which I'm redirected?. I've been reading the Struts 2.x documentation, but I can't quite wrap my head around it.
Or is there a Struts tag which can/should be used for this purpose, i.e. to access the fields/getter methods of a bean? The sroperty tag for example? What I'm wondering is if the action/bean object is implicitly made available to the JSP by the framework, and can be accessed using a Struts tag.
Any input would be greatly appreciated.
Thanks.