On 6/8/06, Olivier Bex <[EMAIL PROTECTED]> wrote:
LoginRequired is referenced in the action tags of each action.
...
<action path="/EmployeListe"
type="com.eyrolles.EmployeListeAction"
scope="request" >
<set-property property="loginRequired" value="true"/>
<forward name="success" path="/employeliste.jsp"/>
</action>
(earlier)
EmployesActionMapping employesMapping =
(EmployesActionMapping)mapping;
// Cette action nécessite-t-elle l'identification de l'utilisateur ?
if ( employesMapping.isLoginRequired() ) {
I don't see where you've told the framework to use your custom
ActionMapping class.
I haven't done this, but from the DTD [1] it looks like you can either set
<action-mappings type="...">
or
<action className="..." >
depending on whether it applies to just one <action> or all of them.
[1] http://struts.apache.org/dtds/struts-config/1_2/
(pick an element, then scroll up to see the docs.)
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]