Results 1 to 2 of 2

Thread: Controller question

  1. #1
    Join Date
    Apr 2006
    Posts
    9

    Default Controller question

    I have just started with spring to make a master-detail application.
    The master shows a list of database items correctly. The detail screen is started via a hyperlink with the id as request-parameter. When returning from the detail to the list i got the following errors and exception

    2006-04-13 01:04:06,963 ERROR [org.apache.velocity.app.VelocityEngine] - Method getBindStatus threw exception for reference $springMacroRequestContext in template /WEB-INF/velocity/booklist.htm at [4,33]
    2006-04-13 01:04:06,964 ERROR [org.springframework.web.servlet.DispatcherServlet] - Could not complete request
    org.apache.velocity.exception.MethodInvocationExce ption: Invocation of method 'getBindStatus' in class org.springframework.web.servlet.support.RequestCon text threw exception class java.lang.IllegalStateException : Neither Errors instance nor plain target object for bean name 'command' available as request attribute

    1. what am i doing wrong?
    2. Is there a simple master-detail example available?

    regards,
    Peter

  2. #2
    Join Date
    Jul 2005
    Location
    Russia
    Posts
    118

    Default

    Please, read Spring's Controller hierarchy javadoc to get rid of such errors

Posting Permissions

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