I hope this helps you !!!
<script language = "javascript">
function SubmitForm()
{
document.form1.submit();
}
</script>
.....
<form name = form1 method = "post" action = "aaa.jsp">
....
<input type = submit onClick = SubmitForm();>
Anubhav
-----Original Message-----
From: Schroder, Bart R [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 4:43 PM
To: [EMAIL PROTECTED]
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
_______________________________________________________
DATA SECURITY - PLEASE READ
This communication may contain information which is CATALOGA confidential
and may also be privileged. It is for exclusive use of the intended
recipient(s). If you are not the intended recipient(s) please note that any
form of distribution, copying or use of this communication or information in
it, is strictly prohibited and may be unlawful.
If you have received this communication in error please forward it to
[EMAIL PROTECTED], then delete the email and destroy any copies of
it.
Thank you for your cooperation.
_______________________________________________________
===========================================================================
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