Sunday 17 August 2014

Spring Exception

org.apache.jasper.JasperException: java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491) 


The above exception relates the command object
It will occur following scenario.
 1.when  command  object to view page not properly set into the page.
2.command object name misspelled 
 
 

Saturday 16 August 2014

Spring Login Example.

Spring Login with username and password.

Following example demonstrate the simple login in web page.

I have used annotation for the controller

user name:  bala
password : bala123
spring Login Example war

Page 1  Login page:











Page 2 : Success Page:



Page 3 Failure Page
When user enter Incorrect  Username or password.


Following link contains the war file to execute the login spring application

spring Login Example war