passing parameters using jsp:param tag along with jsp:forward

Hi there,

I am developing one application where in I want to pass the parameter along with forwarding the page.I want to pass certain field values using jsp:param if I am using jsp:forward but it is not working.I am not undestanding what should I do to make it work. Iam using javawebserver2.0.

Please tell me the way out of this ASAP.

Thanx,

Praddy

[387 byte] By [praddy] at [2007-9-18]
# 1
try the following code<jsp:forward page="localURL"><jsp:param name="parameterName1"value="parameterValue1"/><jsp:param name="parameterNameN"value="parameterValueN"/></jsp:forward>
tssathish at 2007-7-4 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanx Satish for ur prompt replyBut could u plz. tell me what do u mean by localURL?Because I tried my program using my file name which is present in my webserver.RegardsPraddy
praddy at 2007-7-4 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 3
can you post u r code here please?
tssathish at 2007-7-4 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 4

> But could u plz. tell me what do u mean by localURL?

> Because I tried my program using my file name which is present in my webserver.

hi praddy,

when i say localURL it should be a html/jsp file within your applications directory. find below a sample code i have used for my testing.

<HTML>

<BODY>

<jsp:forward page="com/org/forward2.jsp">

<jsp:param name="param1" value="value2"/>

</jsp:forward>

</BODY>

</HTML>

but i am not sure whether these would work with JSP1.0 version which JWS2.0 uses. you have to look up in the specifications. Good luck with it.

tssathish at 2007-7-4 > top of java,Enterprise & Remote Computing,Web Tier APIs...