Announcement Announcement Module
Collapse
No announcement yet.
how can i get Data in sitemesh decorators? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how can i get Data in sitemesh decorators?

    in spring mvc, Controller's referenceData can offer data to a view

    but in sitemesh's decorators, how can i get data throw controller?

    for example: in webwork
    i can use
    Code:
    <ww&#58;action name="'getTopUrls'" id="getTopUrls"/>
    
    <ww&#58;iterator value="#getTopUrls.topUrls">
        ....
    </ww&#58;iterator>
    
    
        <decorator&#58;body />
    can i do this in spring-mvc?

  • #2
    can i use spring controller to offer a decorator page?
    such as :
    Code:
    <decorator name="main" page="main.form">
    main.form can visit by http://localhost/spring/decorators/main.form

    but the page (index.form) which want to be decoratored,just got a blank page

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=gb2312"></HEAD>
    <BODY></BODY></HTML>

    and log4j got this
    Code:
     WARN PageNotFound   &#58;501 - No mapping for &#91;/spring/index.form&#93; in DispatcherServlet with
    name 'spring'
    if remove sitemesh filter,i can visit [/spring/index.form]

    who can help me!!!!!
    thanks very much!!!!!!!!!!

    Comment


    • #3
      Does this help:
      http://wiki.opensymphony.com/display...on+with+Spring

      Comment

      Working...
      X