Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

param in jsp forward

 
sangeeta kapoor
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HF Pg 415

The ONLY places where a <jsp aram> makes sense are within a <jsp:include> or a <jsp:forward> standard action.


So i tried to the following

Contact.jsp


Header.jsp



${subTitle} does not show anything
Is this the correct way of doing it? There is no prob in using <jsp:include>
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use ${param.subTitle}, where param is the implicit EL object, a Map.
 
sangeeta kapoor
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nitish Bahadur:
use ${param.subTitle}, where param is the implicit EL object, a Map.


Thanks
 
Deepa Korecherla
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did the same thing putting ..${param.subTitle}

I don't get the value printed..Its printing....
${param.subTitle}
...why is it not taking value??
 
Baiju Mehta
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To evaluate EL, make sure you are pointing to version 2.4 in your web.xml file.

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic