your action is normally associated with a formbean, if the scope of this
formbean
is larger then "page" (i.e. request, session, application),
you could put the data in the FormBean
(passed as a parameter in the perform - method of your action)


public ActionForward perform(..., ActionForm aForm, ..., ...) {

        aForm.setSomeProperty(backendValue);
        ...
        return forward;
}

and use this formbean on the jsp page
by declaring:
<jsp:useBean id="aForm"
        name="theFormBeanAssociatedWithTheAction" class="..."
        scope="session (simular scope as defined for the FormBean in
stuts-config.xml)"
/>
this way you call the property in the jsp:

<%=aForm.getSomeProperty()%>

or check java.sun.com for more details on how to use beans in jsp's.

Hope this can help !

-----Oorspronkelijk bericht-----
Van: Thorsten Maus [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 15 mei 2002 12:29
Aan: [EMAIL PROTECTED]
Onderwerp: using parameter defined inside Action Form



Hi there...

Im facing a problem Im not yet able to solve..

my action class retrieves content from a backend area.

this data should be made accessable for the jsp-page.

i therefore put the data into public methods inside the action-form..

how can my jsp page now address the parameter ???


thanks in advance

thorsten


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to