Hi Paul,

Thanks for you reply. I haven't solved the problem yet.
I have a jsp page that posts back to itself. A.jsp --- POST ---> A.jsp

When I use the POST method, what I get is a network connection error
by my browser (Netscape) which then terminates the transaction. Somehow,
its not an error appearing on my tomcat (jswdk) server.

How would I receive the parameters from a POST?
Currently I'm using request.getParameter("Parameter1") from my GET methods.
Is there a different one for methods using POST?

regards,
Cheong Takhoe

-----Original Message-----
From:   Paul Holser [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, October 26, 1999 8:42 PM
To:     '[EMAIL PROTECTED]'
Subject:        RE: Posting in jsp

hi cheong....

there really isn't any mystery to it...just use an HTML
form like you normally would:

<FORM METHOD=POST ACTION=/the/url/to/hit/with/the/post>
Type password here:
<INPUT NAME=pin TYPE=password>
<INPUT TYPE=submit VALUE="Login">
<FORM>

now, when the user types a password and clicks the
Login button, the URL in ACTION will be hit with a query
parameter "pin", with the value of the password.  you may
wish to encrypt this somehow for security.

note also that if you use URL rewriting instead of cookies
for session tracking, you must do the URL rewrite in the
ACTION like so:

<FORM METHOD=POST ACTION=<% response.encodeURL( "/the/url" ) %>

hth,
p

--
Paul Holser -- Designer/Developer, Consulting
ObjectSpace, Inc.  http://www.objectspace.com
14850 Quorum Dr. Ste. 500, Dallas TX 75240 USA
1.972.726.4560 / 1.800.OBJECT1 x4560


> -----Original Message-----
> From: Cheong Takhoe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 25, 1999 10:24 PM
> To: [EMAIL PROTECTED]
> Subject: Posting in jsp
>
>
> Hi,
>
> I seem to have difficulty in trying to submit a POST with jsp.
> My transactions could only work with GET but this is not ideal if
> I'm having the user to validate their entry.
>
> Is there anyone with a sample of how to properly use the POST for
> my users to submit their passwords? Or is there an alternative
> way to doing this?
>
> regards,
> Cheong Takhoe
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to