By simply setting up your form like so you can get it to post:

<form name="myForm" method="post" action="/servlet/MyServlet">

Then if you have a standard html submit button inside the form it will use
POST and send the data to the servlet specified in the action.  You could
also use an image or link to submit the form. But you would have to use
javascript.  TO do this you would have a function that gets the FORM object
then you do things like:

FORMOBJECT.action = '/servlet/MyNewServlet';
FORMOBJECT.submit()


----- Original Message -----
From: "Schroder, Bart R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 05, 2001 8:43 AM
Subject: Invoke a submit post via JavaScript


> I'm passing form data to a pure Servlet that then passes the values to a
JSP
> via the RequestDispatcher object.
>
> Unfortunately, the form data values are sensitive in nature.
>
> So how do I encrypt those values (appended to the URL) or how can I invoke
a
> submit (method=post) via the JavaScript in the file containing the form?
>
> Thanks,
>
> Bart Schroder
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to