Total members 11894 |It is currently Thu Nov 21, 2024 5:11 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





I hope there's some jstl exprts here. I'm trying to insert a
dynamic link in an sql output table. Here's my test code:

Code:
<tr>
<!-- add the table column headings -->
<c:forEach var="columnName" items="${name.columnNames}">
<c:choose>
<c:when test="${columnName == 'uname'}">
<td><a link=edit.jsp>test got</a></td>
</c:when>
<c:otherwise>
<td> <c:out value="${columnName}"/> </td>
</c:otherwise>
</c:choose>

</c:forEach>
</tr>


Everything works fine except the link tag and I'm clueless why it doesn't.
Any ideas?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

This is an HTML problem, not JSTL.

The syntax of the <a> tag is wrong. It should be:
Code:
<a href="edit.jsp">

NOT
Code:
<a link=edit.jsp>


I always put quotes around all strings in HTML, JSTL, JSP, etc.

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Can't insert dynamic link in jstl
 Dynamic Domain Name System (Dynamic DNS )     -  
 JSTL URI problem     -  
 insert query example     -  
 Insert using native query     -  
 insert a namespace in a tag with jaxb     -  
 DML Statements, insert row, delete row     -  
 Asp.net insert update delete Examples     -  
 Image Insert in Excel File Using POI     -  
 insert information in html file with java     -  
 How do you 301 redirect a dynamic URL?     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com