users@glassfish.java.net

Passing value from .jsp to Servlet-it passes Null

From: <glassfish_at_javadesktop.org>
Date: Mon, 28 Jan 2008 20:59:24 PST

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