我有一個頁面太長,無法在一個塊中處理(代碼在try語句中太長),所以我想切入不同的jsp。但是現在我無法在包含的jsp中訪問我的bean,並且我收到在任何範圍內找不到bean:「org.apache.struts.taglib.html.BEAN」。jsp的bean錯誤:include
我查看了互聯網,發現只有一個頁面談論它,它說我的動作定義不能是頁面範圍,我的範圍現在是請求。
這裏是我的Page1.jsp的樣本
<html:form action="editFooBarAction">
<jsp:include page=page2.jsp/>
</html:form>
page2.jsp包含一些HTML代碼:標籤和使用表單bean的。
這裏是我的行動
<action
path="/edit*"
type="com.sham.web.action.{1}Action"
name="{1}Form"
scope="request"
validate="true"
input="edit.{1}">
<forward name="edit" path="edit.{1}"/>
<forward name="view" path="view.{1}"/>
</action>
的定義,反正是有使用JSP:包括這樣呢?