java - Trying to send form data from html to Controller in Stripes Framework, But it is not allowing -


this code tries send form data html controller

$("#btnsubmitsignup").live("click", function(e) {          e.preventdefault();                  var firstname = $("#firstname").val();         var lastname = $("#lastname").val();                     var email = $("#email").val();         var password = $("#password").val();                      $.post("/app/signup/signup",{firstname:firstname,lastname:lastname,email:email,password:password })             .done(function(data) {                 //$('#enquiry').reveal();                 $(".enqurymsg").show();                 $(".enqurymsg .enqsuccessmessage h5").text("thank sign up").addclass("enqsuccess");         }).fail(function () {             $(".enqurymsg").show();             $(".enqurymsg .enqsuccessmessage h5").text("error in sign      up").addclass("enqerror");         });     });     @urlbinding("/signup/{$event}/{activationkey}")     public class registrationaction extends baseactionbean {     public resolution signup() {          user user = new user();         user.setfirstname(firstname);         user.setlastname(lastname);         user.setemail(email);         user.setpassword(password);    }  } 

getting following exception

exceptional detail:

net.sourceforge.stripes.exception.sourcepagenotfoundexception: here's how is. (quite possibly stripes dispatcher) neede d source page resolution. no source page supplied in request, , unless override actionbeancontext.getsour cepageresolution() you're going need value. when use <stripes:form> tag hidden field called '_sourcepage' included.  if write own forms or links generate validation errors, must include value  parameter. can  done calling request.getservletpath().         @ net.sourceforge.stripes.action.actionbeancontext.getsourcepageresolution(actionbeancontext.java:239)         @ net.sourceforge.stripes.controller.dispatcherhelper.handlevalidationerrors(dispatcherhelper.java:388)         @ net.sourceforge.stripes.controller.dispatcherservlet.handlevalidationerrors(dispatcherservlet.java:270)         @ net.sourceforge.stripes.controller.dispatcherservlet.service(dispatcherservlet.java:156)         @ javax.servlet.http.httpservlet.service(httpservlet.java:848)         @ net.sourceforge.stripes.controller.dynamicmappingfilter$2.dofilter(dynamicmappingfilter.java:431)         @ net.sourceforge.stripes.controller.stripesfilter.dofilter(stripesfilter.java:260)         @ net.sourceforge.stripes.controller.dynamicmappingfilter.dofilter(dynamicmappingfilter.java:418)         @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1476)         @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:499)         @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:137)         @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:557)         @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:231)         @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1086) 

i getting above exception while trying send form data html controller

this happens when have validation error , stripe not know page issued request ajax request.use form sumit form submission after validation. try check validation failing in user domain.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -