Re: Redirect URLs have class names added after the action name with # or !

2016-10-25 Thread Lukasz Lenart
2016-10-25 16:54 GMT+02:00 Dhamelia, Krunal : > Question: How do you define "nextAction"? Is it a String like "homeAction"? > Ans: yes I define it as a string which is anaction name "/welcome.action" redirectAction result expects action name not the whole URL, instead "/welcome.action" return "we

RE: Redirect URLs have class names added after the action name with # or !

2016-10-25 Thread Dhamelia, Krunal
St W – 9th floor, Toronto, Ont, M5H 3P5 desk: 416 944 6187 cell: 647 835 3067 e-mail: [email protected] -Original Message- From: Lukasz Lenart [mailto:[email protected]] Sent: Tuesday, October 25, 2016 1:06 AM To: Struts Users Mailing List Subject: Re: Redirect URLs ha

Re: Redirect URLs have class names added after the action name with # or !

2016-10-24 Thread Lukasz Lenart
2016-10-24 22:29 GMT+02:00 Dhamelia, Krunal : > Hi Lukaz, > I am really stuck with this issue. I tried on WebSphere Application Server > and this issue is not there only on JBOSS I am getting this. > > But the problem, when Struts is redirecting using action redirect that time > only I get this p

RE: Redirect URLs have class names added after the action name with # or !

2016-10-24 Thread Martin Gainty
> From: [email protected] > To: [email protected] > Subject: RE: Redirect URLs have class names added after the action name with > # or ! > Date: Mon, 24 Oct 2016 20:29:43 + > > Hi Lukaz, > I am really stuck with this issue. I tried on WebS

RE: Redirect URLs have class names added after the action name with # or !

2016-10-24 Thread Dhamelia, Krunal
-mail: [email protected] -Original Message- From: Dhamelia, Krunal Sent: Tuesday, October 18, 2016 11:30 AM To: Struts Users Mailing List Subject: RE: Redirect URLs have class names added after the action name with # or ! Not yet I will try it on Tomcat. I was running on

RE: Redirect URLs have class names added after the action name with # or !

2016-10-18 Thread Dhamelia, Krunal
3067 e-mail: [email protected] -Original Message- From: Lukasz Lenart [mailto:[email protected]] Sent: Tuesday, October 18, 2016 1:55 AM To: Struts Users Mailing List Subject: Re: Redirect URLs have class names added after the action name with # or ! 2016-10-17 16:30

Re: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Lukasz Lenart
2016-10-17 16:30 GMT+02:00 Dhamelia, Krunal : > Yep sorry I didn’t see that. > > Here is how redirect is configured > > LogonAction has method LogonSuccessful which at the end sets the variable > "nextAction" and returns the result "next" which is a redirect type of result > with location param v

RE: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Dhamelia, Krunal
[email protected]] Sent: Monday, October 17, 2016 10:09 AM To: Struts Users Mailing List Subject: Re: Redirect URLs have class names added after the action name with # or ! Ok, but there was a second question 2016-10-17 16:05 GMT+02:00 Dhamelia, Krunal : > Yes Lukasz, we did migrate from S

Re: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Lukasz Lenart
e St W – 9th floor, Toronto, Ont, M5H 3P5 > desk: 416 944 6187 cell: 647 835 3067 > e-mail: [email protected] > > > -Original Message- > From: Lukasz Lenart [mailto:[email protected]] > Sent: Sunday, October 16, 2016 8:31 AM > To: Struts Users Mailing Li

RE: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Dhamelia, Krunal
[email protected] -Original Message- From: Lukasz Lenart [mailto:[email protected]] Sent: Sunday, October 16, 2016 8:31 AM To: Struts Users Mailing List Subject: Re: Redirect URLs have class names added after the action name with # or ! 2016-10-14 16:07 GMT+02:00 Dhamelia, Krunal : > Hi Every

Re: Redirect URLs have class names added after the action name with # or !

2016-10-16 Thread Lukasz Lenart
2016-10-14 16:07 GMT+02:00 Dhamelia, Krunal : > Hi Everyone, > I am facing very weird issue at least I haven't seen it before. > > Struts version 2.3.16 > Struts Spring combination using Spring 3.0.6 Did you migrate from some other version? > Once the redirect happens it makes the round trip of b

