aspose file tools*
The moose likes Servlets and the fly likes where are the request parameters declare Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "where are the request parameters declare" Watch "where are the request parameters declare" New topic
Author

where are the request parameters declare

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
i found there are
1) servlet init parameters
2) context parameters
3) request parameters

i know that servlet init parameters and contwxt parameters are declare on Deployment Descripter.But where are the request parameters declare?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
Those are the parameters that are sent by the browser from within an HTML form. So they would be "declared" by whoever created the HTML/JSP page containing the form.


Ping & DNS - my free Android networking tools app
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
then what about request attributes.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
Request attributes are set/unset/modified by the web app code itself. See the related methods in the HttpServletRequest class.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3829

anarkali perera wrote:then what about request attributes.

Those are server side objects you can set on the request object itself. You attach an object with a name,later you can retrieve it from that name. Attributes can be set on HttpServletRequest, HttpSession, javax.servlet.ServletContext.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where are the request parameters declare