• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where are the request parameters declare

 
anarkali perera
Ranch Hand
Posts: 237
  • 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
Posts: 42968
73
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then what about request attributes.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • 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
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic