Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: The difference between getParameter and getAttribute ?


Message #1 by adi@a... on Fri, 21 Dec 2001 11:05:54
Thanks very much,

DD


> The main difference functionality-wise is getAttribute() returns an object
> and getParameter() returns a String. Normally, you would use getAttribute()
> to retrieve an object/data structure from a session and getParameter() to
> get data off of an HTML form.
> 
> John Owen
> Senior Developer
> Federal TransTel
> 
> -----Original Message-----
> From: NIkhil Subhash Palshikar [mailto:niko77@r...]
> Sent: Friday, December 21, 2001 10:08 AM
> To: Pro_JavaServer_Pages
> Subject: [pro_jsp] Re: The difference between getParameter and
> getAttribute ?
> 
> 
> 
> hi
> 
> these are two different methods
> getAttribute() returns the attributes related to the request
> on the other hand getParameter() returns the values posted from html Form
> form contained in the page from which the request originated.
> 
> regards
> niko
> 
> On Fri, 21 Dec 2001 adi@a... wrote :
> > Hi,
> > 
> > I am trying to find out the difference between the 
> > following two methods 
> > of the ServletRequest interface:
> > getParameter
> > getAttribute 
> > 
> > They seem to both contain the same information ?
> > 
> > thanks
> > 
> >    DD
> > ---
> > Do you need true END-TO-END (e2e) Java Messaging (JMS)? 
> >  Softwired
> > offers industry's ONLY complete 100% JMS messaging 
> > solutions for your
> > needs TODAY.
> > Visit http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fj-
> > ava%2Dsoftwired&url=www.softwired-inc.com NOW and find
> > out more!
> > Our unique product range includes: iBus//Mobile 
> > (wireless data),
> > iBus//MessageBus (IP Multicast), iBus//MessageServer 
> > (store and forward)
> > and much more!
> > 
> > ---
> > Change your mail options at http://p2p.wrox.com/manager.-
> > asp or 
> > $subst('Email.Unsub').
>  
> 
> 
> ---
> Do you need true END-TO-END (e2e) Java Messaging (JMS)?  Softwired
> offers industry's ONLY complete 100% JMS messaging solutions for your
> needs TODAY.
> Visit
> http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fjava%2Dsoftwired&url=www.so
> ftwired-inc.com NOW and find
> out more!
> Our unique product range includes: iBus//Mobile (wireless data),
> iBus//MessageBus (IP Multicast), iBus//MessageServer (store and forward)
> and much more!
> 

  Return to Index