Guys,
My apologies upfront. I'm a bit of a
JSP noob, particularly when it comes to JSTL.
I have a list of usernames on my JSP page that I want as hyperlinks to pass to the controller and do a database lookup.
I have two problems. The first, is that when I click the link, it shows as this:
Here is the code in the JSP:
<td style=\"color:red;text-align:left\"><a href=\"/sponsor/manageuser.htm?user=" + "target=\"_self\"> " + listOfMainSponsees.get(i) + " </a></td>
I can see what the problem is, I just don't know how to solve it. And yes, I know, I will be putting all my scriptlet code into JSTL.
The second problem is I have no idea how to get the "user" param to append to the URL. I've combed the web, but alas, no luck.
ANY help would be sincerely appreciated.
Thanks!