java - Sending chosen information from JSP to a servlet when a hyper link is clicked -


i'm using jsp page displays list of "festival names". want link page on click show "profile page" of festival. how send link clicked java servlet can use sql , java send chosen information "profile page" jsp.

<table border ="1">         <tr>             <td>festival name:</td>             <td>location:</td>             <td>start date:</td>             <td>end date:</td>             <td>url:</td>             <td>list of trips </td>         </tr>         <c:foreach items="${allfestivals}" var="festival">         <tr>                   <td>${festival.festivalname}</td>             <td>${festival.location}</td>             <td>${festival.startdate}</td>             <td>${festival.enddate}</td>             <td>${festival.url}</td>             <td><a href="festival_profile.jsp">view festivals</a></td>              ^i have festivals id can sent link in jsp         </tr>         </c:foreach> 

i simple need know how send chosen "festival" id servlet can generate profile jsp. edit : , how catch on servlet

use link

<a href="<c:url value="/servletpath"><c:param name="id" value="${festival.id}"/></c:url>">view festivals</a> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -