struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sakis Chatzinikolaou" <sh...@upatras.gr>
Subject Re: How to access Form object from my -JSP
Date Mon, 03 Feb 2003 05:58:23 GMT
Hi,
Try to use bean:define to define a variable from the FormBean
I think <bean:define id="variableName" name="FormBeanName"
property="propertyBeanName" />

But you better check the documentation for the bean:define tag

Hope this helps

Regards
Sakis

----- Original Message -----
From: "Souravmay Das" <Souravmay.Das@tavant.com>
To: <struts-user@jakarta.apache.org>
Sent: Monday, February 03, 2003 7:35 AM
Subject: How to access Form object from my -JSP


> Hi,
>             I have a JSP which get redirected from the Controller servlet
> now how do
> I access the Form objects from Tag class.
>
> Now my struts-config looks some thing like this
>
> <form-beans>
>     <form-bean      name="logonForm"
> type="org.apache.struts.example.LogonForm"/>
> </form-beans>
> <action    path="/logoff"  type="org.apache.struts.example.LogoffAction">
>       <forward name="success"              path="/index.jsp"/>
> </action>
>
> Now in index.jsp I have a tag which tries to get some thing from the
> LogonForm.
>
> How can I get the form object from my custom Tag.
>
> Any idea , how to make it work.
>
> Regards,
> Sourav Das
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message