RE: Redirect URLs have class names added after the action name with # or !

2016-10-14 Thread Dhamelia, Krunal
Forgot to mention that the runtime for application I am using is JBOSS EAP 6.4, I think it could be related to App server too. Thanks and Regards, Krunal Dhamelia Consultant | TD Securities Technology Solutions| TD Securities 130 Adelaide St W - 9th floor, Toronto, Ont, M5H 3P5 desk: 416 944 6187

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 14:24 GMT+02:00 saikrishna : > I contacted middle ware team,who does server restart.Server is getting > restarted daily ! Actually,one month back we have done the struts upgrade to > 2.3.16.2.As a part of that,we have just updated our pom.xml with the struts > version ,as our project is

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 12:30 GMT+02:00 saikrishna gmail.com>: > > production servers are handled by some other team.You want me to recycle the > > servers once ? > > Yes, you should do it as soon as possible - after switching devMode to > off you must restart applica

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:30 GMT+02:00 saikrishna : > production servers are handled by some other team.You want me to recycle the > servers once ? Yes, you should do it as soon as possible - after switching devMode to off you must restart application to take effect And as I said, you are using safe version,

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 12:26 GMT+02:00 saikrishna gmail.com>: > > Even though dev mode is set to false,we are getting errors as above asking us > > to set devmode to false,which is already there. > > > > and both entries are taken from production logs. > > Have you r

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:26 GMT+02:00 saikrishna : > Even though dev mode is set to false,we are getting errors as above asking us > to set devmode to false,which is already there. > > and both entries are taken from production logs. Have you restarted the app? Regards -- Łukasz + 48 606 323 122 http://ww

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 12:17 GMT+02:00 saikrishna gmail.com>: > > Sorry,this is an issue from production,where already dev mode is set to false > > in the config files. > > Log entry is from production. > > Which one? Both entries have "Developer Notification (set >

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:17 GMT+02:00 saikrishna : > Sorry,this is an issue from production,where already dev mode is set to false > in the config files. > Log entry is from production. Which one? Both entries have "Developer Notification (set struts.devMode to false to disable this message" Regards -- Łu

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 11:31 GMT+02:00 saikrishna gmail.com>: > > 2014-04-18 05:23:12,320 ERROR ParametersInterceptor:34 - Developer > > Notification (set struts.devMode to false to disable this message): > > Unexpected Exception caught setting > > 'redirect:${#a=#con

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 11:31 GMT+02:00 saikrishna : > 2014-04-18 05:23:12,320 ERROR ParametersInterceptor:34 - Developer > Notification (set struts.devMode to false to disable this message): > Unexpected Exception caught setting > 'redirect:${#a=#context.get('com.opensymphony.xwork2.dispatcher.HttpServletR > e

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 11:15 GMT+02:00 saikrishna gmail.com>: > > > > > > > > Lukasz Lenart apache.org> writes: > > > >> > >> This vulnerability was resolved in 2.3.15.1, more details here > >> http://struts.apache.org/release/2.3.x/docs/s2-017.html > >> > >> For sure

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 11:15 GMT+02:00 saikrishna : > > > > Lukasz Lenart apache.org> writes: > >> >> This vulnerability was resolved in 2.3.15.1, more details here >> http://struts.apache.org/release/2.3.x/docs/s2-017.html >> >> For sure you must switch off devMode in production, thus has large >> impact on

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > This vulnerability was resolved in 2.3.15.1, more details here > http://struts.apache.org/release/2.3.x/docs/s2-017.html > > For sure you must switch off devMode in production, thus has large > impact on overall application performance > > 2014-07-16 17

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-16 Thread Lukasz Lenart
This vulnerability was resolved in 2.3.15.1, more details here http://struts.apache.org/release/2.3.x/docs/s2-017.html For sure you must switch off devMode in production, thus has large impact on overall application performance 2014-07-16 17:28 GMT+02:00 saikrishna : > Hi Getting the below error.

