Hi, I try to send an object from servlet to jsp using following: req.setAttribute("NP", target); ... getServletContext().getRequestDispatcher("/my.jsp").forward(req, res);
in my.jsp I have: <% String wa = (String)request.getParameter("NP"); %> <%if (wa == null) wa = "blank";%> <% out.print(wa); %> But it doesn't work :( "blank" always get displayed, which means I'm not getting the object from request in jsp. I have Tomcat 5.5.20, Java 1.5.0_10 knoppix 2007-01 with 2.6.19 kernel Can any body tell how to set an object to be accessable to JSP without using session. Thanks, Mark ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]