Attributes and parameters are distinct. Parameters are appended to the end of a request. They can only be strings. Attributes are stored in a ServletContext. Attributes can be any kind of object.
If you use setParameter to store, you must use getParameter to retrieve. If you use setAttribute to store, you must use getAttribute to retrieve. To see your attribute, enumerate the attributes. -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu On Thu, 2003-02-27 at 09:25, Jason Vinson wrote: > I was under the impression that setting an attribute in a request would make it a > parameter in a new page. Am I wrong? > > > -------Original Message------- > From: Jarnot Voytek Contr AU HQ/SC <[EMAIL PROTECTED]> > Sent: 02/27/03 09:17 AM > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: RE: Retaining values through multiple actions > > > > > Are you confusing attributes and parameters? > > -- > Voytek Jarnot > Quidquid latine dictum sit, altum viditur. > > > > -----Original Message----- > > From: Jason Vinson [mailto:[EMAIL PROTECTED] > > Sent: Thursday, February 27, 2003 8:12 AM > > To: Struts Users Mailing List > > Subject: Retaining values through multiple actions > > > > > > I am implementing a page by extending the DispatchAction > > class. I have a value that i pass on the request to the > > second method, which does some logic then forwards to the > > next jsp, but I can't retain the value on the request for the > > new jsp. I set it in the method using setAttribute, but when > > i enumerate the parameterNames, i see no params passed. What > > am i missing? > > > > TIA, > > Jason > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

