I believe the change you made means you cannot make a direct request to a given 
page if you are not logged in.  Because after the login you are directed to the 
"defaultTargetUrl".  The way that I did this in a recent project was to change 
"index.jsp" to forward to the page I wanted to be the default rather than 
"mainMenu.html".

Nathan


----- Original Message -----
From: "DNewfield" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, April 26, 2007 8:25:07 AM (GMT-0800) America/Los_Angeles
Subject: Re: [appfuse-user] login to someplace other than mainmenu?


For the archives, here's how I accomplished this:
(I'm certain there are other solutions, maybe cleaner/simpler, but this
works...)

I changed the login link in the menu from login.jsp to login.html.
In the login.html action, if the host/port of the referrer are the same as
the current request, I store the referrer in the session, and remove from
the session any previously stored request that acegi would use to determine
the login redirect (ACEGI_SAVED_REQUEST).  I extended
AuthenticationProcessingFilter as the previously referenced thread suggested
and now cause it to redirect to the saved referrer if it is present and the
ACEGI_SAVED_REQUEST is not (except if alwaysUseDefaultTargetUrl is set).

-Dale
-- 
View this message in context: 
http://www.nabble.com/maven-and-jsps-tf3641389s2369.html#a10202572
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to