I am passing a string value city from action class to a jsp. In my jsp I need to assign this valut to a string variable I tried it this way , and it fails. <% String city=null; %> <% city = <bean:write name="city"/>; %> In my action class I have request.setArrtibute("city",ppp); Can someone please suggest me how should I be doing it? Thanks,
it doesn't work for me: I've an 'org.apache.jasper.compiler.ParseException: /zwhateverz.jsp(184,103) Attribute xwhateverx has no value' exception (Tomcat 4.0.3 internal server error) in the perform method of my Actionservlet: request.setAttribute("fieldList", anArrayList); in my jsp: <%= (ArrayList)request.getAttribute("fieldList")%> Actualy I need to retrieve the ArrayList to be the collection of a logic:iterate Struts tag; is it right?) Help!