• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding <jsp:param>

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HFSJ on page No.412 They have explained about "Cutomizing the include content <jsp:param>" following code snippet is given.



Its mentioned that
<jsp:inlcude> can have BODY, so that you add(or replace) request parameters that the included thing can have.

In above statement is request parameter differnet then what i know(request.getParameter(String)) or different.

can anyone please ALSO explain me what they are trying to explain by telling that ".... so that you add (or replace) request parameters that the included thing can have".

Thanks in Advance.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jsp:include page will have access to the original request, so it can use the original request parameters too. You can add some new request parameters to the included page by using this jsp:param tag. Parameters used with jsp:param will override those with the same name in the original request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic