Note that there are some explanatory texts on larger screens.

plurals
  1. POaction-servlet?
    text
    copied!<p>I'm new to Java WEB Development please help with this !!</p> <p>my link in the action-servlet is </p> <blockquote> <p><a href="http://myproject.co.in:9090/a/userSignUp.action" rel="nofollow">http://myproject.co.in:9090/a/userSignUp.action</a></p> </blockquote> <p>i got a new user registration page and i have given an action for the log in button..</p> <p>but if i click the button its redirecting to this page ..</p> <p>please help and thank you for your time and kindness !!</p> <p>here's my code</p> <p>for userSignUp.action - controller is LoginController and the jsp has login and password text fields and a submit button.</p> <p>on click of that button userHome.action is called..</p> <p>and here's my code</p> <pre><code>&lt;bean id="handlerMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt; &lt;property name="mappings"&gt; &lt;props&gt; &lt;prop key="/api/Logout.action"&gt;LogoutController&lt;/prop&gt; &lt;prop key="/secure/userSignUp.action"&gt;LoginController&lt;/prop&gt; &lt;prop key="/a/userHome.action"&gt;userHomeController&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre> <p>and for the bean id i'm posting a controller </p> <pre><code>&lt;bean id="userHomeController" class="com.ghg.web.controller.UserHomeController" autowire="byName"/&gt; </code></pre> <p>and in that controller</p> <pre><code> public final ModelAndView handleRequest(HttpServletRequest request,HttpServletResponse response) throws Exception { log.debug("-- At User Home Controller --"); return new ModelAndView("/user/userHome.jsp"); } </code></pre> <p>in userHome.jsp there's no code just a plain html text</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload