For Programmers: Free Programming Magazines  


Home > Archive > Java Help > January 2006 > passing and testing for a query string









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author passing and testing for a query string
Cardinal

2006-01-21, 9:57 pm

I'm new to JSP 2.0 and have been struggling with just trying to pass a
query string. I have looked in three JSP books (although only one of
them is written for JSP 2.0) and I have searched on the internet to no
avail. I have a link like this:

<a href="bookDB3.jsp?id=${row.id}&action=delete">Delete</a>

I want it to pass the id back to the same page. When I rest the pointer
over the link it seems to be doing its job as I see the actual id
number, etc.

Then I want to test for the id url variable and I'm using code like
this:

<c:if test="${param.id}">
hey
</c:if>

Can someone tell me how I test for this url variable? Thank you very
much.

Also,
has anyone ever seen a basic add/edit/delete tutorial for JSP 2.0?

Paulus de Boska

2006-01-31, 7:07 pm

This lesson may help :

http://javalessons.com/cgi-bin/jsp/...d=jqr&sid=ao789

---
Paul Hamaker, SEMM
http://javalessons.com

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com