How to get the original request url from a servlet/jsp after multiple servlet forwards

前端 未结 6 753

I am working on a cruise booking app using struts/tiles that uses multiple internal servlet/jsp forwards to reach the right jsp for display. But, once you r

6条回答
  •  春和景丽
    2020-12-29 03:35

    You can show it without using a bean reference with the following:

    
    

    Of course, you need to map the 404 page in your web.xml file though.

    
        404
        /xhtml/pg/error/404.xhtml
    
    

提交回复
热议问题