I am building a web application using
Struts 2 when I come across a seem-to-be weird problem.
Well defined object attributes in action class sometimes cannot not be passed to
JSP. But sometimes it works just fine and everything shows in JSP corretly.
It happens very radomly and I really cannot tell the
pattern.
I have made sure that before the action return 'SUCCESS' the objects are still there, whereas on the jsp side, they turn into nulls.
The following is section of my struts.xml:
<action name="launch" class="org.delta.qa.web.action.MemberInquiryAction" >
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="inputValidator"/>
<result name="success">jsp/MemberInquiry.jsp</result>
<result name="error">jsp/error.jsp</result>
<result name="new_member" type="chain">preprocess</result>
</action>
Do I need to define the object type in struts.xml or somewhere else?
Any help would greatly appreciated!!
Jonathan