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
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
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
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);