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?
Asked
Active
Viewed 38 times
1
-
For downvoter/voter to close: this question is very specific and has a direct answer. – Luiggi Mendoza May 10 '14 at 16:23
1 Answers
0
In JSP, you can retrieve the parameters from two ways:
Using scriptlets (NOT RECOMMENDED):
<% String parameter = request.getParameter("var1"); %>
Using Expression Language:
${param.var1}

Community
- 1
- 1

Luiggi Mendoza
- 85,076
- 16
- 154
- 332