1

how can I pass values in get method as php framework in jsp: myhost/MyJSPWeb/urlPatterns/var1/var2? and then get the var1 and var2 value?

BenMorel
  • 31,815
  • 47
  • 169
  • 296

1 Answers1

0

In JSP, you can retrieve the parameters from two ways:

  1. Using scriptlets (NOT RECOMMENDED):

    <%
        String parameter = request.getParameter("var1");
    %>
    
  2. Using Expression Language:

    ${param.var1}
    
Community
  • 1
  • 1
Luiggi Mendoza
  • 83,472
  • 15
  • 149
  • 315