-
Apr 15th, 2006, 04:23 AM
#1
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
-
Apr 17th, 2006, 04:40 AM
#2
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
-
Forum Rules