javajspservletsjstljstl-functions

How to read form parameter data using JSP without using scriptlet


I want to read the form parameter data using scriptlet in #jsp. But i do not want to use any java code in JSP. Then do i need Expression Language or #JSTL or what?


Solution

  • Just noting this here in case anyone else has a similar issue. If you're directing a request directly to a JSP, using Apache Tomcat web.xml configuration, then ${requestScope.attr} doesn't seem to work, instead ${param.attr} contains the request attribute attr.