如何更有效的获取知识?

今天上午一直在试图解决一个display tag和webwork的结合的问题,一会查源码,一会找jsp tag 的相关的东东,但是一直没有办法,最后看到display的例子,上面有说:
Please note that the basic export functionality will not work when the JSP page is included in another page via a jsp:include or the RequestDispatcher. Front end frameworks such as Struts and Tiles will do this behind the scenes. If you want to use export functionality in any of these scenarios, you must configure an export filter (configuration is explained in the displaytag documentation). Also, make sure you check the FAQ on displaytag website.

于是去display网站。Frequently Asked Questions
How do I use this tag with Struts? The links that it creates for sorts and exports all point back to the JSP page, not my Action!
Use the requestURI attribute of the column tag. When the requestURI attribute is present, links for sorting, exports, and paging are formed by adding any tag generated parameters to the value of requestURI attribute. So if your page is served under /ManageLatin.do , you should have requestURI="/ManageLatin.do" on your display:table.

Using the requestURI attribute with an empty "" attribute is another strategy. Sometimes you don't know what the uri is because the table might be part of an included tile. The resulting URL will be a link that is based upon the original requestURI + the appended display tag parameters.

问题解决,看来以后Frequently Asked Questions,这是一个不错的地方。能比较快速的解决问题。

你可能感兴趣的:(jsp,struts,Webwork)