[struts2] Taglib and freemarker -> insert bodyContent

Discussion in 'Java' started by OTB, Dec 15, 2006.

  1. OTB

    OTB Guest

    Hi, I succeeded to create a taglib using a ftl template.
    I can esaly access from the template to my parameters with
    ${parameters.XXX},
    but how to insert, inside my template, the body content of my tag ?

    I would like to generate this :

    START
    some large generated stufff
    my <b>custom</b>content
    some large generated stuff2
    END


    with that code :

    START
    <tag:test>
    my <b>custom</b> content
    </tag:test>
    END


    Thanks.
     
    OTB, Dec 15, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris
    Replies:
    1
    Views:
    1,420
    Oliver Wong
    Apr 15, 2006
  2. Q1tum
    Replies:
    1
    Views:
    2,611
    Q1tum
    Jun 22, 2007
  3. theog
    Replies:
    0
    Views:
    925
    theog
    Jul 7, 2008
  4. timjowers

    RAD7 and Struts2 404 error

    timjowers, Oct 16, 2008, in forum: Java
    Replies:
    0
    Views:
    951
    timjowers
    Oct 16, 2008
  5. theog
    Replies:
    0
    Views:
    587
    theog
    Nov 13, 2008
Loading...

Share This Page