struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishal Seth" <>
Subject RE: Problem with JSTL and Struts <html:link> tag But Not with <a>
Date Thu, 24 Aug 2006 05:19:48 GMT
Nested tags...i guess does not work..

-----Original Message-----
From: Mississippi John Hurt [] 
Sent: Thursday, August 24, 2006 10:48 AM
To: Struts Users Mailing List
Subject: Problem with JSTL and Struts <html:link> tag But Not with <a>

Why is it that when I do the below with struts <html:link> tag I get an
error "Unterminated &lt;html:link tag" due to using JSTL <c:out>...

  <c:when test="${var=='dog'}">
      <html:link href="/<c:out value="${

but when I use a regular HTML tag, its able to handle the JSTL <c:out>

  <c:when test="${var=='dog'}">
      <a href="/app/<c:out

Any ideas? I very much want to use the Struts tag and JSTL so I dont
have to
hardcode the appname in the href.

"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited,
unless specifically indicated to that effect. Mastek Limited does not accept any responsibility
or liability for it. This e-mail and attachments (if any) transmitted with it are confidential
and/or privileged and solely for the use of the intended person or entity to which it is addressed.
Any review, re-transmission, dissemination or other use of or taking of any action in reliance
upon this information by persons or entities other than the intended recipient is prohibited.
This e-mail and its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and attachments before
opening them. If you have received this e-mail in error, kindly delete this e-mail from all

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message