Redirecting form to another controller in spring mvc -
I am using Spring MVC. Here I used JSP as a scene.
I have a condition
I have used
& lt; C: I am subject to another controller, which is subject to another controller, url = "updatestock.IC? Api = '$ {mineral select.appsense id}' and service id = '$ {mineral select science id} 'And mineralid and nm =' $ {minerallist.jet (0). Mineral id}: $ {mineral list .get (0) .mineralName} '/' gt; But it is executed, but the page is not provided. But there is no exception page in the console.
Since I did not find an answer to my comment, I try to give you the best answer with limited knowledge I'll do that, maybe I can.
First of all, I think that this is bad behavior for redirecting your JSP. To be honest, I think that in addition to simple loop and decision branches in its JPS, its bad habit is. I consider the decision to redirect a "business logic" decision, and the one I am not in my JSP. Spring MVC provides several ways to do a redirect in the controller, which does not have the added advantage of not having JSP, and bypasses to render JSP to redirect. There are some examples of redirects in the controller.
If you still set your heart on redirecting to your JSP, then I am looking at whether you are suggesting to break some test equipment, whether you are getting all over Redirection Chrome's Developer Tools and Firefox's firebug are reported on your browser's ability to send. Wisdom is also a good tool for these things the URL you are looking for is an HTTP 3xx header, which is probably 302, at which you are trying to redirect.
If you are not seeing HTTP 3xx response in the browser, then start by asking the following to troubleshoot it:
- Is JSP ever rendered < / Li>
- If this is being rendered, what happens if I debug my redirects?
- There are some arguments around my redirects which can not even execute it (debug statements can avoid this)
As close as possible to the source Start, add debug prints and logging, expand to the next broad area until you determine what is working and which is not working.
Comments
Post a Comment