>But I don't...the bean seems to automatically be available to the jsp.
It is automatically available with something like
<bean:write name="mybean" property="thePropertyName"/>
If you don't specify 'cope' attribute, it lokk in session, request and
application scope.
Of course, it must be a forward from on action to another else, if there
is a redirect, all 'request' attributes are losts.
If it still don't work could you provide same code sample ?
Mike
Rick Schumeyer a écrit :
I'm trying to understand how and when beans are available within
struts. (1.3.5)
For example, if my Action class contains code like:
MyBean mybean = new MyBean() // NOT an ActionForm, just a regular bean
I would have thought (and the docs suggest) that I would need
something like
request.setAttribute("mybean", mybean);
in order to use this bean in the jsp that the action eventually
forwards to. But I don't...the bean seems to automatically be
available to the jsp.
Now if I wanted to make the bean available beyond request scope, then
would I need to use the request.setAttribute?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Mike Baroukh
---
Cardiweb - 31 Rue de Mogador Paris IXeme
06 63 57 27 22 - 01 53 21 82 63 - Jabber: [EMAIL PROTECTED]
http://www.cardiweb.com
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]