Hey...
I want to create an formbean in an action, then the action forwards to an jsp. in this jsp the formbean should be availbe with
<logicresent name="myFormBean">
Hello
</logicresent>
How does it work or could I never self create an formbean than struts can use?
ActionCode:
ContactFormAdvanced contactForm = new ContactFormAdvanced(); contactForm.setEmail(form.getEmail()); request.getSession().setAttribute("contactFormAdvanced", contactForm);
Jsp Code:
<logicresent name="contactFormAdvanced">
Hello
</logicresent>
Normally if the struts framework see an actionform that is configured in the struts-config.xml (it is with the same name "contactFormAdvanced") and found in session. It must use it an the attributes...
Thanks for help
I want to create an formbean in an action, then the action forwards to an jsp. in this jsp the formbean should be availbe with
<logicresent name="myFormBean">
Hello
</logicresent>
How does it work or could I never self create an formbean than struts can use?
ActionCode:
ContactFormAdvanced contactForm = new ContactFormAdvanced(); contactForm.setEmail(form.getEmail()); request.getSession().setAttribute("contactFormAdvanced", contactForm);
Jsp Code:
<logicresent name="contactFormAdvanced">
Hello
</logicresent>
Normally if the struts framework see an actionform that is configured in the struts-config.xml (it is with the same name "contactFormAdvanced") and found in session. It must use it an the attributes...
Thanks for help