RE: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Alfredo Manuel Osorio Martinez
/RegistrarAgenteAction_input.action?urlOriginal=${#request.urlOriginal} I will also check the Spring Security. Alfredo Osorio -Mensaje original- De: Roger Varley [mailto:[email protected]] Enviado el: Thursday, March 17, 2011 4:48 PM Para: Struts Users Mailing List Asunto: Re

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Roger Varley
On Thu, 2011-03-17 at 12:48 -0600, Alfredo Manuel Osorio Martinez wrote: > I am implementing a Login interceptor which needs to redirect to an > action to first authenticate the user. The problem is that I want to > send as a parameter to that action the original url, the one that the > user was tr

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Muneer Malik
I guess not even pass as a query string, he needs to pick up the URL from the request object: request.getRequestURL() Best, On Thu, Mar 17, 2011 at 3:33 PM, Okan Özeren wrote: > Hi, > > I mean, you want to get a parameter as passed with original url by > query string. Am I right? You sould us

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Okan Özeren
Hi, I mean, you want to get a parameter as passed with original url by query string. Am I right? You sould use this implementation: // Get the action context from the invocation so we can access the // HttpServletRequest and HttpServletResponse objects. final ActionContext context = invocation.ge

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Muneer Malik
can you not pass params within your interceptor? availability Best, On Thu, Mar 17, 2011 at 1:48 PM, Alfredo Manuel Osorio Martinez < [email protected]> wrote: > I am implementing a Login interceptor which needs to redirect to an > action to first authenticate the user. The problem

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-20 Thread Harsh Grover
my bad, i misunderstood what you meant. Ya, I've tried with the namespace. it still goes to localhost:8080 I've currently written up a new class which extends ServletActionRedirectResult, and there, I'm setting the namespace with the hard url (which is being read from a properties file). So I prea

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-20 Thread Maurizio Cucchiara
Hard url? I didn't suggest you to hard code url inside namespace. You should use namespace defined in your package declaration. home.jsp loadLogin YOUR_NAMESPACE true true login.jsp 2011/1/20 Harsh Grover : > yup, setting a hard url in namespace works, however, I have multiple > deve

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-20 Thread Harsh Grover
yup, setting a hard url in namespace works, however, I have multiple development & test instances, each having their own unique url and I would want to avoid having to change the url in every build. I'm using maven & svn, and right now, i download the code from svn, I can run it without making any

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-20 Thread Maurizio Cucchiara
Location is for the simply redirect result. Did you try instead to set namespace parameter for redirectAction result? 2011/1/20 Mohamed SIDI : > I think your configuration miss some parameters like "location" > > you may have more details in this page > http://struts.apache.org/2.0.14/struts2-core

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-20 Thread Mohamed SIDI
I think your configuration miss some parameters like "location" you may have more details in this page http://struts.apache.org/2.0.14/struts2-core/apidocs/org/apache/struts2/dispatcher/ServletRedirectResult.html#prependServletContext thank 2011/1/20 Harsh Grover > small correction, the reques

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Harsh Grover
small correction, the request goes to http://localhost:8080/test/actions/loadLogin. action. On Wed, Jan 19, 2011 at 7:33 PM, Harsh Grover wrote: > here it is. > > > home.jsp > > loadLogin > true > true > > > > login.jsp > > > if login su

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Harsh Grover
here it is. home.jsp loadLogin true true login.jsp if login succeeds, i'm taking the user to the home page. However, if login fails, I'm redirecting the user back to the login page with a query param: loginFailed=true. However, it is forwarding to http://localhost:8080/test/actions/loadLogi

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Mohamed SIDI
can you put out your configuration in struts.xml? 2011/1/18 Harsh Grover > I'm using redirectAction to send the user to another action using > redirectAction. However, if the namespace is not provided, the request is > getting forwarded to localhost:8080 (my server instance). I'm using apache

Re: redirect with parameter in struts

2010-08-24 Thread Robert Taylor
Another possible way is to leverage the ActionRedirect class. For example: ActionRedirect redirect = new ActionRedirect(mapping.findForward("someRedirectingForwardDef")); redirect.addParameter("cmp", companyName); redirect.addParameter("myOtherParameter", myOtherParameterValue); return redirec

Re: redirect with parameter in struts

2010-08-24 Thread Paweł Wielgus
Hi, one possible way is: return new ActionForward("/orderWrapper.do?actionTarget=VIEW_CUSTOMER", true); inside a execute action method. Best greetings, Paweł Wielgus. 2010/8/24 Struts User : > Hi, > > Is it possible in struts1 to include a parameter in the action redirection. > If I have a web a

Re: Redirect in an interceptor

2010-06-17 Thread Stephen Turner
To answer my own question, just in case anyone comes across this: It's no longer possible to dynamically alter the configuration, so a redirect to an action that's not in the config must be done differently. I copied the idea from ExecuteAndWaitInterceptor.java: ServletRedirectResult shRe

Re: Redirect List Parameter

2010-01-29 Thread Timothy Orme
Yeah, I think my best option here is to just convert my list of ints to a comma separated list. It seems though, that since the request object can handle lists, that there should be a way to add list parameters in struts. Right now the function to add a parameter in ServletRedirectResult looks

Re: Redirect List Parameter

2010-01-29 Thread Greg Lindholm
If you are using a result type of "redirectAction" you don't explicitly code the url just give it the action name and let the result construct the correct url. To pass parameters with a redirectAction you do it like this: < param name="actionName">CompleteConfirmation < par

Re: Redirect List Parameter

2010-01-29 Thread Timothy Orme
Right, this is similar to what I want, but it would have to be dynamically generated, as I don't know the size of the list. For instance, in this case, the user would have selected 4 orders, but in the next case could select 10. The problem isnt passing parameters, it's passing a parameter that

Re: Redirect List Parameter

2010-01-29 Thread Eric Rich
Sorry the line result should be like this: > s>test/CompleteConfirmation.action?orderNumbers=${ordernumber1}&orderNumbers=${ordernumber2}&orderNumbers=${ordernumber3}&orderNumbers=${ordernumber4} Eric Rich Data System Administrator Murray State University Address: 226 Alexander Hall

Re: Redirect List Parameter

2010-01-29 Thread Eric Rich
Timothy, If I understand you correctly you want to redirect and pass values. I have done this by encoding my url with proper html syntax. s>test/CompleteConfirmation.action?orderNumber&${orderNumbers} > I hope this helps. Eric Rich Data System Administrator Murray State University Add

Re: redirect with parameter

2009-12-10 Thread prasad iyer
u, 10 December, 2009 15:20:55 Subject: RE: redirect with parameter Prasad: > I am stuck with a problem I want to add parameters to > redirect. Following is the example. Here is what works for me: In struts.xml: 303 ${redirectUrl} I generate the full url in my bean code in

RE: redirect with parameter

2009-12-10 Thread Neil Aggarwal
Prasad: > I am stuck with a problem I want to add parameters to > redirect. Following is the example. Here is what works for me: In struts.xml: 303 ${redirectUrl} I generate the full url in my bean code including all parameters I want encoded. I hope that helps, Neil --

Re: redirect command

2009-11-30 Thread Chris Pratt
As I mentioned before, look at the Interceptor interface that is part of Struts 2. It will allow you to get control of every request to check whether the user is logged in and do the right thing if they are. You can add parameters to your actions in the struts.xml that can help control the action

Re: redirect command

2009-11-30 Thread Nguyen Xuan Son
dear chris I think it's ok if we redirect by using the struts.xml file but I really confuse in so many other cases for example when the user is login into the system already but still try to enter to login.jsp page in that case i think the system should be able to detect that the user is holding th

Re: redirect command

2009-11-29 Thread Chris Pratt
if you are returning "success" (or SUCCESS), then you need to define login.jsp (or, since it's the default you could just define login.jsp). What you defined will only work if you return "input" (or INPUT) from your execute or if you action is returning from the input() method. (*Chris*) On Sun,

Re: redirect command

2009-11-29 Thread Nguyen Xuan Son
Dear I've tried login.jsp but nothing happen, it seems that even if i fall into the irrelevant situation it doesnt not redirect to the login.jsp page thank you very much 2009/11/30 Saeed Iqbal > type="redirect" > > On Monday, November 30, 2009, Saeed Iqbal wrote: > > Just have redirect near

Re: redirect command

2009-11-29 Thread Saeed Iqbal
type="redirect" On Monday, November 30, 2009, Saeed Iqbal wrote: > Just have redirect near result name="" > > On Monday, November 30, 2009, Nguyen Xuan Son wrote: >> dear all >> here i've the detail of struts file >> >> sessionChk.jsp >> >> >> and in the SessionCheckAction.java file i have >>

Re: redirect command

2009-11-29 Thread Saeed Iqbal
Just have redirect near result name="" On Monday, November 30, 2009, Nguyen Xuan Son wrote: > dear all > here i've the detail of struts file > > sessionChk.jsp > > > and in the SessionCheckAction.java file i have > public class SessionCheckAction extends ActionSupport{ > public String execute()

Re: redirect command

2009-11-26 Thread Saeed Iqbal
In Java Action Bean you would just have to return a specific string that struts.xml uses. On Thu, Nov 26, 2009 at 7:53 PM, Saeed Iqbal wrote: > Instead of programmatically doing it, you can just specify redirect in your > struts.xml file to the place you want. > > On Thu, Nov 26, 2009 at 7:49 PM

Re: redirect command

2009-11-26 Thread Saeed Iqbal
Instead of programmatically doing it, you can just specify redirect in your struts.xml file to the place you want. On Thu, Nov 26, 2009 at 7:49 PM, Nguyen Xuan Son wrote: > dear all > im trying to deny any users whose session is not exist, access to my > webpage > thus im using the source code >

Re: Redirect Action and wildcard methods

2009-10-18 Thread jake
Thanks for the reply, it does work as it should, but I made a silly mistake :( Nothing like wasting a day! Jake On Sat, Oct 17, 2009 at 04:23:05PM -0700, Tommy Pham wrote: > > > > > From: "[email protected]" > To: [email protected] > Sent: Sat, Oc

Re: Redirect Action and wildcard methods

2009-10-17 Thread Tommy Pham
From: "[email protected]" To: [email protected] Sent: Sat, October 17, 2009 10:12:45 AM Subject: Redirect Action and wildcard methods Hi, I have the following actions set up: /WEB-INF/jsp/pages/PostCategory.jsp /

Re: Redirect from input result to action

2009-09-17 Thread Greg Lindholm
If you want to redirect to an action and pass parameters then define your result like this (Seems like I just answered this question a day ago [1]): view ${issueId} If you want to preserve all messages across redirects take a look here [2], it's a lot easier to use t

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
Thanks, that worked. >-Original Message- >From: Lukasz Lenart [mailto:[email protected]] >Sent: Wednesday, August 26, 2009 10:33 AM >To: Struts Users Mailing List >Subject: Re: Redirect NullPointerException > >2009/8/26 Mike Baranski : >> OK, t

Re: Redirect NullPointerException

2009-08-26 Thread Lukasz Lenart
2009/8/26 Mike Baranski : > OK, the form submits, the user's password is changed, and the result is > SUCCESS.  Here's the stack trace: You should use redirectAction instead redirect - it's just for ordinary URLs ;-) Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ --

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
- >From: Greg Lindholm [mailto:[email protected]] >Sent: Wednesday, August 26, 2009 10:18 AM >To: Struts Users Mailing List >Subject: Re: Redirect NullPointerException > >A stack trace and some context might help you get an answer. > >On Wed, Aug 26, 2009 at 10:16

Re: Redirect NullPointerException

2009-08-26 Thread Greg Lindholm
A stack trace and some context might help you get an answer. On Wed, Aug 26, 2009 at 10:16 AM, Mike Baranski < [email protected]> wrote: > class="com.secmgmt.struts2.actions.auth.SavePassword"> > >index >

Re: Redirect after login

2009-08-18 Thread Paweł Wielgus
Hi Rafael, inside intecept method of your security interceptor You can do something like this: ActionMapping actionMapping = ServletActionContext.getActionMapping(); Map parameters = ServletActionContext.getRequest().getParameterMap(); String redirectLink = namespace+"/"+actionMapping.getName(); i

Re: redirect action in s:submit

2009-06-22 Thread Greg Lindholm
I just tested this (with 2.1.6) and it worked fine, no extra .action was appended. @Sam, Maybe you should: 1) double check which version of struts you are using 2) post the full tag 3) do a view source and post the tag that gets generated > What debugger can you suggest? Not sure how to ans

