Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Unable to Redirect to the On submitting a form

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic