Reputation: 227
I want to send values from a jsp to the servlet via href.. but i dont know how to append the data.. pls use jstl tags only no servlets pls... i checked this pass values from jsp to servlet using <a href> but they utilize scriplets..
<tr div class="even">
<td style="font-size:14px;">
<a href="/myproject/s/permanentUserAuctionHistory?aid=" <c:out value="${auctionDo.auctionId}"/>>
<c:out value="${auctionDo.auctionId}"/> </a></td>
Upvotes: 0
Views: 1821
Reputation: 12983
Double quote (") after aid=
inside the href
attribute breaks the href
.
You can just use JSTL
<a href="/myproject/s/permanentUserAuctionHistory?aid=${auctionDo.auctionId}">
<c:out value="${auctionDo.auctionId}"/>
</a>
OR
<a href="/myproject/s/permanentUserAuctionHistory?aid=${auctionDo.auctionId}">
${auctionDo.auctionId}
</a>
Upvotes: 1