Does anyone know how to access a Struts form value in a JSP page? I'm trying to populate Struts property values (businessID & businessName) into a JSP hash map.
Nina, The form is just an attribute in the request or session. You can do a jsp:useBean or request/session.getAttribute() call and then access the values.
Why do you need a HashMap in the JSP? Usually logic is done in the Action and only presentation is done in the JSP.
I'm using the Hash map to passed multiple values to the html:link struts tag.
e.g. <html:link name="params" forward="someAction">SomeName</html:html>
I tried using the request.getParameter("businessID"), but it did not work. It is not recognizing the "businessID" form variable I didn't in my struts-config.xml.
Please HeLP!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.