- This topic has 2 replies, 3 voices, and was last updated 20 years, 10 months ago by support-michael.
-
AuthorPosts
-
Panagiotis KorrosMember– System Setup ——————————-
Operating System and version: Windows 2000 Sp4
Eclipse version: 3.0 m6
Eclipse build id: 200312182000
MyEclipse version: 200401011200-3.7RC2
Eclipse JDK version: Sun 1.4.2_02
Application Server JDK version: Sun 1.4.2_02– Message Body ——————————-
Struts editor flow view doesn’t display scrollbars correctly and you are not allowed to view the whole file.try the above text:
<?xml version=”1.0″ encoding=”ISO-8859-1″ ?><!DOCTYPE struts-config PUBLIC
“-//Apache Software Foundation//DTD Struts Configuration 1.1//EN”
“http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”><!–
This is the Struts configuration file for the example application,
using the proposed new syntax.
–><struts-config>
<!– ========== Form Bean Definitions =================================== –>
<form-beans><form-bean name=”loginForm”
type=”org.apache.struts.validator.DynaValidatorForm”>
<form-property name=”userName” type=”java.lang.String”/>
<form-property name=”password” type=”java.lang.String”/>
</form-bean>
<!– Edit User form bean –>
<form-bean name=”editUserForm”
type=”org.apache.struts.validator.DynaValidatorForm”>
<form-property name=”action” type=”java.lang.String”/>
<form-property name=”id” type=”java.lang.Long”/>
<form-property name=”registrationNumber” type=”java.lang.String”/>
<form-property name=”userName” type=”java.lang.String”/>
<form-property name=”password” type=”java.lang.String”/>
<form-property name=”firstName” type=”java.lang.String”/>
<form-property name=”lastName” type=”java.lang.String”/>
<form-property name=”email” type=”java.lang.String”/>
<form-property name=”userStatus” type=”java.lang.Integer”/>
<form-property name=”userLocation” type=”java.lang.Integer”/>
<form-property name=”userRoles” type=”java.lang.Integer[]”/>
<form-property name=”outOfOffice” type=”java.lang.Boolean”/>
<form-property name=”imported” type=”java.lang.Boolean”/>
</form-bean><form-bean name=”editUsersPositionsForm”
type=”org.apache.struts.validator.DynaValidatorForm”>
<form-property name=”action” type=”java.lang.String” initial=”Create”/>
<form-property name=”id” type=”java.lang.Long”/>
<form-property name=”list” type=”java.lang.String”/>
<form-property name=”userName” type=”java.lang.String”/>
<form-property name=”firstName” type=”java.lang.String”/>
<form-property name=”lastName” type=”java.lang.String”/>
<form-property name=”organicPositionName” type=”java.lang.String”/>
<form-property name=”organicPositionId” type=”java.lang.Long”/>
<form-property name=”positionName” type=”java.lang.String”/>
<form-property name=”positionId” type=”java.lang.Long”/>
<form-property name=”positionsList” type=”java.lang.Long[]”/>
</form-bean><form-bean name=”editTypeForm”
type=”org.apache.struts.validator.DynaValidatorForm”>
<form-property name=”action” type=”java.lang.String” initial=”Create”/>
<form-property name=”id” type=”java.lang.Integer”/>
<form-property name=”isPositionType” type=”java.lang.Boolean”/>
<form-property name=”isOrgUnitType” type=”java.lang.Boolean”/>
<form-property name=”name” type=”java.lang.String”/>
</form-bean><form-bean name=”editOrgUnitForm”
type=”org.apache.struts.validator.DynaValidatorForm”>
<form-property name=”action” type=”java.lang.String”/>
<form-property name=”id” type=”java.lang.Long”/>
<form-property name=”code” type=”java.lang.String”/>
<form-property name=”name” type=”java.lang.String”/>
<form-property name=”typeId” type=”java.lang.Integer”/>
<form-property name=”parentOrganizationalUnitName” type=”java.lang.String”/>
<form-property name=”parentOrganizationalUnitId” type=”java.lang.Long”/>
<form-property name=”status” type=”java.lang.Integer”/>
</form-bean><form-bean name=”editPositionForm”
type=”org.apache.struts.validator.DynaValidatorForm”>
<form-property name=”action” type=”java.lang.String”/>
<form-property name=”id” type=”java.lang.Long”/>
<form-property name=”code” type=”java.lang.String”/>
<form-property name=”name” type=”java.lang.String”/>
<form-property name=”typeId” type=”java.lang.Integer”/>
<form-property name=”parentOrganizationalUnitName” type=”java.lang.String”/>
<form-property name=”parentOrganizationalUnitId” type=”java.lang.Long”/>
<form-property name=”status” type=”java.lang.Integer”/>
<form-property name=”organic” type=”boolean” initial=”false”/>
<form-property name=”reportsToName” type=”java.lang.String”/>
<form-property name=”replacedByName” type=”java.lang.String”/>
<form-property name=”reportsToId” type=”java.lang.Long”/>
<form-property name=”replacedById” type=”java.lang.Long”/>
</form-bean><form-bean name=”serveTableForm”
type=”com.zubarev.htmltable.action.ServeTableForm”/>
</form-beans><global-exceptions>
<exception
key=”general.error”
type=”java.lang.Exception”
path=”/error.jsp”/>
</global-exceptions><!– ========== Global Forward Definitions ============================== –>
<global-forwards>
<forward name=”error”
path=”/error.jsp”/><forward name=”logout”
path=”/logout.do”
redirect=”true”/>
<forward name=”createUser”
path=”/editUser.do?action=Create”
redirect=”true”/>
<forward name=”viewUser”
path=”/viewUser.do?action=view”
redirect=”true”/>
<forward name=”editUser”
path=”/editUser.do?action=edit”
redirect=”true”/>
<forward name=”editUserPositions”
path=”/editUserPositions.do”
redirect=”true”/>
<forward name=”createPosition”
path=”/editPosition.do?action=Create”
redirect=”true”/>
<forward name=”viewPosition”
path=”/viewPosition.do?action=view”
redirect=”true”/>
<forward name=”editPosition”
path=”/editPosition.do?action=edit”
redirect=”true”/>
<forward name=”selectPosition”
path=”/selectPositions.do”
redirect=”true”/>
<forward name=”createOrgUnit”
path=”/editOrgUnit.do?action=Create”
redirect=”true”/>
<forward name=”loadOrgUnitXml”
path=”/loadOrgUnitXml.do”
redirect=”true”/>
<forward name=”selectOrgUnit”
path=”/viewOrgUnitTree.do?action=select&id=root”
redirect=”true”/>
<forward name=”viewOrgUnit”
path=”/viewOrgUnit.do?action=view”
redirect=”true”/>
<forward name=”editOrgUnit”
path=”/editOrgUnit.do?action=edit”
redirect=”true”/>
<forward name=”deleteOrgUnit”
path=”/deleteOrgUnit.do”
redirect=”true”/>
<forward name=”deleteOrgUnitType”
path=”/deleteOrganizationalUnitType.do”
redirect=”true”/>
<forward name=”deletePositionType”
path=”/deletePositionType.do”
redirect=”true”/>
<forward name=”deletePosition”
path=”/deletePosition.do”
redirect=”true”/>
<forward name=”deleteUser”
path=”/deleteUser.do”
redirect=”true”/>
<forward name=”createOrgUnitType”
path=”/editOrgUnitType.do?action=Create”
redirect=”true”/>
<forward name=”editOrgUnitType”
path=”/editOrgUnitType.do?action=edit”
redirect=”true”/>
<forward name=”createPositionType”
path=”/editPositionType.do?action=Create”
redirect=”true”/>
<forward name=”editPositionType”
path=”/editPositionType.do?action=edit”
redirect=”true”/>
</global-forwards><!– ========== Action Mapping Definitions ============================== –>
<action-mappings>
<action path=”/login”
type=”exodus.orgchart.web.actions.LoginUserAction”
name=”loginForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/login.jsp”/>
<forward name=”message” path=”/fullmessage.jsp”/>
<forward name=”success” path=”/index.jsp”
redirect=”true”/>
</action><action path=”/logout”
type=”exodus.orgchart.web.actions.LogoutUserAction”
name=”loginForm”
scope=”request”
validate=”false”>
<forward name=”success” path=”/login.jsp”
redirect=”true”/>
</action><!– User –>
<action path=”/viewUser”
type=”exodus.orgchart.web.actions.EditUserAction”
name=”editUserForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/ViewUser.jsp”/>
<forward name=”readonly” path=”/ViewUser.jsp”/>
</action><action path=”/editUser”
type=”exodus.orgchart.web.actions.EditUserAction”
name=”editUserForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/EditUser.jsp”/>
<forward name=”readonly” path=”/ViewUser.jsp”/>
</action><action path=”/saveUser”
type=”exodus.orgchart.web.actions.SaveUserAction”
name=”editUserForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/EditUser.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><action path=”/deleteUser”
type=”exodus.orgchart.web.actions.DeleteUserAction”
name=”userListForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/SearchUsers.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><action path=”/editUserPositions”
type=”exodus.orgchart.web.actions.EditUsersPositionsAction”
name=”editUsersPositionsForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/EditUsersPositions.jsp”/>
</action><action path=”/saveUsersPositions”
type=”exodus.orgchart.web.actions.SaveUsersPositionsAction”
name=”editUsersPositionsForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/EditUsersPositions.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><!– Types –>
<action path=”/editOrgUnitType”
type=”exodus.orgchart.web.actions.EditOrgUnitTypeAction”
name=”editTypeForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/EditType.jsp”/>
</action><action path=”/editPositionType”
type=”exodus.orgchart.web.actions.EditPositionTypeAction”
name=”editTypeForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/EditType.jsp”/>
</action><action path=”/saveType”
type=”exodus.orgchart.web.actions.SaveTypeAction”
name=”editTypeForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/EditType.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><!– Org Unit–>
<action path=”/loadOrgUnitXml”
type=”exodus.orgchart.web.actions.LoadOrgUnitAction”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/OrgUnitXml.jsp”/>
</action><action path=”/viewOrgUnitTree”
type=”exodus.orgchart.web.actions.LoadOrgUnitAction”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/OrgUnitTree.jsp”/>
</action><action path=”/viewOrgUnit”
type=”exodus.orgchart.web.actions.EditOrgUnitAction”
name=”editOrgUnitForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/ViewOrgUnit.jsp”/>
<forward name=”readonly” path=”/ViewOrgUnit.jsp”/>
</action><action path=”/editOrgUnit”
type=”exodus.orgchart.web.actions.EditOrgUnitAction”
name=”editOrgUnitForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/EditOrgUnit.jsp”/>
<forward name=”readonly” path=”/ViewOrgUnit.jsp”/>
</action><action path=”/saveOrgUnit”
type=”exodus.orgchart.web.actions.SaveOrgUnitAction”
name=”editOrgUnitForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/EditOrgUnit.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><action path=”/deleteOrgUnit”
type=”exodus.orgchart.web.actions.DeleteOrgUnitAction”
name=”OrgUnitListForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/OrganizationalUnitList.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><!– Position –>
<action path=”/viewPosition”
type=”exodus.orgchart.web.actions.EditPositionAction”
name=”editPositionForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/ViewPosition.jsp”/>
<forward name=”readonly” path=”/ViewPosition.jsp”/>
</action><action path=”/editPosition”
type=”exodus.orgchart.web.actions.EditPositionAction”
name=”editPositionForm”
scope=”request”
validate=”false”>
<forward name=”failure” path=”/message.jsp”/>
<forward name=”success” path=”/EditPosition.jsp”/>
<forward name=”readonly” path=”/ViewPosition.jsp”/>
</action><action path=”/savePosition”
type=”exodus.orgchart.web.actions.SavePositionAction”
name=”editPositionForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/editPosition.do”/>
<forward name=”success” path=”/message.jsp”/>
</action><action path=”/deletePosition”
type=”exodus.orgchart.web.actions.DeletePositionAction”
name=”serveTableForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/PositionSearch.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><action path=”/listPositions”
type=”exodus.orgchart.web.actions.SearchPositionsAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”success” path=”/PositionList.jsp”/>
<forward name=”delete”
path=”/deletePosition.do”/>
</action><action path=”/selectPositions”
type=”exodus.orgchart.web.actions.SelectPositionsAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”success” path=”/PositionSearch.jsp”/>
</action><action path=”/selectPositionResults”
type=”exodus.orgchart.web.actions.SelectPositionResultsAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”success” path=”/PositionSelect.jsp”/>
<forward name=”delete”
path=”/deletePosition.do”/>
</action>
<!– HTMLTable actions –><action path=”/ServeTable”
type=”com.zubarev.htmltable.action.ServeTableAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”defaultMapping” path=”/jsp/index.jsp”/>
<forward name=”errorMapping” path=”/jsp/index.jsp”/><forward name=”ListUsers” path=”/listUsers.do”/>
<forward name=”ListPositions” path=”/listPositions.do”/>
<forward name=”SelectPositions” path=”/selectPositionResults.do”/>
<forward name=”ListPositionTypes” path=”/listPositionTypes.do”/>
<forward name=”ListOrgUnitTypes” path=”/listOrgUnitTypes.do”/>
<forward name=”ListOrganizationalUnits” path=”/listOrganizationalUnits.do”/>
</action><action path=”/AdjustTableEdit”
type=”com.zubarev.htmltable.action.AdjustTableEditAction”
scope=”request”
validate=”false”>
<forward name=”success” path=”/jsp/htmltableAdjust.jsp”/>
</action><action path=”/AdjustTableSave”
type=”com.zubarev.htmltable.action.AdjustTableSaveAction”
scope=”request”
validate=”false”>
<forward name=”success” path=”/jsp/htmltableAdjust.jsp”/>
</action><!– Application actions –>
<action path=”/listUsers”
type=”exodus.orgchart.web.actions.SearchUsersAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”success”
path=”/UserList.jsp”/>
<forward name=”delete”
path=”/deleteUser.do”/>
</action><action path=”/listPositionTypes”
type=”exodus.orgchart.web.actions.SearchPositionTypeAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”success”
path=”/PositionTypeList.jsp”/>
<forward name=”delete”
path=”/deletePositionType.do”/>
</action><action path=”/deletePositionType”
type=”exodus.orgchart.web.actions.DeletePositionTypeAction”
name=”serveTableForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/PositionTypeList.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><action path=”/listOrgUnitTypes”
type=”exodus.orgchart.web.actions.SearchOrganizationalUnitTypeAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”success”
path=”/OrganizationalUnitTypeList.jsp”/>
<forward name=”delete”
path=”/deleteOrganizationalUnitType.do”/>
</action><action path=”/deleteOrganizationalUnitType”
type=”exodus.orgchart.web.actions.DeleteOrganizationalUnitTypeAction”
name=”serveTableForm”
scope=”request”
input=”failure”>
<forward name=”failure” path=”/OrganizationalUnitTypeList.jsp”/>
<forward name=”success” path=”/message.jsp”/>
</action><action path=”/listOrganizationalUnits”
type=”exodus.orgchart.web.actions.SearchOrganizationalUnitsAction”
name=”serveTableForm”
scope=”request”
validate=”false”>
<forward name=”success” path=”/OrganizationalUnitList.jsp”/>
<forward name=”delete” path=”/deleteOrgUnit.do”/>
</action></action-mappings>
<!– ========== Controller Configuration ================================ –>
<controller>
<!– The “input” parameter on “action” elements is the name of a
local or global “forward” rather than a module-relative path –>
<set-property property=”inputForward” value=”true”/>
<!– don’t cache pages –>
<set-property property=”nocache” value=”true”/>
</controller><!– ========== Message Resources Definitions =========================== –>
<message-resources
parameter=”exodus.orgchart.web.ApplicationResources”
null=”false”/><!– ========== Plug Ins Configuration ================================== –>
<plug-in className=”org.apache.struts.plugins.ModuleConfigVerifier”/>
<plug-in className=”org.apache.struts.validator.ValidatorPlugIn”>
<set-property property=”pathnames”
value=”/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml”/>
</plug-in><plug-in className=”com.zubarev.htmltable.HTMLTablePlugIn”>
<set-property property=”config” value=”/WEB-INF/html-table.xml”/>
<set-property property=”images” value=”/images/htmltable”/>
<set-property property=”actionPath” value=”/ServeTable”/>
<set-property property=”actionPathMapping” value=”.do”/>
</plug-in></struts-config>undefined
Riyad KallaMemberI believe this is a known bug, I’ll check with Scott before marking it as such.
support-michaelKeymasterYep, we have a PR on this topic for the 2.7RC1-2 release. We should have it knocked out for the GA release.
-
AuthorPosts