Results 1 to 2 of 2

Thread: errorsController, I have some questions on it!

  1. #1
    Join Date
    Dec 2004
    Posts
    1

    Default errorsController, I have some questions on it!

    I'm learning a spring sample project which named countries. In countries-servlet.xml I found some code:
    <bean id="errorsController" class="org.springframework.samples.countries.web.E rrorsController">
    <property name="methodNameResolver"><ref local="errorsMethodNameResolver"/></property>
    </bean>
    Yes, it's a bean's reference, but the other code in ErrorsController.java made me puzzle:
    return new ModelAndView("errorHttp404View");
    I don't know how the errorHttp404View mapping to handle in WEB-INF/views/jsp/errors/http404.jsp
    ==Robert==

  2. #2
    Join Date
    Oct 2004
    Location
    Rotterdam, Netherlands
    Posts
    90

    Default

    Countries example uses ResourceBundleViewResolver - it gets the mappings from /WEB-INF/classes/views-countries.properties.

    Code:
    errorHttp404View.attributesCSV=htitle=&#91;error.http404.htitle&#93;,nav=&#91;nav.jsp&#93;,content=&#91;../errors/http404.jsp&#93;
    [/code]

Similar Threads

  1. Replies: 5
    Last Post: Mar 14th, 2005, 10:18 AM
  2. newbe questions
    By jboring in forum Swing
    Replies: 2
    Last Post: Dec 21st, 2004, 11:28 AM
  3. Replies: 2
    Last Post: Dec 20th, 2004, 03:43 PM
  4. Basic Questions Thread
    By jfcone in forum Swing
    Replies: 1
    Last Post: Dec 13th, 2004, 01:02 AM
  5. Questions about FormModel.isDirty()
    By cyboc in forum Swing
    Replies: 10
    Last Post: Oct 22nd, 2004, 01:16 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
  •