Parameters are values from the HTML form for example.  Attributes can be
objects put there by a servlet which included this servlet to continue
processing.

So:
/servlet/Blah?smile=yes

will invoke Blah servlet and Blah says:

request.setAttribute("face",SmileyFaceObject);
getRequestDispatcher("/servlet/Blah2").include(request,response);

then Blah2 servlet still has access to parameter smile and also to object
called SmileyFaceObject through two different methods:

String smile = request.getParameter("smile");
Object SmileyFaceObject = request.getAttribute("face");

HTH

dave.


Jaejun Lee wrote:

> What's the difference between Attribute and Parameter in
> Request object?
>
> Thank you.
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

--
David Mossakowski              [EMAIL PROTECTED]
Programmer                           212.310.7275
Instinet Corporation

"I don't sit idly by, I'm planning a big surprise"

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to