JSP Array Help



Can anyone tell me how to properly format the URL in this code example
so that is will use words[0] of the array as the identifier and the
display for the link.

Thanks!
<%
String str = request.getParameter("info");
String[] words = str.split("\"\\s");

{

out.println("<tr><td>" + "<a
href=//"HOSTNAME.DOMAIN.COM/reports/rwservlet?server=rep_huaca0001207142&report=test_event_from_map.jsp&desformat=pdf&destype=cache&ssoconn=cii&p_id=\"words[0]\"&paramform=no\">\"<%=words.elementAt(0)%>
+ \"</a></td></tr>");
out.println("<tr><td>" + words[1] + "\"" + "</td></tr>");
out.println("<tr><td>" + words[2] + "\"" + "</td></tr>");
out.println("<tr><td>" + words[3] + "\"" + "</td></tr>");
out.println("<tr><td>" + words[4] + "\"" + "</td></tr>");

}
%>

.



Relevant Pages

  • Re: Perlish map() function
    ... the reference material, the Array constructor was introduced in JavaScript ... evaluation would result in a ReferenceError. ... identifier shows that it is true. ...
    (comp.lang.javascript)
  • Re: For Loops and Variables
    ... common idiom not least amongst them). ... identifiers here -- that's to say that a short identifier is just as ... index's scope is limited to the loop over the array -- which is a very limited ... immediate context. ...
    (comp.lang.java.programmer)
  • Re: questions about arrays
    ... > If an array is declared static in file A is it still valid to access ... An identifier declared as 'static' at ... declaring an object as 'static' prevents ... different platform), then you'll have to use different method of saving ...
    (comp.lang.c)
  • Re: parse efficiently
    ... first column is always an identifier which I don't require, ... 1223*1 cell array ... % classes of unequal/missing alleles and equal alleles ...
    (comp.soft-sys.matlab)
  • Re: How to protectdat in fortran 90 modules
    ... >> it's not clear wether func is an array or a function. ... it's an identifier followed by an assignment operator, ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)