4
我有jsp,其中我想包含另一個jsp,它是struts動作的轉發結果。如何從jsp:include或tiles調用struts動作?
我如何使用jsp include/tiles insert或其他方法包含/插入? 任何幫助,將不勝感激。
我有jsp,其中我想包含另一個jsp,它是struts動作的轉發結果。如何從jsp:include或tiles調用struts動作?
我如何使用jsp include/tiles insert或其他方法包含/插入? 任何幫助,將不勝感激。
如果我正確理解你的問題。在你的主JSP中,你想要包含一個內容,這是另一個操作的結果。我不知道JSP:包括或瓷磚,但您可以通過使用
name="beanIncFwd" path="/beanIncludeTest.do"
name="beanIncForm"
)path="/beanIncAction"
和forward="/mypage.jsp"
在你的主JSP,寫在該位置以下您希望包含的內容
豆:包括ID = 「includePart」 向前= 「beanIncFwd」/>
豆:寫名字= 「includePart」 filter =「false」/>
是用struts1還是用struts2? –
@Umesh它是struts-1 –
在jsp:include中使用動作的路徑。請注意,這違反了MVC體系結構。 –