Are you setting the value with JavaScript?  Your HTML declaration doesn't
have a
VALUE attribute.  If that's the case, look carefully at the circumstances
under
which the JavaScript is executed.

-----Original Message-----
From: Willy LEGIMAN [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 3:57 AM
To: [EMAIL PROTECTED]
Subject: Hidden field NULL values after POST


I have encountered a very strange issue with JSP when I submit a form with
hidden field.
The value of the hidden field is displayed as null when I do a
request.getParameter("pSHIP") after submitting the form for the first time.

But when I click on Back (on the browser) to go back and submit the form
again, the value is correctly displayed!

1. I have a Form with <input type="hidden" name="pSHIP">
2. When I submit the form I set pSHIP.value to "OCEAN2001"
3. JSP displays value of pSHIP as null
4. Go back & submit the form again
5. JSP displays value of pSHIP as "OCEAN2001"

Anyone has any ideas why this happens? I'm working from JDeveloper 3.1.

Regards
Willy

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to