Results 1 to 3 of 3

Thread: how can i get Data in sitemesh decorators?

  1. #1
    Join Date
    Oct 2004
    Location
    China
    Posts
    6

    Default 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. #2
    Join Date
    Oct 2004
    Location
    China
    Posts
    6

    Default

    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!!!!!!!!!!

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

Similar Threads

  1. Replies: 3
    Last Post: Jan 12th, 2011, 03:24 AM
  2. Sitemesh with Velocity Decorators
    By fsamir in forum Web
    Replies: 13
    Last Post: Oct 9th, 2005, 07:40 AM
  3. Multiple Data Sources + Hibernate + Spring
    By joeserel in forum Data
    Replies: 2
    Last Post: May 18th, 2005, 09:22 AM
  4. Replies: 3
    Last Post: Apr 21st, 2005, 03:19 PM
  5. injecting complex configuration data
    By fox9 in forum Container
    Replies: 2
    Last Post: Feb 25th, 2005, 07:23 AM

Posting Permissions

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