Hello, I needed to do exactly the same thing and this is what I used in my .jsp:
<jsp:useBean id="info" class="java.util.HashMap" scope="session"/> <%info.put("provider", request.getParameter("provider"); info.put("subs", request.getParameter("subs"));%> <html:link page="/details.do" name="info" > Show details </html:link> This results to page: /details.do?provider=my provider&subs=mysubs. Konstantina > > -----Original Message----- > > From: Kevin J. Turner [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 30, 2002 3:40 PM > > To: Struts Users Mailing List > > Subject: Need help with html:link and passing parameters on the > > querystring > > > > I am trying to use the Struts tag, html:link, but I don't think I > > understand its usage. Basically all I want to do is create a link to a > > page in my application and one or more dynamic parameters in the query > > string. > > > > The non-Struts JSP link went something like this: > > > > <a href=" <http://localhost:8080/myapp/foo.jsp?service=<%= > > request.getParameter(service_name> > > http://localhost:8080/myapp/foo.jsp?service=<%= > > request.getParameter(service_name) %>">Service</a> > > > > I am trying to figure out the Struts equivalent but I am not having any > > luck. I tried something like this: > > > > <html:link page="/foo.jsp?service=<%= request.getParameter("service") > > %>">Service</html:link> > > > > ... but it doesn't like the usage of the request.getParameter(). Can > > anyone help? > > > > I read the Struts documentation and browsed the struts-example app code > > but I'm still not getting this. > > > > K. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>