You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fr Rouxel <ro...@yahoo.com> on 2011/03/11 02:59:46 UTC

url question

Hi guys,
I need your help, at least your expertise...
My site generates permaLinks dynamic like
www.mysite.com/abusiness.html
and struts2 makes a mapping (in struts.xml file) that redirect on an action
that takes params
ex:
<struts>
	<package name='catchall' extends="struts-default">		
		<action name='*' class="com.rdvcentral.mvc.ParsePermaLinkAction"
			method="redirectToParseUrl">
			<result name='success' type="redirectAction">
				/
				parseUrl
				{1}
			</result>						
		</action>		
		<action name='parseUrl' class="com.rdvcentral.mvc.ParsePermaLinkAction"
			method="parseUrl">
			<result name='businessFound' type="redirectAction">
				/business
				showDetailBusinessWithRefresh
				${idLocation}
				true
			</result>			
			<result name='error404'>/error/struts-error404.jsp</result>
		</action>		

my pb : the browser show the redirection.
my question is : is it possible to tell struts to not show the redirection ?

thx a lot

fr/
-- 
View this message in context: http://old.nabble.com/url-question-tp31121586p31121586.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Re : Re : Re : url question

Posted by Steven Yang <ke...@gmail.com>.
On Fri, Mar 11, 2011 at 11:10 AM, François Rouxel <ro...@yahoo.com>wrote:

> well thx,
>
> but I need struts2 to do a little job, parse the url...and go to another
> action... without changing the url...
> because,
> actually, there is no www.mysite.com/abusiness.html


try "chain"?
redirectAction is client-side redirect, chain is server-side redirect

>
>
> it's just a fake, but I want to 'redirect', 'forward' I don't know the
> right
> word, to the a detail business page that don't exist ...and I need struts2
> to
> give me the params..
> what are the others way to tell struts, hey parse the url (abusiness.html)
> and
> give me the right page...?
> a mvc can do that, no?
> am I the only one generating permaLink?
>
>
>
> Francois Rouxel
> ____________________________________________
>
>
>
> ----- Message d'origine ----
> De : Dave Newton <da...@gmail.com>
> À : Struts Users Mailing List <us...@struts.apache.org>
> Cc : François Rouxel <ro...@yahoo.com>
> Envoyé le : Jeu 10 mars 2011, 21h 55min 34s
> Objet : Re: Re : Re : url question
>
> On Thu, Mar 10, 2011 at 9:52 PM, François Rouxel <ro...@yahoo.com>
> wrote:
> > does struts2 have a type='forward' ?
> > because I use type='redirectAction'
>
> Like I said--a redirect... redirects.
>
> http://struts.apache.org/2.x/docs/result-types.html
> http://struts.apache.org/2.x/docs/dispatcher-result.html
>
> The documentation is your friend.
>
> Dave
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re : Re : Re : url question

Posted by François Rouxel <ro...@yahoo.com>.
well thx,

but I need struts2 to do a little job, parse the url...and go to another 
action... without changing the url...
because,
actually, there is no www.mysite.com/abusiness.html

it's just a fake, but I want to 'redirect', 'forward' I don't know the right 
word, to the a detail business page that don't exist ...and I need struts2 to 
give me the params..
what are the others way to tell struts, hey parse the url (abusiness.html) and 
give me the right page...?
a mvc can do that, no?
am I the only one generating permaLink?



Francois Rouxel
____________________________________________



----- Message d'origine ----
De : Dave Newton <da...@gmail.com>
À : Struts Users Mailing List <us...@struts.apache.org>
Cc : François Rouxel <ro...@yahoo.com>
Envoyé le : Jeu 10 mars 2011, 21h 55min 34s
Objet : Re: Re : Re : url question

On Thu, Mar 10, 2011 at 9:52 PM, François Rouxel <ro...@yahoo.com> wrote:
> does struts2 have a type='forward' ?
> because I use type='redirectAction'

Like I said--a redirect... redirects.

