title: JSP using String to create hyperlink <a href>
body: <p>How to use string to create hyperlink with out.print() in JSP?</p>
  
  <p>String [] results link to be displayed in the JSP page.</p>
  
  <pre><code>String [] searchResultTitle;
  String [] searchResultLinks;
  
  
   for(int j=0; j&lt;searchResult.length; j++){
  &lt;p&gt;
  out.print(searchResultTitle[j].toString()) ;
  &lt;/p&gt;
  
  //WHAT TO DO HERE???????????
  &lt; a href = searchResultLinks[j].toString()&gt; 
  
  out.print(searchResultLinks[j].toString()) ;
  
  &lt;/a&gt;
  
  }
  </code></pre>
  
  <p>thanks</p>