struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Römer <torsten.roe...@luniks.net>
Subject Struts2, Tiles2 and Container Managed Security
Date Mon, 16 Apr 2007 23:40:55 GMT
I am trying to use Container managed security with Struts2 and Tiles2.

I created a Tiles definition called "loginTiles" for the login page, and
in my package called "page" with namespace "/page", I have the following
action:

<action name="*" >
  <result type="tiles">{1}Tiles</result>
</action>

I am using this action as <form-login-page> and <form-error-page> in
web.xml:

<form-login-config>
  <form-login-page>/page/login.action</form-login-page>
  <form-error-page>/page/login.action</form-error-page>
</form-login-config>

Now, when I try to access some protected resource, the Container managed
security is requesting the right action, but I get a HTTP 404 error.
If I request the same action direcly from the browser, the login page
comes up fine.

As far as I understand, Container managed security is applied before the
struts2 filter, so when it requests the <form-login-page>, the filter
should "resolve" it, right?

Probably I got this wrong? How can I solve this?

Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message