http://struts.apache.org/2.x/docs/result-types.html
http://struts.apache.org/2.x/docs/dispatcher-result.html

The documentation is your friend.

Dave



      

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


Re: Re : Re : url question

Posted by Dave Newton <da...@gmail.com>.
On Thu, Mar 10, 2011 at 9:52 PM, François Rouxel <ro...@yahoo.com> wrote:
> does struts2 have a type='forward' ?
> because I use type='redirectAction'

Like I said--a redirect... redirects.

http://struts.apache.org/2.x/docs/result-types.html
http://struts.apache.org/2.x/docs/dispatcher-result.html

The documentation is your friend.

Dave

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


Re : Re : url question

Posted by François Rouxel <ro...@yahoo.com>.
does struts2 have a type='forward' ?
because I use type='redirectAction'


Francois Rouxel
____________________________________________



----- Message d'origine ----
De : Dave Newton <da...@gmail.com>
À : Struts Users Mailing List <us...@struts.apache.org>
Cc : François Rouxel <ro...@yahoo.com>
Envoyé le : Jeu 10 mars 2011, 21h 46min 08s
Objet : Re: Re : url question

That's kind of what a redirect *is*.

Perhaps you're thinking of a forward?

Dave

On Thu, Mar 10, 2011 at 9:44 PM, François Rouxel <ro...@yahoo.com> wrote:
> the main idea is
> I generate permaLink for businesses
> ex: mysite.com/abusiness.html
>
> and I need to redirect on the detail business page...
> so I parse the url and do a redirection...but the browser changes the 
url...and
> I don't want the user to see something like
> mysite.com/showBusiness.action?idBusiness=ef546ewf4w6e4fe5e5f4w
>
> I use Struts 2.2.1
>
> Francois Rouxel
>
> ____________________________________________
>
>
>
> ----- Message d'origine ----
> De : Martin Gainty <mg...@hotmail.com>
> À : Struts Users Mailing List <us...@struts.apache.org>
> Envoyé le : Jeu 10 mars 2011, 21h 32min 20s
> Objet : RE: url question
>
>
> not i the type of result is redirectAction
>
> http://struts.apache.org/2.0.14/docs/redirect-action-result.html
>
>
>
> we could provide more informed solutions if you could explain what you wish to
> implement and a rough workflow
>
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
dem
> Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
> Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
> fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
> interdite. Ce message sert à l'information seulement et n'aura pas n'importe
> quel effet légalement obligatoire. Étant donné que les email peuvent 
facilement
> être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
> pour le contenu fourni.
>
>
>
>
>> Date: Thu, 10 Mar 2011 17:59:46 -0800
>> From: rouxelec@yahoo.com
>> To: user@struts.apache.org
>> Subject: url question
>>
>>
>> Hi guys,
>> I need your help, at least your expertise...
>> My site generates permaLinks dynamic like
>> www.mysite.com/abusiness.html
>> and struts2 makes a mapping (in struts.xml file) that redirect on an action
>> that takes params
>> ex:
>> <struts>
>>     <package name='catchall' extends="struts-default">
>>         <action name='*' class="com.rdvcentral.mvc.ParsePermaLinkAction"
>>             method="redirectToParseUrl">
>>             <result name='success' type="redirectAction">
>>                 /
>>                 parseUrl
>>                 {1}
>>             </result>
>>         </action>
>>         <action name='parseUrl'
> class="com.rdvcentral.mvc.ParsePermaLinkAction"
>>             method="parseUrl">
>>             <result name='businessFound' type="redirectAction">
>>                 /business
>>                 showDetailBusinessWithRefresh
>>                 ${idLocation}
>>                 true
>>             </result>
>>             <result name='error404'>/error/struts-error404.jsp</result>
>>         </action>
>>
>> my pb : the browser show the redirection.
>> my question is : is it possible to tell struts to not show the redirection ?
>>
>> thx a lot
>>
>> fr/
>> --
>> View this message in context:
>>http://old.nabble.com/url-question-tp31121586p31121586.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


      

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


Re: Re : url question

Posted by Dave Newton <da...@gmail.com>.
That's kind of what a redirect *is*.

Perhaps you're thinking of a forward?

Dave

On Thu, Mar 10, 2011 at 9:44 PM, François Rouxel <ro...@yahoo.com> wrote:
> the main idea is
> I generate permaLink for businesses
> ex: mysite.com/abusiness.html
>
> and I need to redirect on the detail business page...
> so I parse the url and do a redirection...but the browser changes the url...and
> I don't want the user to see something like
> mysite.com/showBusiness.action?idBusiness=ef546ewf4w6e4fe5e5f4w
>
> I use Struts 2.2.1
>
> Francois Rouxel
>
> ____________________________________________
>
>
>
> ----- Message d'origine ----
> De : Martin Gainty <mg...@hotmail.com>
> À : Struts Users Mailing List <us...@struts.apache.org>
> Envoyé le : Jeu 10 mars 2011, 21h 32min 20s
> Objet : RE: url question
>
>
> not i the type of result is redirectAction
>
> http://struts.apache.org/2.0.14/docs/redirect-action-result.html
>
>
>
> we could provide more informed solutions if you could explain what you wish to
> implement and a rough workflow
>
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
> Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
> Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
> fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
> interdite. Ce message sert à l'information seulement et n'aura pas n'importe
> quel effet légalement obligatoire. Étant donné que les email peuvent facilement
> être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
> pour le contenu fourni.
>
>
>
>
>> Date: Thu, 10 Mar 2011 17:59:46 -0800
>> From: rouxelec@yahoo.com
>> To: user@struts.apache.org
>> Subject: url question
>>
>>
>> Hi guys,
>> I need your help, at least your expertise...
>> My site generates permaLinks dynamic like
>> www.mysite.com/abusiness.html
>> and struts2 makes a mapping (in struts.xml file) that redirect on an action
>> that takes params
>> ex:
>> <struts>
>>     <package name='catchall' extends="struts-default">
>>         <action name='*' class="com.rdvcentral.mvc.ParsePermaLinkAction"
>>             method="redirectToParseUrl">
>>             <result name='success' type="redirectAction">
>>                 /
>>                 parseUrl
>>                 {1}
>>             </result>
>>         </action>
>>         <action name='parseUrl'
> class="com.rdvcentral.mvc.ParsePermaLinkAction"
>>             method="parseUrl">
>>             <result name='businessFound' type="redirectAction">
>>                 /business
>>                 showDetailBusinessWithRefresh
>>                 ${idLocation}
>>                 true
>>             </result>
>>             <result name='error404'>/error/struts-error404.jsp</result>
>>         </action>
>>
>> my pb : the browser show the redirection.
>> my question is : is it possible to tell struts to not show the redirection ?
>>
>> thx a lot
>>
>> fr/
>> --
>> View this message in context:
>>http://old.nabble.com/url-question-tp31121586p31121586.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Re : url question

Posted by François Rouxel <ro...@yahoo.com>.
the main idea is
I generate permaLink for businesses 
ex: mysite.com/abusiness.html

and I need to redirect on the detail business page...
so I parse the url and do a redirection...but the browser changes the url...and 
I don't want the user to see something like 
mysite.com/showBusiness.action?idBusiness=ef546ewf4w6e4fe5e5f4w

I use Struts 2.2.1

Francois Rouxel

____________________________________________



----- Message d'origine ----
De : Martin Gainty <mg...@hotmail.com>
À : Struts Users Mailing List <us...@struts.apache.org>
Envoyé le : Jeu 10 mars 2011, 21h 32min 20s
Objet : RE: url question


not i the type of result is redirectAction

http://struts.apache.org/2.0.14/docs/redirect-action-result.html



we could provide more informed solutions if you could explain what you wish to 
implement and a rough workflow

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 10 Mar 2011 17:59:46 -0800
> From: rouxelec@yahoo.com
> To: user@struts.apache.org
> Subject: url question
> 
> 
> Hi guys,
> I need your help, at least your expertise...
> My site generates permaLinks dynamic like
> www.mysite.com/abusiness.html
> and struts2 makes a mapping (in struts.xml file) that redirect on an action
> that takes params
> ex:
> <struts>
>     <package name='catchall' extends="struts-default">        
>         <action name='*' class="com.rdvcentral.mvc.ParsePermaLinkAction"
>             method="redirectToParseUrl">
>             <result name='success' type="redirectAction">
>                 /
>                 parseUrl
>                 {1}
>             </result>                        
>         </action>        
>         <action name='parseUrl' 
class="com.rdvcentral.mvc.ParsePermaLinkAction"
>             method="parseUrl">
>             <result name='businessFound' type="redirectAction">
>                 /business
>                 showDetailBusinessWithRefresh
>                 ${idLocation}
>                 true
>             </result>            
>             <result name='error404'>/error/struts-error404.jsp</result>
>         </action>        
> 
> my pb : the browser show the redirection.
> my question is : is it possible to tell struts to not show the redirection ?
> 
> thx a lot
> 
> fr/
> -- 
> View this message in context: 
>http://old.nabble.com/url-question-tp31121586p31121586.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


      

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


RE: url question

Posted by Martin Gainty <mg...@hotmail.com>.
not i the type of result is redirectAction

http://struts.apache.org/2.0.14/docs/redirect-action-result.html



we could provide more informed solutions if you could explain what you wish to implement and a rough workflow

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 10 Mar 2011 17:59:46 -0800
> From: rouxelec@yahoo.com
> To: user@struts.apache.org
> Subject: url question
> 
> 
> Hi guys,
> I need your help, at least your expertise...
> My site generates permaLinks dynamic like
> www.mysite.com/abusiness.html
> and struts2 makes a mapping (in struts.xml file) that redirect on an action
> that takes params
> ex:
> <struts>
> 	<package name='catchall' extends="struts-default">		
> 		<action name='*' class="com.rdvcentral.mvc.ParsePermaLinkAction"
> 			method="redirectToParseUrl">
> 			<result name='success' type="redirectAction">
> 				/
> 				parseUrl
> 				{1}
> 			</result>						
> 		</action>		
> 		<action name='parseUrl' class="com.rdvcentral.mvc.ParsePermaLinkAction"
> 			method="parseUrl">
> 			<result name='businessFound' type="redirectAction">
> 				/business
> 				showDetailBusinessWithRefresh
> 				${idLocation}
> 				true
> 			</result>			
> 			<result name='error404'>/error/struts-error404.jsp</result>
> 		</action>		
> 
> my pb : the browser show the redirection.
> my question is : is it possible to tell struts to not show the redirection ?
> 
> thx a lot
> 
> fr/
> -- 
> View this message in context: http://old.nabble.com/url-question-tp31121586p31121586.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  

Re : Re : url question

Posted by François Rouxel <ro...@yahoo.com>.
it would be helpfull if you tell how to do it right .
it was the purpose of my first mail, I asked for help.

:-)

 

Francois Rouxel
____________________________________________



----- Message d'origine ----
De : Dave Newton <da...@gmail.com>
À : Struts Users Mailing List <us...@struts.apache.org>
Cc : François Rouxel <ro...@yahoo.com>
Envoyé le : Ven 11 mars 2011, 11h 32min 48s
Objet : Re: Re : url question

