Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding jsp:param tag

 
A Babu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

see the sample code below,


in this code for "026" value corresponding "desgcode" is coming,

now my question is i want to get different "desgcodes" for different "values".
can i put more than one "value" in value="" element.if not how can i achive.

please help.

cheers,
babu.
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to give multiple params each with the same name and different value.

The precednce would be in the order you give them. In the above example, it would 026 and then 027

And if the original request originally contained a parameter called desgCode with a value of say '025', that too would be visible to the included/forwarded page and its precedence would be at the end (026, 027, 025).

cheers,
ram.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64607
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually the order would be non-deterministic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic