title: How to disply data on JS alert window by taking it from request.getparameter
body: <p>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.</p>
  
  <p>my code is as below</p>
  
  <pre><code>&lt;div id="header"&gt;
      &lt;h1&gt;Contingency Form &amp;#45; New/Existing/Home move Customers&lt;/h1&gt;
      &lt;%
          if (request.getParameter("dbResult") != null &amp;&amp;
              !"".equals(request.getParameter("dbResult"))) {
      %&gt;
          &lt;h1&gt;
              &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
              &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
              &lt;%=request.getParameter("dbResult")%&gt;
      &lt;%
          }
      %&gt;
          &lt;/h1&gt;
  &lt;/div&gt;
  </code></pre>