Re: problem: accessing object created in servlet from jsp

2007-03-30 Thread Mark
Oh, what a typo! Thanks a lot! Mark --- Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: > Mark wrote: > > req.setAttribute("NP", target); > > [...] > > <% String wa = (String)request.getParameter("NP"); %> > > > They simpy do not match ;-) > Use request.getAttribute() instead. > > -- > Mikolaj

Re: problem: accessing object created in servlet from jsp

2007-03-30 Thread Mikolaj Rydzewski
Mark wrote: req.setAttribute("NP", target); [...] <% String wa = (String)request.getParameter("NP"); %> They simpy do not match ;-) Use request.getAttribute() instead. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature

Re: problem: accessing object created in servlet from jsp

2007-03-30 Thread Hassan Schroeder
On 3/30/07, Mark <[EMAIL PROTECTED]> wrote: I try to send an object from servlet to jsp <%if (wa == null) wa = "blank";%> But it doesn't work :( "blank" always get displayed, which means I'm not getting the object from request in jsp. Or the object really is null :-) Does it show up if

problem: accessing object created in servlet from jsp

2007-03-30 Thread Mark
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);