Results 1 to 2 of 2

Thread: Spring tags are not being evaluated in Custom Tags

  1. #1
    Join Date
    May 2005
    Location
    Alpharetta, GA
    Posts
    1

    Default Spring tags are not being evaluated in Custom Tags

    I'm trying to use <spring:message> tag in my custom tag, something like this:
    <templateut name='title' content='<spring:message code="directory.title.home" />' direct='true'/>

    But, it's not being evaluated.
    I even tried putting this in a scriplet...
    <%
    String title = "<spring:message code=\"directory.title.home\"/>";
    %>

    <templateut name='title' content='<%=title%>' direct='true'/>


    this way, it's evaluating title as "<spring:message...."

    Can someone please help me ??

    Thanks...

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Ty:
    Code:
    <c&#58;set var="title"><spring&#58;message code=\"directory.title.home\"/></c&#58;set>
    <template&#58;put name='title' content='<%=title%>' direct='true'/>

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. Using Custom Tags with Spring
    By CaptainMu in forum Web
    Replies: 7
    Last Post: Jul 7th, 2008, 07:00 AM
  4. Replies: 1
    Last Post: May 26th, 2005, 04:14 PM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •