Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Problem with "Neither Errors instance nor plain ...&quo

  1. #11
    Join Date
    Jun 2005
    Posts
    1

    Default it's the little 'd' in the class...

    remove the line : setCommandName("eventdetail");

    from your form controller ... you're using eventDetail inside the jsp, note the capital D, but in your controller you're setting it to small d ... if you just let the commandName property in the xml load it you should be fine

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

    Default

    you set the command name in the constructor (incorrectly)
    Yeah, I caught the error in the constructor after I posted the original question
    remove the line : setCommandName("eventdetail");
    This doesn't seem to be the problem.

  3. #13
    Join Date
    Apr 2005
    Posts
    3

    Default

    Make sure that JSP refers to the commandName ( bind tags) as specified in the bean configuration. Invalid bean names/ids in JSPs cause this error.

    Also, I see a bean name conflict i.e., both the bean id and the commandName are same. Make them distinct and you are all set.


    So here are few things for you to do:

    remove from the constructor: setCommandName("eventdetail");
    - This is already set using the properties in the configuration xml.

    Either change the bean id 'eventDetail' to 'eventDetailController' and modify the corresponding handler mapping configuration in the xml if any.

    or

    set the commandName to 'eventDetailForm' and change your jsp to refer to this form name on your c:out(s) i.e., eventDetailForm.description .
    -P

Similar Threads

  1. Replies: 4
    Last Post: Oct 5th, 2005, 11:04 AM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Replies: 6
    Last Post: May 25th, 2005, 01:56 AM
  4. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  5. DefaultAdvisorAutoProxyCreator skipping beans
    By youngm in forum Container
    Replies: 6
    Last Post: Apr 12th, 2005, 04:29 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
  •