<a href="/path/jsp_page.jsp?param=value&param2=value2">

if you need to have the items done "dynamically" from the html page, then
use javascript onclick="" such as:

<a href="/path/jsp_page.jsp" onclick="javascript:
gotoLink('/path/jsp_page.jsp')">click</a>

Then, have a JS function, gotoLink() that adds the ?param=value dynamically,
then goes to that page via the
document.href.location=passed_in_link+my_dynamic_param_value_list;

where pass_in_link is the page passed in from the onclick call, and
my_dynamic_param_value_list is one or more params set to values created in
the function gotoLink() and assigned values based on some form fields in the
form.


> 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

===========================================================================
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

Reply via email to