• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL param  RSS feed

 
Raj Puri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way I can get all resuest parameters in a page. Like

I have a number of parameters in first.html that I pass to valid.jsp. In valid.jsp I am looking to do a call like

"${param[x]}" It will work if I had used this like
${param.lname} but I do not want to use explicit variable name.

Here X is a variable that means one of the paased parameters. I can do this in JSTL1.0 using scriplet but seems with JSTL 1.1. this does not work. I do not want to mix scriplets with JSTL so better if I find a way to do it in JSTL. Any ideas?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two clues:

Clue #1:

The param and paramValues implicit scoped variables are implementations of the Map interface.

Clue #2:

Examine and execute this JSP code fragment:


[ July 05, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suggestion #3:

Please proof-read your posts. Despite the fact that it's only a one-character typo:

resuest parameters


actually took me a few tries to figure out what it was supposed to be.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!