Hi Enrigue.

"Enrique Rodriguez" <[EMAIL PROTECTED]> writes:

> When can i get the paremeters from it??? Only When I'm in a JSP?
> 
> I Attach my example. Please take a look.

You seem to be confusing "attributes" with "parameters".  They're not
the same thing.  You're calling setAttribute in Action1 but then in
Action2 you're trying to retrieve the attribute using getParameter.
You must use getAttribute instead.

All of the scope objects (page, application, session, request) provide
an interface to allow you to get and set attributes.  Only the request
object has parameters in addition to attributes.  These parameters are
the ones submitted by the client's browser.  Parameters are immutable
-- you can get them but you can't set them -- so that you can always
tell exactly what was posted from the client.

Make sense?

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

Reply via email to