How can I create a button to submit that once clicked send me to another page.
Someone can give me an example?
How can I create a button to submit that once clicked send me to another page.
Someone can give me an example?
Code:import org.springframework.web.servlet.mvc.SimpleFormController; public class LoginController extends SimpleFormController { @Override public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws ServletException, IOException { // u r logic goes here }
Nidhin
See the examples which ships with Spring release. They are really good examples to start from.
if a trainstation is where the train stops, what's a workstation...
Hangon, you've not said if this is actually going to be form that accepts user info. If it is just a button (instead of a text link) that takes you to another page you can always use <button onClick="""> and then put some javascript into the onClick, it does not have to post to a spring controller.