Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我的 Struts 2 应用程序中返回一个 jsp。Struts 应用程序是用瓦片设置的。一些 jsp 已经在使用带有默认模板或布局的图块。但是对于将嵌入容器中的新 jsp,我需要按原样返回,而无需从tiles.xml. 我该怎么做?
tiles.xml
我认为有两个可能的地方可以进行更改:
有什么建议么 ?
我已经测试了一点。看起来struts.xml,我们可以同时拥有两种风味,一种用于引用tiles.xml,另一种使用位置param。
struts.xml
param
<result name="success">eventHistory</result> <result name="none" type="dispatcher"> <param name="location">/EventHistoryBUIC.jsp</param> </result>