wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Unable to Redirect to the On submitting a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Unable to Redirect to the On submitting a form" Watch "Unable to Redirect to the On submitting a form" New topic
Author

Unable to Redirect to the On submitting a form

deepak dhanwani
Greenhorn

Joined: Dec 07, 2008
Posts: 2
Hello all,

I am new to springframework. I am doing few R&D over this from last one month. I am facing a very stupid problem now a days. The problem is not so big, it is only with simple SimpleFormController. Before describing the problem, i want that please have a look on to the following code.

Web.xml



retailmart-servlet.xml




MeasurementMasterBean.java



MeasurementMasterController.java


WelcomeController.java



welcome.jsp



measurementmaster.jsp




As I think and I have seen in many examples, this code is absultely correct and should work properly, but it is not working fine.
As per my requirement when i click on "Insert" button in "easurementmaster.jsp"page, it should redirect me to the "welcome.jsp". But it not redirecting me there.
Please help me sort out this problem.
Abhi Vuyyuru
Greenhorn

Joined: Mar 10, 2005
Posts: 12
I haven't gone through the whole configuration, but did notice that you don't have an action attribute on your form.
<form method="post">

You must have an action to which you submit the form. You can use your servlet path as the action.


Abhi Vuyyuru
Blog: http://java-x.blogspot.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to Redirect to the On submitting a form
 
Similar Threads
Neither BindingResult nor plain target object for bean name 'vids2m1' available as request attribute
IllegalStateException:Neither BindingResult nor plain target object for bean name available
how to tell MultiActionController Command Object is Of type com.dss.ems.model.User
Spring validation
Not able to Validate form using JSR-303 validation implementation in Spring MVC