Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL param and reguest.getParameter  RSS feed

 
sasikumar palakkizhi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I used ${param.paramName} in an included jsp page using <jsp:include>, I got the paramName displayed. But in the same place when I used <%= request.getParameter(paramName) %> , it shows an internal server error as "paramName cannot be resolved" what is the reason for this. The relevant part of the code is given below

including page - testInclude.jsp



included page - BasicCounter.jsp


I had referred some earlier discussion on this topics in the forum. What I understood from that discussion is " both are same" . Could anybody point out the problem.

Thanks in advance
sasikumar
 
sasikumar palakkizhi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The problem was due to a syntax error. Though I was working on this problem for a long time, i couldn't notice it. Then I read the already discussed topic "EL param and page scope vars posted on November 22, 2005" a second time, and realised that I should use request.getParameter("paramName") and it worked. The quote was missing in my previous question..

Thanks once again to this forum

Sasikumar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!