Author Login
Post Reply
I have impplemented model driven and preparable interfaces in my struts 2
action class .I want to prepopulate an obect on the jsp .In the getModel()
i have returned the object whose properties are required on jsp page
(object which is to be pushed on value Stack).When i populate the object in
the prepare method then the object properties are available as normal on
jsp,if i populate the object in the execute method and then forwarding to
jsp i dont get any values pre populated on jsp , however i am able to access
the properties by using "object.propertyname" fomat .Why is it so that the
model is not available on the jsp in case of execute method and is readily
available in case of initialization in prepare method ? .I have used a
prepareParamsPrepare interceptor stack.I have used almost same code in
other actions and there its working fine .
--
Sent from the Struts - User mailing list archive at Nabble.com.