users@glassfish.java.net

Re: Passing value from .jsp to Servlet-it passes Null

From: Jacob Hookom <jacob_at_hookom.net>
Date: Tue, 29 Jan 2008 00:06:44 -0600

If the form is a POST type, then you can run into problems... why don't
you just do:

location.href = '../jsp/UpdateServlet?paramName2='+trialno;


?

glassfish_at_javadesktop.org wrote:
> I have a parameter,whose value I am passing from .jsp to servlet
>
> but it is passing Null
>
> JSP code:
>
> function aboutMeUpdate(trialno)
> {
> document.aboutMe.action = '../jsp/UpdateServlet?paramName2='+trialno;
> document.aboutMe.submit();
> }
>
>
> Servlet code:
>
> String paramName2 =request.getParameter("paramName2");
>
>
> Please help
> [Message sent by forum member 'shopperswing' (shopperswing)]
>
> http://forums.java.net/jive/thread.jspa?messageID=256253
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>