File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes regarding  jsp:param  tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "regarding  jsp:param  tag" Watch "regarding  jsp:param  tag" New topic

regarding jsp:param tag

A Babu
Ranch Hand

Joined: Nov 28, 2005
Posts: 114
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.


ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

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).

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

Actually the order would be non-deterministic.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: regarding jsp:param tag
It's not a secret anymore!