• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we add parameter to the request object?

 
rajesh sridhara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can extract the parameters from the request object but we cann't add paramerters to request object.

I learned that <jsp:param \> tag is used to include the parameters in to the request object.

can any one post the reply on this??
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not possible to add parameters to a request. What exactly are you trying to do? There may be other ways to achieve it.

(The jsp:param tag is used to add parameters to an applet tag. It has nothing to do with HTTP request parameters.)
[ February 24, 2008: Message edited by: Ulf Dittmer ]
 
Arjan Times
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
(The jsp:param tag is used to add parameters to an applet tag. It has nothing to do with HTTP request parameters.)


jsp:param is (also) used to store parameters in page scope, which is the scope that is valid for a single page only for a single request, excluding the pages that have included it, or the pages that it includes itself.

As such, jsp:param is used to communicate values to a page that's been included by another page. Page scope is debatable though, since it doesn't exist in JSF anymore and most people seem to 'scale up' to JSF at some point in time. Nevertheless, for the exam you should know exactly what page scope is all about ;)
[ February 24, 2008: Message edited by: Arjan Times ]
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an example of using the jsp aram tag
http://www.exampledepot.com/egs/javax.servlet.jsp/caller.jsp.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic