You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by jm...@apache.org on 2006/09/19 23:43:11 UTC

svn commit: r447983 - /maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml

Author: jmcconnell
Date: Tue Sep 19 14:43:10 2006
New Revision: 447983

URL: http://svn.apache.org/viewvc?view=rev&rev=447983
Log:
fix the redirect on registration to go to the login page as opposed to the browse page

Modified:
    maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml

Modified: maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml?view=diff&rev=447983&r1=447982&r2=447983
==============================================================================
--- maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml (original)
+++ maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml Tue Sep 19 14:43:10 2006
@@ -64,8 +64,14 @@
       <result name="security-login-success" type="redirect-action">browse</result>
       <result name="security-login-cancel" type="redirect-action">browse</result>
       <result name="security-logout" type="redirect-action">browse</result>
-      <result name="security-register-success" type="redirect-action">browse</result>
-      <result name="security-register-cancel" type="redirect-action">browse</result>
+      <result name="security-register-success" type="redirect-action">
+        <param name="actionName">login</param>
+        <param name="namespace">/security</param>
+      </result>
+      <result name="security-register-cancel" type="redirect-action">
+        <param name="actionName">login</param>
+        <param name="namespace">/security</param>
+      </result>
       <result name="security-account-success" type="redirect-action">browse</result>
       <result name="security-account-cancel" type="redirect-action">browse</result>
       



Re: svn commit: r447983 - /maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml

Posted by Jesse McConnell <je...@gmail.com>.
well, is that what we want?  I have seen it go both ways.

maybe we could make it an option configurable in the application.xml
configuration or something..

but ya, we can do that.  joakim? see any issues with that?

jesse

On 9/19/06, Brett Porter <br...@apache.org> wrote:
> Shouldn't the registration action actually log you in without
> prompting, then redirect to browse?
>
> On 20/09/2006, at 7:43 AM, jmcconnell@apache.org wrote:
>
> > Author: jmcconnell
> > Date: Tue Sep 19 14:43:10 2006
> > New Revision: 447983
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=447983
> > Log:
> > fix the redirect on registration to go to the login page as opposed
> > to the browse page
> >
> > Modified:
> >     maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml
> >
> > Modified: maven/archiva/trunk/archiva-webapp/src/main/resources/
> > xwork.xml
> > URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-
> > webapp/src/main/resources/xwork.xml?
> > view=diff&rev=447983&r1=447982&r2=447983
> > ======================================================================
> > ========
> > --- maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml
> > (original)
> > +++ maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml
> > Tue Sep 19 14:43:10 2006
> > @@ -64,8 +64,14 @@
> >        <result name="security-login-success" type="redirect-
> > action">browse</result>
> >        <result name="security-login-cancel" type="redirect-
> > action">browse</result>
> >        <result name="security-logout" type="redirect-
> > action">browse</result>
> > -      <result name="security-register-success" type="redirect-
> > action">browse</result>
> > -      <result name="security-register-cancel" type="redirect-
> > action">browse</result>
> > +      <result name="security-register-success" type="redirect-
> > action">
> > +        <param name="actionName">login</param>
> > +        <param name="namespace">/security</param>
> > +      </result>
> > +      <result name="security-register-cancel" type="redirect-action">
> > +        <param name="actionName">login</param>
> > +        <param name="namespace">/security</param>
> > +      </result>
> >        <result name="security-account-success" type="redirect-
> > action">browse</result>
> >        <result name="security-account-cancel" type="redirect-
> > action">browse</result>
> >
> >
>


-- 
jesse mcconnell
jesse.mcconnell@gmail.com

Re: svn commit: r447983 - /maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml

Posted by Brett Porter <br...@apache.org>.
Shouldn't the registration action actually log you in without  
prompting, then redirect to browse?

On 20/09/2006, at 7:43 AM, jmcconnell@apache.org wrote:

> Author: jmcconnell
> Date: Tue Sep 19 14:43:10 2006
> New Revision: 447983
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=447983
> Log:
> fix the redirect on registration to go to the login page as opposed  
> to the browse page
>
> Modified:
>     maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml
>
> Modified: maven/archiva/trunk/archiva-webapp/src/main/resources/ 
> xwork.xml
> URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva- 
> webapp/src/main/resources/xwork.xml? 
> view=diff&rev=447983&r1=447982&r2=447983
> ====================================================================== 
> ========
> --- maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml  
> (original)
> +++ maven/archiva/trunk/archiva-webapp/src/main/resources/xwork.xml  
> Tue Sep 19 14:43:10 2006
> @@ -64,8 +64,14 @@
>        <result name="security-login-success" type="redirect- 
> action">browse</result>
>        <result name="security-login-cancel" type="redirect- 
> action">browse</result>
>        <result name="security-logout" type="redirect- 
> action">browse</result>
> -      <result name="security-register-success" type="redirect- 
> action">browse</result>
> -      <result name="security-register-cancel" type="redirect- 
> action">browse</result>
> +      <result name="security-register-success" type="redirect- 
> action">
> +        <param name="actionName">login</param>
> +        <param name="namespace">/security</param>
> +      </result>
> +      <result name="security-register-cancel" type="redirect-action">
> +        <param name="actionName">login</param>
> +        <param name="namespace">/security</param>
> +      </result>
>        <result name="security-account-success" type="redirect- 
> action">browse</result>
>        <result name="security-account-cancel" type="redirect- 
> action">browse</result>
>
>