Web Notice

Forward (Chuyển tiếp) & Redirect (điều hướng)

Forward : When request of brower send to Servlet, it can forward request to a page other or servlet orther. notice address of URL in brower user still is adress of page the first, but content of page is view page is forwarded. Page forward is page (or servlet) in application not outside. 

Redirect : When request of brower send to Servlet A, servlet A can redirect request to servlet other or page other and done reposibility of servlet A.  

Example:

 



Error Code Status

301: Moved Permanently (chuyển hướng vĩnh viễn) address old to address new

401: if not logged-in or session expired

403: if user not have permission to access resource

404 : not found resource


 

 

0 comments :

Post a Comment

Cancel Reply

About Me

My photo
Tân An, Long An, Vietnam
Hello everyone, I love programming, I love making friends with people all over the world.