Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where are the request parameters declare

 
anarkali perera
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
anarkali perera
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then what about request attributes.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Request attributes are set/unset/modified by the web app code itself. See the related methods in the HttpServletRequest class.
 
Vijitha Kumara
Bartender
Posts: 3909
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
anarkali perera
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic