File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
can i get the form bean from the session?
Joined: May 20, 2004
Jul 14, 2004 11:04:00
I just have a short question:
Say in my struts-config.xml file,
i give one of the form beans to session scope like the following
<action name="detailsForm" type="com.sunlife.dx.paymentinquiry.struts.inquiry.DetailsAction" validate="true" input="/transactionDetails.jsp" scope="session" path="/details"> <forward name="details" path="/transactionDetails.jsp" /> </action>
as you can see , the detalisForm is in the session scope, so let us say in my
page, I would like to refer to the detailForm, can i do the following?
I don't know what exactly I should put in the getAttribute() as parameter,
so if you know the answer, do not hesitate to let me know
Many ..Many Thanks
Joined: Feb 05, 2003
Jul 14, 2004 11:19:00
The "detailForm" is close.
In your mapping you referred to it as detailsForm, so that is the correct
A good workman is known by his tools.
I agree. Here's the link:
subject: can i get the form bean from the session?
Html:link forward +parameter passing
Question about ActionForm in Struts
Problems with Indexed Properties - Repost
Struts JSP/ActionForm error
Where to create Collections for html:options
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013