Announcement Announcement Module
Collapse
No announcement yet.
Spring MVC - IllegalStateException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MVC - IllegalStateException

    Hi
    I am getting the exception "java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'checkAvaliabilityCmdA' available as request attribute"

    checkAvaliabilityCmdA - is the command class name


    I am getting this exception when using <form:checkbox> tag. when trying to dispaly the information usng jstl is working fine.

    Flow of my application is

    redirect.jsp -> index.jsp (used ParameterisedViewController)
    ->searchFlights.jsp(checkAvailabilityContorller- implements SimpleFormController) ->flightdetails.jsp (FlightDetailsController - implements SimpleFormController)

    I am getting this exception when displaying flightdetails.jsp

    details of the files is given in the attachment

  • #2
    It's looking for a bean named "checkAvaliabilityCmdA". You haven't defined one.

    Comment


    • #3
      the commandname "checkAvaliabilityCmdA" is specified in the dispatcher_servlet.xml file in WEB_INF (present in web.zip)

      Comment

      Working...
      X