Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (10.2k points)
In JSP how do I get parameters from the URL?

For example I have a URL www.somesite.com/Transaction_List.jsp?accountID=5

I want to get the 5.

Is there a request.getAttribute( "accountID" ) like there is for sessions or something similar?

1 Answer

0 votes
by (46k points)

Use EL (JSP Expression Language):

${param.accountID}

Related questions

0 votes
1 answer
0 votes
1 answer
asked Sep 10, 2019 in Java by Nigam (4k points)
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...