JSP Array Help
- From: AZB1400@xxxxxxxxx
- Date: 27 May 2005 14:55:52 -0700
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]\"¶mform=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>");
}
%>
.
- Prev by Date: Re: return more than one object within one method
- Next by Date: Ant LowerCase question
- Previous by thread: applet paint() refresh problems
- Next by thread: Ant LowerCase question
- Index(es):
Relevant Pages
|