convention redirect to slash

2013-07-09 Thread Alireza Fattahi
Hi,

The 
constant name=struts.convention.redirect.to.slash  value=false /
is not working !
It keeps redirecting to slash

any comments ?!


 
~Regards,
~~Alireza Fattahi

Re: convention redirect to slash

2013-07-09 Thread Lukasz Lenart
2013/7/9 Alireza Fattahi afatt...@yahoo.com:
 The
 constant name=struts.convention.redirect.to.slash  value=false /
 is not working !
 It keeps redirecting to slash

 any comments ?!

Could you share your struts.xml? Os some snippets with results?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: convention redirect to slash

2013-07-09 Thread Alireza Fattahi
Here it is:

I acutally downloaded the struts 2 jquery plug in and add 
  constant name=struts.convention.redirect.to.slash value=false /    
to it!


struts
    constant name=struts.enable.DynamicMethodInvocation value=false /
    constant name=struts.devMode value=true /
    constant name=struts.convention.action.packages 
value=com.jgeppert.struts2.jquery.showcase /
    constant name=struts.convention.default.parent.package 
value=json-default /
    constant name=struts.convention.redirect.to.slash value=false /    
    constant name=struts.custom.i18n.resources value=messages /
/struts



 
~Regards,
~~Alireza Fattahi



 From: Lukasz Lenart lukaszlen...@apache.org
To: Struts Users Mailing List user@struts.apache.org; Alireza Fattahi 
afatt...@yahoo.com 
Sent: Tuesday, 9 July 2013, 17:22
Subject: Re: convention redirect to slash
 

2013/7/9 Alireza Fattahi afatt...@yahoo.com:
 The
 constant name=struts.convention.redirect.to.slash  value=false /
 is not working !
 It keeps redirecting to slash

 any comments ?!

Could you share your struts.xml? Os some snippets with results?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Re: convention redirect to slash

2013-07-09 Thread Lukasz Lenart
Ok, but could you share configuration of results? How do you perform redirect?

2013/7/9 Alireza Fattahi afatt...@yahoo.com:
 Here it is:

 I acutally downloaded the struts 2 jquery plug in and add
   constant name=struts.convention.redirect.to.slash value=false /
 to it!


 struts
 constant name=struts.enable.DynamicMethodInvocation value=false /
 constant name=struts.devMode value=true /
 constant name=struts.convention.action.packages 
 value=com.jgeppert.struts2.jquery.showcase /
 constant name=struts.convention.default.parent.package 
 value=json-default /
 constant name=struts.convention.redirect.to.slash value=false /
 constant name=struts.custom.i18n.resources value=messages /
 /struts




 ~Regards,
 ~~Alireza Fattahi


 
  From: Lukasz Lenart lukaszlen...@apache.org
 To: Struts Users Mailing List user@struts.apache.org; Alireza Fattahi 
 afatt...@yahoo.com
 Sent: Tuesday, 9 July 2013, 17:22
 Subject: Re: convention redirect to slash


 2013/7/9 Alireza Fattahi afatt...@yahoo.com:
 The
 constant name=struts.convention.redirect.to.slash  value=false /
 is not working !
 It keeps redirecting to slash

 any comments ?!

 Could you share your struts.xml? Os some snippets with results?


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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

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



Re: convention redirect to slash

2013-07-09 Thread Alireza Fattahi
I do not use any configuration.

There is an index.jsp:
% response.sendRedirect(index.action); %

and the index.action is has a execute and simple return SUCCESS and redirects 
to a jsp. As I said it is the struts 2 jquery showcase sample!

I am new, please let me know if I should describe any thing else !!

 
~Regards,
~~Alireza Fattahi



 From: Lukasz Lenart lukaszlen...@apache.org
To: Struts Users Mailing List user@struts.apache.org; Alireza Fattahi 
afatt...@yahoo.com 
Sent: Tuesday, 9 July 2013, 17:40
Subject: Re: convention redirect to slash
 

Ok, but could you share configuration of results? How do you perform redirect?

2013/7/9 Alireza Fattahi afatt...@yahoo.com:
 Here it is:

 I acutally downloaded the struts 2 jquery plug in and add
   constant name=struts.convention.redirect.to.slash value=false /
 to it!


 struts
     constant name=struts.enable.DynamicMethodInvocation value=false /
     constant name=struts.devMode value=true /
     constant name=struts.convention.action.packages 
value=com.jgeppert.struts2.jquery.showcase /
     constant name=struts.convention.default.parent.package 
value=json-default /
     constant name=struts.convention.redirect.to.slash value=false /
     constant name=struts.custom.i18n.resources value=messages /
 /struts




 ~Regards,
 ~~Alireza Fattahi


 
  From: Lukasz Lenart lukaszlen...@apache.org
 To: Struts Users Mailing List user@struts.apache.org; Alireza Fattahi 
 afatt...@yahoo.com
 Sent: Tuesday, 9 July 2013, 17:22
 Subject: Re: convention redirect to slash


 2013/7/9 Alireza Fattahi afatt...@yahoo.com:
 The
 constant name=struts.convention.redirect.to.slash  value=false /
 is not working !
 It keeps redirecting to slash

 any comments ?!

 Could you share your struts.xml? Os some snippets with results?


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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

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

Re: convention redirect to slash

2013-07-09 Thread Lukasz Lenart
2013/7/9 Alireza Fattahi afatt...@yahoo.com:
 I do not use any configuration.

 There is an index.jsp:
 % response.sendRedirect(index.action); %

Try to use

% response.sendRedirect(/namespace/); %

 and the index.action is has a execute and simple return SUCCESS and redirects 
 to a jsp. As I said it is the struts 2 jquery showcase sample!

 I am new, please let me know if I should describe any thing else !!

If you redirects to action directly, the action will be called. If you
redirect to /namespace/, action Index in that namespace will be
used.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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