Babak wrote:
I have a table which is generated dynamically in my jsp as I do a jdbc
query. I have created an anchor
<TD><A><HREF="<%bean.getValue()%>?id=rs.getID()%>. ..I believe the
value is posted, since I move my mouse on top of the field and it
displays the right value....but where? I need to know which API I
should use to read id (HTTPServletRequest.getxxx?)
This newsgroup isn't the best place to ask about server-side programming
(it's for HTML, hence the name ciwa.html). In future, please try and find
a suitable newsgroup, you are likely to get much better, faster help.
From the little I know about JSP, it looks like you want the getParameter()
method. Handling query strings is just about as basic as you can get with
server-side scripting, I'm sure you can find the answer in any decent
tutorial.
The HTML you have posted is badly broken, as any validator would tell you:
<URL:http://validator.w3.org/>
Also, remember that the JSP code goes between <% and %>, and that everything
outside of that is plain HTML that will be parsed by the user-agent and not
the server.
--
Jim Dabell