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]

Reply via email to