struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishal Seth" <visha...@mastek.com>
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 [mailto:johnhurt@gmail.com] 
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:choose>
  <c:when test="${var=='dog'}">
      <html:link href="/strutsAction.do?id=<c:out value="${obj.id
}"/>">text</html:link>
  </c:when>
...</c:choose>

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

<c:choose>
  <c:when test="${var=='dog'}">
      <a href="/app/strutsAction.do?id=<c:out
value="${obj.id}"/>">text</a>
  </c:when>
...</c:choose>

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



MASTEK 
"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
computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message