I checked the source code of acegi.
protected void sendRedirect(HttpServletRequest request,
HttpServletResponse response, String url)
throws IOException {
if (!url.startsWith("http://") && !url.startsWith("https://")) {
url = request.getContextPath() + url;
}
response.sendRedirect(response.encodeRedirectURL(url));
}
Now I have to change the defaultTargetUrl from "/" to "#defaultTargetUrl#"
and replace it while packaging with ant.
What a pity!
Hope that there will be a better choice.
2007/5/11, Nathan Anderson <[EMAIL PROTECTED]>:
I also have used mod_jk without redirection issues even when the Apache is
handling ssl on the connection.
Nathan
----- Original Message -----
From: "Matt Raible" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, May 10, 2007 4:54:39 AM (GMT-0800) America/Los_Angeles
Subject: Re: [appfuse-user] acegi forward problem
This is probably an Apache + Tomcat configuration issue. I've
recently configured an AppFuse-based application to use Apache +
Tomcat with mod_jk and I didn't have any redirection issues like this
one.
Matt
On 5/10/07, xiuxiu <[EMAIL PROTECTED]> wrote:
>
>
> Hi,All.
> I am using Apache as the web server (port 80) and tomcat as the web
> container(port 5200).
> Here is my acegi configuration.
> <bean id="authenticationProcessingFilter"
> class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
> <property name="authenticationManager" ref="authenticationManager"/>
> <property name="authenticationFailureUrl"
> value="/index.jsp?login_error=1"/>
> <property name="defaultTargetUrl" value="/"/>
> <property name="filterProcessesUrl"
> value="/j_acegi_security_check"/>
> <property name="rememberMeServices" ref="rememberMeServices"/>
> </bean>
> After I login successfully, the acegi will forward to the "/" as I
> configured with the port 5200. So the URL turn to be
> http://localhost:5200/ instead of http://localhost/.
> Please help me. Thanks.
>
> Luo
>
>
> ________________________________
>
> xiuxiu
> 2007-05-10
--
http://raibledesigns.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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]