Possible Duplicate:
How to get parameters from the URL with JSP
Help please!
I want to extract sessid from "http://111.0000.0000.0000/2-abc-xyz?sessid=32323232-232322323" using JSP .
Try
EL expression
${param.sessid}
Or Java code.
String value=request.getParameter("sessid");
Or
Use java.net.URI,
URI uri=new URI("http://111.0000.0000.0000/2-abc-xyz?sessid=32323232-232322323");
System.out.println(uri.getQuery());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With