...maybe that is what you want to do..?

<jsp:useBean id="myForm" scope="session" type="myPackage.MyForm"/>
<table>
        <tr> 
                <td><%= myForm.getSomething() %> </td>
        </tr>
</table>

where you have to 'deploy' your form with scope 'session'

<form-beans type="org.apache.struts.action.ActionFormBean">

                <!--  MyForm form bean   --> 
                <form-bean name="myForm"
type="myPackage.MyForm" /> 
        
</form-beans>

<action path="/myAction"
                        type="myPackage.MyAction"
                        name="myForm"
                        scope="session"
                        validate="false" 
                        input="/myAction.jsp" 
                        unknown="false">
                        <forward name="success" path="/myAction.jsp"
redirect="false"/>
</action>

-----Ursprüngliche Nachricht-----
Von: Anand Raman [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 1. Februar 2001 17:53
An: struts
Betreff: Re: accessing a property of ActionForm

well I found that <bean:message does the same thing i want..

That solves my problem for the moment..

however how do i get the object from making pure api calls like
request.getAttribute("??????"); when my ActionForm is called "myForm"

thanks
Anand 

On Thu, Feb 01, 2001 at 10:05:48PM +0530, Anand Raman wrote:
>Hi guys
>
>I want to access a property of my ActionForm in a jsp file and use it to
>construct a anchor..
>
>The ActionForm is in the request scope and is being passed to the
>desired jsp page.. (verified using request.getAttributeNames())
>
>However how do i access the value of a property..
>
>Please suggest a way out.. I am not using any html tag lib.. 
>
>I just want to access a property in the ActionForm and construct a
>anchor..
>
>Thanks
>Anand Raman

Reply via email to