How to ensure that the page jump remains the same during a Request

Category: Java EE
 
changfs2009
2013-08-20 04:03:15

Sponsored Links
A JSP job ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Sponsored Links

ls2504
2013-08-20 04:17:55
forward ()

detailed explanation see:
guoyimin888
2013-08-20 04:21:14
<jsp: forward ; page = "" />
• the address bar does not change the jump - jump
• server-side execution to jump statement immediately after unconditional jump - After the code is not being executed
• Note: If using forward jumps, then be sure to go all out before releasing the resources
• Use forward ; time, request the property set is still able to retain the next page (setAttribute)
• pass parameters through <jsp:param name="" value=""/>

response.sendRedirect ("address");
• change the address bar to jump - jump
• Client All code is completed and then jump
• can not be saved request attributes - address has changed, the client jump
• By passing the URL rewriting Parameters
jump using the client, you can rewrite the URL way to deliver content over
sdt1989
2013-08-20 04:41:11

agree with <jsp:forward> forwarding, so They shared a REQUEST request, then the request attributes within the shared
xpxpofofof
2013-08-20 04:46:59
<jsp:forward page=""/>
• the address bar does not change the jump ; - Server-side execution to jump
• unconditional jump statement immediately after the jump - after the code is not being executed
• Note: If you use Jump forward, then be sure to go all out before releasing the resources
• Use forward when, request the property set is still able to retain the next page (setAttribute)
• By <jsp:param name="" value=""/> pass parameters

response.sendRedirect ("address");
• change the address bar to jump - jump
• All client code is completed and then jump
• request attributes can not be saved - address has changed, the client jump
• URL address rewriting by passing parameters
jump using the client, you can rewrite the URL way to deliver content over
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.