How to map request parameter to a bean with different name in struts2

前端 未结 1 1115
花落未央
花落未央 2021-01-20 04:50

I know Struts 2 make automatic mapping from request parameter to action class fields using param interceptor. But what if I want to map a parameter to an action

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-20 05:23

    Use the alias interceptor, nutshell:

    
        
        #{ 'foo' : 'bar' }
    
        
        
        result.jsp
    
    

    0 讨论(0)
提交回复
热议问题