On Fri, Mar 11, 2011 at 11:20 AM, François Rouxel <ro...@yahoo.com> wrote:
> that's a pity that a great mvc like struts does not provide that kind of 
>service... :-(

It can; you weren't doing it right. Struts has the ability to dispatch
to arbitrary resources, and the use of OGNL to create the dispatch
target pretty much lets you do anything you can imagine.

Whether or not it's the *best* solution, however, is debatable, when
there are already existing, well-known mechanisms.

Dave



      

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


Re: Re : url question

Posted by Dave Newton <da...@gmail.com>.
On Fri, Mar 11, 2011 at 11:20 AM, François Rouxel <ro...@yahoo.com> wrote:
> that's a pity that a great mvc like struts does not provide that kind of service... :-(

It can; you weren't doing it right. Struts has the ability to dispatch
to arbitrary resources, and the use of OGNL to create the dispatch
target pretty much lets you do anything you can imagine.

Whether or not it's the *best* solution, however, is debatable, when
there are already existing, well-known mechanisms.

Dave

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


Re : url question

Posted by François Rouxel <ro...@yahoo.com>.
great thx so much

I'm gonna try it right now....
that's a pity that a great mvc like struts does not provide that kind of 
service... :-(



Francois Rouxel
____________________________________________



----- Message d'origine ----
De : Aner Perez <an...@ncstech.com>
À : user@struts.apache.org
Envoyé le : Ven 11 mars 2011, 9h 32min 38s
Objet : Re: url question

In the past I've found that UrlRewriteFilter 
(http://www.tuckey.org/urlrewrite/) is a very simple and flexible way 
to achieve this no matter what MVC framework you are using.

    - Aner

On 03/10/2011 08:59 PM, fr Rouxel wrote:
>
> Hi guys,
> I need your help, at least your expertise...
> My site generates permaLinks dynamic like
> www.mysite.com/abusiness.html
> and struts2 makes a mapping (in struts.xml file) that redirect on an action
> that takes params
> ex:
> <struts>
>     <package name='catchall' extends="struts-default">        
>         <action name='*' class="com.rdvcentral.mvc.ParsePermaLinkAction"
>             method="redirectToParseUrl">
>             <result name='success' type="redirectAction">
>                 /
>                 parseUrl
>                 {1}
>             </result>                        
>         </action>        
>         <action name='parseUrl' 
class="com.rdvcentral.mvc.ParsePermaLinkAction"
>             method="parseUrl">
>             <result name='businessFound' type="redirectAction">
>                 /business
>                 showDetailBusinessWithRefresh
>                 ${idLocation}
>                 true
>             </result>            
>             <result name='error404'>/error/struts-error404.jsp</result>
>         </action>        
>
> my pb : the browser show the redirection.
> my question is : is it possible to tell struts to not show the redirection ?
>
> thx a lot
>
> fr/

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


      

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


Re: url question

Posted by Aner Perez <an...@ncstech.com>.
In the past I've found that UrlRewriteFilter 
(http://www.tuckey.org/urlrewrite/) is a very simple and flexible way 
to achieve this no matter what MVC framework you are using.

	- Aner

On 03/10/2011 08:59 PM, fr Rouxel wrote:
>
> Hi guys,
> I need your help, at least your expertise...
> My site generates permaLinks dynamic like
> www.mysite.com/abusiness.html
> and struts2 makes a mapping (in struts.xml file) that redirect on an action
> that takes params
> ex:
> <struts>
> 	<package name='catchall' extends="struts-default">		
> 		<action name='*' class="com.rdvcentral.mvc.ParsePermaLinkAction"
> 			method="redirectToParseUrl">
> 			<result name='success' type="redirectAction">
> 				/
> 				parseUrl
> 				{1}
> 			</result>						
> 		</action>		
> 		<action name='parseUrl' class="com.rdvcentral.mvc.ParsePermaLinkAction"
> 			method="parseUrl">
> 			<result name='businessFound' type="redirectAction">
> 				/business
> 				showDetailBusinessWithRefresh
> 				${idLocation}
> 				true
> 			</result>			
> 			<result name='error404'>/error/struts-error404.jsp</result>
> 		</action>		
>
> my pb : the browser show the redirection.
> my question is : is it possible to tell struts to not show the redirection ?
>
> thx a lot
>
> fr/

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