display tag with struts2

前端 未结 1 1933
悲&欢浪女
悲&欢浪女 2021-01-27 11:23

I am trying to use display tag for my ArrayList passed from action class.

Action Class

public List getAccessLogList() t         


        
相关标签:
1条回答
  • 2021-01-27 12:19

    finally I fixed it.

    display:table id="accessLogList" name="accessLogList" requestURI="viewLogList.action" pagesize="10" defaultsort="1">

    Please use the action name that will be map to the specific action. It works perfectly.

    for example:

    <action name="viewLogList" 
                    class="test.SessionLogAction">
                    <result name="success">/WEB-INF/pages/Log_list.jsp</result>
                    <result name="input">/WEB-INF/pages/Log_list.jsp</result>
            </action>
    
    0 讨论(0)
提交回复
热议问题