--- Jae K <[EMAIL PROTECTED]> wrote: > The only difference between your implementation and > mine is that you put the originalUrl in a session > whereas I store it away in the client. They're both > the same 'cleanlinest' i think.
If you say so; it sure seemed like yours was a lot of work, and frankly I'd rather role and/or login-aware actions implemented something specific to that functionality, for a couple of reasons. So when I compare these chunks: <param name="location"> ${#parameters['origurl'] == null ? 'Welcome.do' : #parameters['origurl']} </param> <s:form action="Login.do" validate="true"> <s:if test="${param.origurl ne null}"> <s:hidden name="origurl" value="${param.origurl}"/> </s:if> etc. to: <action name="login" class="resume.LoginAction"> <result name="input"> /WEB-INF/jsp/resume/login.jsp </result> <result name="success" type="redirect"> ${originalUrl} </result> </action> <action name="page1" class="resume.Page1Action"> <param name="roles">role1, role2</param> <result>/WEB-INF/jsp/resume/page1.jsp</result> </action> ... and a ~50-line interceptor I can't help but like it. If you chain the login action result it's even easier and more encapsulated, but so far I prefer the login url appears for login rather than holding on to the original request URL; I'm still undecided. > Dale, I was considering ACEGI / SecurityFilter, but > I still had to make sure that this feature was > *possible* before deciding to use Struts. I think S2 handles this trivially, but if something else handled it better, then what would it matter? Regarding OGNL documentation, bear in mind that OGNL is a *completely* separate project. The basics are mostly covered on the Wiki, if you need more information than that then the OGNL reference documentation would be the reasonable place to look. d. ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]