This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 41151
    
  45
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: 41151
    
  45
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: 3817

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where are the request parameters declare
 
Similar Threads
overriding jspInit() problem
[RESOLVED] Parameters
Regarding Request Parameter Passing
Global defaults
question on implicit objects in EL?