Hello,
I am having the same issue. I have followed the examples in the
online documentation exactly.
Have you resolved this?
Thanks
> Objectcommand, BindException errors) throws ServletException {
> ....
> }
>
> }
>
> My command class looks like this:
>
> public class LoginCommand {
> private String user;
> private String password;
>
> public String getUser() {
> return user;
> }
> public void setUser(String user) {
> this.user = user;
> }
> public String getPassword() {
> return password;
> }
> public void setPassword(String password) {
> this.password = password;
> }
>
> }
>
> My dispatcher-servlet.xml's appropriate fragment looks like this:
>
> ...
> <beanid="loginFormController"
> class="org.dyndns.orzekanie.controller.LoginFormController">
> <propertyname="successView" value="/navigation/logon"/>
> <propertyname="formView" value="/authexclude/index"/>
> <propertyname="validator" ref="loginValidator"/>
> </bean>
> ...
>
> <beanid="urlMapping"
> class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
> <propertyname="mappings">
> <value>
> /jsp/authexclude/index.html=loginFormController
> </value>
> </property>
> <propertyname="order" value="0"/>
> </bean>
> ....
>
> When I'm trying to run my application and display my form I get:
>
> 2008-01-22 16:59:44,578 610 DEBUG
> [org.dyndns.orzekanie.controller.LoginFormController] (main:)
> Constructor
> 2008-01-22 16:59:44,703 735 INFO
> [org.springframework.web.servlet.DispatcherServlet] (main:)
> FrameworkServlet 'dispatcher': initializatio
> n completed in 203 ms
> 2008-01-22 17:00:33,843 49875 ERROR
> [org.springframework.web.servlet.tags.form.InputTag] (http-8080-
> Processor24:)NeitherBindingResultnorplaintargetobjectforbeanname'loginCommand' available as request
> attributejava.lang.IllegalStateException:NeitherBindingResultnorplaintargetobjectforbeanname'loginCommand' available as request