Getting parameters from html:link

2004-01-14 Thread Lucas Gonzalez
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Getting parameters from html:link

2004-01-14 Thread Robert Nocera
I think what you want is:
String type = request.getParameter(type);


-Original Message-
From: Lucas Gonzalez [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]