Having problem with request.getParameter("plantID")
which shows null
when submiting the info as part of query string i.e,
<form name="frm1" method="post"
action="Form2.jsp?plantId=50&plantName=wxyz">
or in a JavaScript function as
document.frm1.method ="post";
document.frm1.action="Form2.jsp?plantId=50&plantName=wxyz";
document.frm1.submit();
When info from Form1.jsp is sent thru query string to
Form2.jsp, in the page
location
I can see the url same as query
string(http://..../Form2.jsp?plantId=50&plantName=wxyz)
but when I use request.getParameter("..") to retrieve
values it shows null
values.
Even request.getQueryString() works fine.
Does anyone know why this is happenning??
I am using JWS2.0 with jdk1.2.2 on Windows NT4.0
workstation.
The following is the script for Form1.jsp and
Form2.jsp and if it needs any
corrections
or suggestions please let me know.I appreciate your
help.
Form1.jsp :
<%@ page language="java"%>
// -->
Test
onClick="submitInfo();">
Form2.jsp :
<%@ page language="java"%>
Test
ueryString :
PLantID:
PLantName:
Thanks,
Geeta
__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets