• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

EL param and reguest.getParameter

 
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
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic