Here i want to display the alert message using js and in that alert message i want to use the values of the request.getParameter which is coming to my current jsp page. i want to disply a small message window if current jsp page is getting any value in dbresult and in that window i want to provide the link to other jsp page.I am new to jsp and got stucked at this point. please help.How we can provide the value of 'dbresult' to js function? and execute the function only if value is not null?? Here my question is how we can display the 'dbresult' and 'link to othe jsp page' using js alert? how we can pass this to js function? or is there any other way to do this? i am not using jquery.
my code is as below
<div id="header">
<h1>Contingency Form - New/Existing/Home move Customers</h1>
<%
if (request.getParameter("dbResult") != null &&
!"".equals(request.getParameter("dbResult"))) {
%>
<h1>
<%=request.getParameter("dbResult")%>
<%
}
%>
</h1>
</div>