Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Parameter From URL in JSP [duplicate]

Tags:

jsp

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 .

like image 865
Ravi Kasaudhan Avatar asked Feb 18 '26 14:02

Ravi Kasaudhan


1 Answers

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());
like image 116
KV Prajapati Avatar answered Feb 21 '26 00:02

KV Prajapati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!