Are you sure it doesn't say to add an *action-mappings*, rather than
just action-mapping? Assuming that's the case, you need to simply
replace the action-mappings element in struts-config.xml with the one
from the sslext documentation.
L.
Jim Reynolds wrote:
Hello,
I am following the sslext configuration, and it is asking to add a
<action-mapping type="org.apache.struts.config.SecureActionConfig">
element to my struts-config.xml file.
I am not sure how this fits in because most of my knowledge in this is
configuring action-mapping elements. How is this one put in?
Any ideas.
Here is a raw "struts-blank" struts-config.xml
<?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">
<struts-config>
<data-sources>
<!-- configuration for commons BasicDataSource -->
<data-source>
<set-property
property="description"
value="MySQL datasource"/>
<set-property
property="driverClass"
value="com.mysql.jdbc.Driver"/>
<set-property
property="url"
value="jdbc:mysql://localhost:3306/dvdmedia?autoReconnect=true"/>
<set-property
property="maxCount"
value="4"/>
<set-property
property="minCount"
value="2"/>
<set-property
property="user"
value=""/>
<set-property
property="password"
value=""/>
<set-property
property="autoCommit"
value="false"/>
</data-source>
</data-sources>
<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="detailForm"
type="dk.hansen.DetailForm"/>
</form-beans>
<!-- ========== Global Forwards ========================================= -->
<global-forwards>
<forward name="error" path="/error.jsp"/>
</global-forwards>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<action path="/list"
type="dk.hansen.ListDVDAction"
input="/error.jsp">
<forward name="list" path="/list.jsp"/>
</action>
<action path="/detail"
type="dk.hansen.DetailDVDAction"
name="detailForm"
validate="false"
scope="request">
<forward name="detail" path="/detail.jsp"/>
</action>
<action path="/process"
type="dk.hansen.ProcessDVDAction"
name="detailForm"
scope="request"
validate="false">
<forward name="create" path="/create.do"/>
<forward name="update" path="/update.do"/>
<forward name="delete" path="/delete.do"/>
<forward name="cancel" path="/cancel.do"/>
</action>
<action path="/create"
type="dk.hansen.CreateDVDAction"
name="detailForm"
input="/detail.jsp"
scope="request">
<forward name="OK" path="/detail.jsp"/>
</action>
<action path="/update"
type="dk.hansen.UpdateDVDAction"
name="detailForm"
input="/detail.jsp"
scope="request">
<forward name="OK" path="/detail.jsp"/>
</action>
<action path="/delete"
type="dk.hansen.DeleteDVDAction"
name="detailForm"
scope="request"
validate="false">
<forward name="OK" path="/list.do"/>
</action>
<action path="/cancel"
forward="/list.do">
</action>
</action-mappings>
<message-resources parameter="resources.application"/>
</struts-config>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]