[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: cannot get parameter value in action class passed using html:link
From: Vinod Kumar <vkmatri () yahoo ! com>
Date: 2006-09-29 20:26:49
Message-ID: 20060929202649.24808.qmail () web52901 ! mail ! yahoo ! com
[Download RAW message or body]
I have following in page definition:-
<tiles:insert page="layout-tiles.jsp" flush="true">
<tiles:put name="head" value="head.jsp"/>
<tiles:put name="top" value="top.jsp"/>
<tiles:put name="bottom" value="bottom.jsp" />
<tiles:put name="content" value="login-body.jsp"/>
</tiles:insert>
In my bottom.jsp page, I create a link like
<bean:define id="print" value="YES" scope="request" />
<html:link action="/setup.do" paramId="print"
paramName="print" scope="request">Printable
version</html:link>
When I click on the "Printable version",it should pass
parameter print=YES to the setup.do
but when I check in the action class it does not
return anything. this is the way I try to get value in
aciton class
System.out.println("PRINT VALUE =
"+request.getParameter( "print" ));
Sometime, the printable link looks like
http://localhost:81/myapp/setup.do;jsessionid=xrlq86pj71?print=YES
even if i trim it to
http://localhost:81/orion/setup.do?print=YES , no
value is received in action class.
I really appreciate the help on this.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic