You can send parameter to server by two ways.
1. using form
in html page use form with action property.specify names for elements in
the form whose value you want to send to the server.
<form action=myone.jsp method=post>
User<input type=text name=uname><br>
Password<input type=password name=upass><br>
<input type=submit value=submit>
</form>
2.using link
we can attach querystring to link
<a href="myone.jsp?uname=testvalue" >link to myone.jsp</a>
or we can add querystring by calling javascript function.
in html file you can add code shown above which will send data to myone.jsp
on the server provided both script are in same folder otherwise you will
have to provide address of myone.jsp.
bharat
----- Original Message -----
From: Lorena Carlo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 11:11 PM
Subject: How can I send parameters from an html to a jsp
> Hi all,
>
> Can you tell me how can I send parameters from an html to a jsp, I was
> trying to do the same code that I use to send parameters from a jsp to a
jsp
> but it doesn't work.
>
> Please help me, thanks in advance
>
> Lorena Carlo
>
>
===========================================================================
> 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