Shubhra 0 Newbie Poster

On clicking on a link at(home.jsp), I ned to forward the request to another page(quickSearch.jsp). With this I have to pass two values to the page. What is the way out?

I created a java script function for it as below
function report_ref(refid)
{

<jsp:forward page="quickSearch.jsp">
<jsp:param name="refid" value='refid' />
<jsp:param name="r1" value="sms" />
</jsp:forward>

/*<form name="report_ref" method="post" action="quickSearch.jsp">
<input type="hidden" name="r1" value="sms">
<input type="hidden" name="refid" value='refid'>
</form>
document.report_ref.submit();
*/
}

'refid' variable contains a value to pass.
Please tell me if there is any syntax error or my method is wrong.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.