Originally posted by germs germs:
Hi, I am rying something like this but it does not work. It gives me error like "Attribute empId has no value"
<html:link page="/execute/listEmployee?empId=<%= request.getParameter("empId") %>" >EMP</html:link>
Can anyone help?
You need to keep your rtexpr's really simple. Basically, if it has quotes in it, don't do it. Declare a page variable in a scriptlet if you have to, i.e.
<%String empId = request.getParameter("empId");%>
<html:link page="/execute/listEmployee?empId=<%= empId %>" >EMP</html:link>
or, in this very simple case, use the
struts bean define or parameter tags. Then you can use the html:link parameter information for your link...
[ January 13, 2003: Message edited by: David Hibbs ]