0

I need to show data from a form object when a page loads. I call the action execute method which loads and set the data in form object. That action execute method sets "success" in

    mapping.findForward("success");

and then it goes to the following forward.

    <forward name="success" path="/pages/showDetails.jsp"/>

This opens up the showDetails jsp. But I am unable to find that how do I pass the form object to this jsp and show them on the jsp page. I have to use struts tag library and no JSTL.

Please help.

romil gaurav
  • 1,121
  • 11
  • 23
  • 43

1 Answers1

0

To get value of form object in Struts1 use this EL syntax:

'${formBeanBame.propertyName}'
Abhijeet Panwar
  • 1,837
  • 3
  • 26
  • 48
  • Also i don't think it is right way. I should be able to pass form object to next view via struts-config.xml – romil gaurav Jul 14 '14 at 06:51
  • can u give code hint on how to get value from request object? – romil gaurav Jul 14 '14 at 07:06
  • Hey..sorry for wrong information , that scenario works in struts2. You just need to use updated result.I have checked it.Let me know if if doe's work for you. – Abhijeet Panwar Jul 14 '14 at 07:33
  • I have to use struts tag and not JSTL of EL. :( Please do the same using struts tags. – romil gaurav Jul 14 '14 at 07:42
  • In case if it does't work or gives jasper exception.Probable cause can be that el requires jstl jar probably.I don't remember that exactly. – Abhijeet Panwar Jul 14 '14 at 07:42
  • I don't think you can do it without El.Because other option will be using Scriptlet(Should be ignored).Struts2 has similiar kind of syntaxes know as OGNL,but strtuts1 does't have something like that. – Abhijeet Panwar Jul 14 '14 at 07:50