Re: redirect action in s:submit

2009-06-22 Thread Greg Lindholm
@Wes, I looked at both the 2.1.6 (that I'm using) and online svn followed the 2.0.6 tag. On Mon, Jun 22, 2009 at 11:13 AM, Wes Wannemacher wrote: > Which version of the source were you looking through? I recently did > some work with DefaultActionMapper, and this might be something that > has be

Re: redirect action in s:submit

2009-06-22 Thread Sam Wun
What debugger can you suggest? I also wantn to debug struts in portal, but when there is problem in a protlet, if there is no error msg in the protal log file, I can't see anything wrong in the portal page, because the portal simply refresh the portal page and show the first page. On Tue, Jun 23,

RE: redirect action in s:submit

2009-06-22 Thread Kofford, C Todd
d this way. Todd Kofford [email protected] University of Kansas - IT -Original Message- From: Greg Lindholm [mailto:[email protected]] Sent: Monday, June 22, 2009 10:04 AM To: Struts Users Mailing List Subject: Re: redirect action in s:submit >From looking at the source it doesn

Re: redirect action in s:submit

2009-06-22 Thread Wes Wannemacher
Which version of the source were you looking through? I recently did some work with DefaultActionMapper, and this might be something that has been fixed since 2.0.6. -Wes On Mon, Jun 22, 2009 at 11:04 AM, Greg Lindholm wrote: > From looking at the source it doesn't look like it should be adding t

Re: redirect action in s:submit

2009-06-22 Thread Greg Lindholm
>From looking at the source it doesn't look like it should be adding the .action extension so I would suggest you run it in the debugger and break in DefaultActionMapper and see where the .action is coming from. On Mon, Jun 22, 2009 at 10:44 AM, Bhaarat Sharma wrote: > my Struts version is 2.0.6

Re: redirect action in s:submit

2009-06-22 Thread Bhaarat Sharma
nipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > Date: Mon, 22 Jun 2009 09:42:58 -0400 > > Subject: Re: redirect action in s:submit > > From: [email protected] > > To: [email protected] > > > &g

RE: redirect action in s:submit

2009-06-22 Thread Martin Gainty
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: Mon, 22 Jun 2009 09:42:58 -0400

Re: redirect action in s:submit

2009-06-22 Thread Greg Lindholm
On Mon, Jun 22, 2009 at 1:19 AM, dusty wrote: > > That works? What processes that redirect-action:PHAInformation parameter? > Struts sees that and just redirects? If I knew how that worked then I > could > figure out how to add parameters. > > Yes it works and it's part of the DefaultActionMapp

Re: redirect action in s:submit

2009-06-21 Thread dusty
That works? What processes that redirect-action:PHAInformation parameter? Struts sees that and just redirects? If I knew how that worked then I could figure out how to add parameters. omnipresent wrote: > > I have a button value like this > > > > but I want to add some parameters along w

Re: Redirect After Post

2009-04-15 Thread Adam Hardy
I thought this pattern was called Post-Redirect-Get (PRG)? Strange that it's name has morphed into something else. You implement it using 'redirect' result types. Check them out in the struts user guide. Manoj Dhore on 15/04/09 15:42, wrote: Have a lot at this: http://cwiki.apache.org/WW/re

RE: Redirect After Post

2009-04-15 Thread Manoj Dhore
Have a lot at this: http://cwiki.apache.org/WW/redirect-after-post.html There are other sites as well which has examples and will help you to use Redirect-after-post -Original Message- From: maestro [mailto:[email protected]] Sent: 15 April 2009 15:38 To: Struts Users Mailing List S

RE: redirect parameters lost when using convention plugin 2.1.6

2009-03-19 Thread John Liptak
Great. That fixed my problem. I also had a typo in one of my other attempts and this explains what happened. -Original Message- From: Musachy Barroso [mailto:[email protected]] Sent: Wednesday, March 18, 2009 7:42 AM To: Struts Users Mailing List Subject: Re: redirect parameters lost

Re: redirect parameters lost when using convention plugin 2.1.6

2009-03-18 Thread Musachy Barroso
Fixed in trunk. Jira ticket: https://issues.apache.org/struts/browse/WW-3046 thanks for reporting musachy On Wed, Mar 18, 2009 at 9:42 AM, Musachy Barroso wrote: > The problem is that "redirect" does not not use "params", only > "redirect-action" does. So to use redirect, you need to do somethin

Re: redirect parameters lost when using convention plugin 2.1.6

2009-03-18 Thread Musachy Barroso
The problem is that "redirect" does not not use "params", only "redirect-action" does. So to use redirect, you need to do something like(or set "location" in the annotation): /someurl.action?myparam=%{somevalue} and yeah, the documentation is wrong, and this is not consistent. I will update redir

Re: Redirect after Post and persist data

2008-12-09 Thread Paweł Wielgus
Hi Dirk, there is no simple answear to session question. There is nothing bad in keeping last search data in session, until for example Your session objects will grow so much that they will kill Your server. Just keep in mind what are the drawbacks of this solution. Best greetings, Paweł Wielgus.

Re: redirect

2008-12-09 Thread Nils-Helge Garli Hegvik
I suspect what you're looking for is url rewriting (although it might be possible to do it with wildcard action mappings...). Depending on your infrastructure, you could probably do this by configuring your server, or with a custom servlet filter. Do a google search for 'url rewriting' for suggeste

Re: redirect

2008-12-08 Thread Dirk Forchel
Aditya Lukman wrote: > > Hi all,, > i want to redirect from http://localhost:8080/cimeng/adhit *to* > http://localhost:8080/cimeng/profile.action?nickname=aray > > so,, how to solve my problem > > please, give me a descriptions for my problem > thank's for your help > Seems to be quite simpl

Re: Redirect Action

2008-12-03 Thread dusty
You may want to look at the ActionMapper interface. See here http://www.nabble.com/URL-Mapper-Best-Pracitices-Question-td19523090.html#a19533299 >> Jeremy's response and here: http://www.nabble.com/Custom-URL-in-Struts-2-td12160278.html#a12166651 >> talks about the difference between actionma

Re: Redirect-Action Problem with struts 2.0.11 and multiple packages

2008-08-11 Thread Lukasz Lenart
> > >greeting.jsp > > > > > > >results >/ > > > You forgot to extends package administration from struts-default. Or you have to define such result for this package.

Re: redirect does not work with Tiles.

2008-08-11 Thread Jeromy Evans
Griffith, Michael * wrote: Jeromy, Thanks for the replies. In cases where I've needed this behaviour I've referenced the JSP instead of a Tile. Do you mean your result redirects to a JSP instead of a struts action? MG Not Redirect, DISPATCH to a JSP. http://struts.apache.or

RE: redirect does not work with Tiles.

2008-08-08 Thread Griffith, Michael *
Sent: Friday, August 08, 2008 6:40 AM To: Struts Users Mailing List Subject: Re: redirect does not work with Tiles. Griffith, Michael * wrote: > Hello All, > > > > I cannot make result go to a new page. Chaining the result > does work, but the response shows my entire

RE: redirect does not work with Tiles.

2008-08-08 Thread Griffith, Michael *
Struts 2.0.11 Tiles 2.0.6 -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2008 1:37 AM To: Struts Users Mailing List Subject: Re: redirect does not work with Tiles. 2008/8/7 Griffith, Michael * <[EMAIL PROTECTED]>: > I cannot make

Re: redirect does not work with Tiles.

2008-08-08 Thread Jeromy Evans
Griffith, Michael * wrote: Hello All, I cannot make result go to a new page. Chaining the result does work, but the response shows my entire tile set showing up in the inside tile, which is not what I want either. Assuming Struts2, the s:action tag can only execute an action and exe

Re: redirect does not work with Tiles.

2008-08-07 Thread Antonio Petrelli
2008/8/7 Griffith, Michael * <[EMAIL PROTECTED]>: > I cannot make result go to a new page. Chaining the result > does work, but the response shows my entire tile set showing up in the > inside tile, which is not what I want either. Version of Struts and Tiles? Antonio -

Re: Redirect after stream result

2008-07-31 Thread ManiKanta G
Hi, I m using Struts2 (S2), not Struts1. In S2 there is a standard result called 'stream' for downloading files. I m using that only. Thanks any way. Regards, ManiKanta Martin wrote: URL url=new URL(http://www.fubar.com); string encoded_url = httpServletReponse.encodeRedirectURL(url); http

Re: Redirect after stream result

2008-07-31 Thread Martin
URL url=new URL(http://www.fubar.com); string encoded_url = httpServletReponse.encodeRedirectURL(url); httpServletResponse.sendRedirect(encoded_url); Is there a reason why you would'nt want to use Struts prescribed method of that is return a valid ActionForward via findMapping from execute() meth

Re: Redirect after stream result

2008-07-30 Thread ManiKanta G
Thanks for your help. Regards, ManiKanta Laurie Harper wrote: ManiKanta G wrote: Hi, How can I redirect to another page after stream result. For example redirecting to another page saying successfully downloaded the file or adding some action message and redirecting to the same page. You

Re: Redirect after stream result

2008-07-30 Thread Laurie Harper
ManiKanta G wrote: Hi, How can I redirect to another page after stream result. For example redirecting to another page saying successfully downloaded the file or adding some action message and redirecting to the same page. You can't; there can only be one response to an HTTP request. The sam

Re: redirect after logging in

2008-05-13 Thread Rushikesh Thakkar
Hi, Check out the login-interceptor in Mail-Reader application given on Planet Struts. I found it useful. I think you are also looking for the same. http://www.planetstruts.org/struts2-mailreader/Tour.do (The application may be down sometimes, you can refer to cached pages in Google search for th

Re: redirect after logging in

2008-05-12 Thread Laurie Harper
Acegi / Spring Security can certainly get this done, but may be overkill if the authentication and authorization requirements are simple. Container Managed Security is probably the quickest and easiest way to get the described behaviour, but that also doesn't always fit. For a home-brewed custo

Re: redirect after logging in

2008-05-11 Thread Jim Kiley
I wouldn't implement it with interceptors so much as I'd look into something like Acegi Security (now Spring Security if I remember right). I'm having a decent level of success on an Acegi / Sitemesh / Struts 2 / Spring / Hibernate project right now. jk On Fri, May 9, 2008 at 6:01 PM, Jaarthy <[

RE: Redirect-Action type result warns of caught exception when passing param

2008-05-05 Thread KonTiki
Hello Brad, Excellent! Precise and clear. Regards, Kety. Brad A Cupit wrote: > >> I'm of the opinion that an exception in my >> console means something is amiss though... > > you've stumbled upon a little wart in the code. First things first, the > exception is harmless and can be safely ign

RE: Redirect-Action type result warns of caught exception when passing param

2008-04-30 Thread Brad A Cupit
> I'm of the opinion that an exception in my > console means something is amiss though... you've stumbled upon a little wart in the code. First things first, the exception is harmless and can be safely ignored. A more detailed explanation can be found in a comment within ObjectFactory.buildResult

Re: Redirect-action parameters via POST

2008-04-28 Thread KonTiki
Here are some tests which seemed to have worked with really long URL's. Such as 2K in IE and upto 100,000 characters in Firefox. http://www.boutell.com/newfaq/misc/urllength.html newton.dave wrote: > > --- ancatdubher <[EMAIL PROTECTED]> wrote: >> (Also, the URL is limited to 256 characters

Re: Redirect-action parameters via POST

2008-04-25 Thread Guillaume Bilodeau
>>>> action that's the redirect target below is actually the recipient of >>>> quite a few links (in fact the basic point of the application is to >>>> facilitate document submission for various purposes). >>>> >>>> If this isn't

  1   2   >