I think the form bean is stored in the session or request scope by the name
of the action.  So it would be request.getAttribute or session.getAttribute.

request/session option is specified in the actions config.

Taylor

-----Original Message-----
From: T. Wheeler [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 5:47 PM
To: [EMAIL PROTECTED]
Subject: How to access value of a form bean property inside a scriptlet?


I know that scriptlets are generally frowned upon, but can someone please
say how to access the value of a property in a form bean inside a scriptlet?

I need to be able to send the value of that property to a method call inside
the scriptlet, like:

<%
        String fooTranslated = translator.translate(<bean:write name="MyBean"
property="myProp"/>);
%>

Thanks-

Tom

--
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