your html page:
javascript function:
function submitForm(){
document.form1.item1.value = "whatever";
document.form1.submit();
)
<form name="form1" method="post" action="answer.jsp">
<input type = "hidden" name="item1">
<input type="text" name="item2">
<a href="answer.jsp" onClick="submitForm()" >i wanna see the results</a>
</form>
Jayman Dalal wrote:
> Dear friends,
>
> Hi.
> I have a html page containing few links, all poiniting to same dynamic
> jsp page. Depending on which link does the user click, i have to pass
> parameters to the jsp page and the page will be generated then. Can
> anyone tell me how do i pass parameters to a jsp page thru a html link.
>
> Thanks.
> Jayman
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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".
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