How to forward request from servlet to action of struts2?

前端 未结 2 722
你的背包
你的背包 2020-12-05 03:32

I want to forward a request from Servlet to Action like this using RequestDispacher like this

RequestDispatche         


        
2条回答
  •  孤城傲影
    2020-12-05 04:02

    In order to do this you may also need to set the filter to run on FORWARD (and INCLUDE as your code shows, although you state you want a FORWARD):

    
      struts2
      /*
      REQUEST 
      FORWARD
      INCLUDE 
    
    

提交回复
热议问题