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
  • 34,448
  • 50
  • 182
  • 322

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
  • 85,076
  • 16
  • 154
  • 332