You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lucas Gonzalez <lu...@convergia.com.ar> on 2004/01/14 18:01:26 UTC
Getting parameters from html:link
Hi!
I´ve been trying to get aditional parameters that came in a html:link that
with no success.
the link is this one
<html:link action="TrafficReport.do" name="notBilled">
and "notBilled" was aded to the request like this:
public Map getNotBilled() {
Map map = new HashMap();
map.put("type", "NotBilled");
return map;
}
the problem is that when I do a
request.getSession(true).getAttribute("type");
returns null always.
There´s anything i´m doing wrong? I´ve been reading the mailing lists, but
haven´t found something useful...
Best Regards,
Lucas
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Getting parameters from html:link
Posted by Robert Nocera <rn...@neosllc.com>.
I think what you want is:
String type = request.getParameter("type");
-----Original Message-----
From: Lucas Gonzalez [mailto:lucas.gonzalez@convergia.com.ar]
Sent: Wednesday, January 14, 2004 12:01 PM
To: Struts Users Mailing List
Subject: Getting parameters from html:link
Hi!
I´ve been trying to get aditional parameters that came in a html:link that
with no success.
the link is this one
<html:link action="TrafficReport.do" name="notBilled">
and "notBilled" was aded to the request like this:
public Map getNotBilled() {
Map map = new HashMap();
map.put("type", "NotBilled");
return map;
}
the problem is that when I do a
request.getSession(true).getAttribute("type");
returns null always.
There´s anything i´m doing wrong? I´ve been reading the mailing lists, but
haven´t found something useful...
Best Regards,
Lucas
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org