how to use jstl's c:url tag

I have a situation where in i need to have a link beside all my rows displayed in a table inside a JSP.Now this particular link should be associated with a parameter preferably one of the column in the row displayed & should forward me to a servlet where in i can use the parameter and execute a query to retrive data from the database.can you please help me in coding by providing an example similar to this. One of my friends told me i can use jstl's c:url tag.If yes please provide me with a proper example sir.

I am not able to get the correct code I am displaying the student list in the jsp using c:forEach i need to have a hyper link to the column rollNo which takes me to the mentioned Servlet(BasicServlet)(or) should have a hyperlink "edit" in each row.(either of these mentioned will serve my purpose) I have tried putting this piece of code in the <td></td> tag of the table <c:forEach var="s" items="studentList"> <a href="<c:url value="/BasicServlet" > <c:param name="rollNo" value="${s["rollNo"]}"/> </c:url>>"edit </a> studentList is my studentArray(named a in another servlet) which holds 10 student objects request.setAttribute("studentList",a); Is this piece of code written by me is right .please guide me with the right syntax.

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information. You can go back and change your post to add code tags by clicking the .