This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39547
    
  27
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 - updated with new look and Ping home screen widget
anarkali perera
Ranch Hand

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

Joined: Mar 22, 2005
Posts: 39547
    
  27
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: 3775

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
 
Similar Threads
[RESOLVED] Parameters
question on implicit objects in EL?
Regarding Request Parameter Passing
Global defaults
overriding jspInit() problem