Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-28 Thread Łukasz Lenart
is the line in tomcat code that resolves to REQUEST instead of > > FORWARD. > > > > // Globals.DISPATCHER_TYPE_ATTR "org.apache.catalina.core.DISPATCHER_TYPE" > > DispatcherType disInt = (DispatcherType) > > request.getAttribute(Globals.DISPATCHER_TYPE_ATTR

Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-28 Thread Rubens Gomes
I have created the following Jira to track this issue: https://issues.apache.org/jira/browse/WW-5450 On Wed, Jul 24, 2024 at 6:04 PM Rubens Gomes wrote: > > Below is the line in tomcat code that resolves to REQUEST instead of FORWARD. > > // Globals.DISPATCH

Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-24 Thread Rubens Gomes
Below is the line in tomcat code that resolves to REQUEST instead of FORWARD. // Globals.DISPATCHER_TYPE_ATTR "org.apache.catalina.core.DISPATCHER_TYPE" DispatcherType disInt = (DispatcherType) request.getAttribute(Globals.DISPATCHER_TYPE_ATTR); Should I open a bug ticket on Struts

Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-24 Thread Rubens Gomes
request.getAttribute(FORWARD_REQUEST_URI) == null) { // then tomcat defaults to setting value of various request attributes } And after that, tomcat calls "processRequest(request, response, state);" in the same instance "ApplicationDispatcher" and fails to resolve a FOR

Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-23 Thread Rubens Gomes
As per Spring Boot "3.3.2" managed dependency coordinates the embedded tomcat version is "10.1.26" On Mon, Jul 22, 2024 at 11:27 AM Łukasz Lenart wrote: > > Tomcat? version? It can be related to Tomcat changes > > pon., 22 lip 2024 o 17:25 Rubens Gomes napisał(a): > > > > I am running Struts 7.0

Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-22 Thread Łukasz Lenart
Tomcat? version? It can be related to Tomcat changes pon., 22 lip 2024 o 17:25 Rubens Gomes napisał(a): > > I am running Struts 7.0.0-M9 along with Spring Boot 3.3.2 + Spring Security. > > have a Struts Action class annotated with : > > @Result( > name = Action.INPUT, > location = "/WEB-

Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-22 Thread Rubens Gomes
I am running Struts 7.0.0-M9 along with Spring Boot 3.3.2 + Spring Security. have a Struts Action class annotated with : @Result( name = Action.INPUT, location = "/WEB-INF/content/%{#request.device}/login.jsp", type = "dispatcher") And I have noticed that after returning from the A

Re: Struts 6.0.0 - jsp forward in result page

2022-06-09 Thread Łukasz Lenart
Could you share your struts.xml? W dniu śr., 8.06.2022 o 20:56 Prasanth napisał(a): > Hi, > > We have a scenario where one of the results of a struts action is a jsp > page with a forward to another action. This works fine under 2.5.X > versions. In 6.0.0 I am seeing a stackoverf

Struts 6.0.0 - jsp forward in result page

2022-06-08 Thread Prasanth
Hi, We have a scenario where one of the results of a struts action is a jsp page with a forward to another action. This works fine under 2.5.X versions. In 6.0.0 I am seeing a stackoverflowerror. After debugging it seems like the first action processes it correctly and returns the result page

Re: Call a forward or a redirect inside an interceptor.

2015-03-09 Thread ersinghlovepr...@gmail.com
vepreet Singh -- View this message in context: http://struts.1045723.n5.nabble.com/Call-a-forward-or-a-redirect-inside-an-interceptor-tp3484464p5717505.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubsc

Re: Forward to exception page instead of result in case of ognl runtime exception ?

2014-06-11 Thread Lukasz Lenart
Define validation for this field, then you will get validation error and Struts will forward to input result 2014-06-12 7:48 GMT+02:00 Mohit Gupta : > I have below action class where customerId is integer. If i pass customerId > as string from UI(I know it should not be allowed but the

Forward to exception page instead of result in case of ognl runtime exception ?

2014-06-11 Thread Mohit Gupta
I have below action class where customerId is integer. If i pass customerId as string from UI(I know it should not be allowed but there are ways user can do it), i get exception ognl.MethodFailedException: . Please find stack trace at last @Results({ @Result(name = "displayCustomer", locatio

Re: Cannot forward after response has been committed...

2013-01-18 Thread raghu88
); -- View this message in context: http://struts.1045723.n5.nabble.com/Cannot-forward-after-response-has-been-committed-tp5710573p5711664.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

forward request url from server side

2010-11-30 Thread Ragavendran
oing with parameters. please give any feasible solution. -- View this message in context: http://old.nabble.com/forward-request-url-from-server-side-tp30339054p30339054.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: S2 Forward to previous view (GoBack)

2010-03-08 Thread Girish Naik
' and store it in page 'B' 's go back button. Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com On Mon, Mar 8, 2010 at 2:34 PM, Marsman wrote: > > Hi! > > how can I forward to the previous view (for a "go

S2 Forward to previous view (GoBack)

2010-03-08 Thread Marsman
Hi! how can I forward to the previous view (for a "go back" button)? I've read about dynamic results. But how can I determine the view, the user comes from? Or is there an easier way to implement this (without javascript)? Titus -- View this message in context: http://ol

Re: How to forward....

2009-12-16 Thread Paweł Wielgus
Hi Rafael, instead forward name="success" path="/MainMenu.class" write forward name="success" path="/MainMenu.do". Best greetingsgus. , Paweł Wiel 2009/12/16 Rafael Muneton : > > Hello: > > > > I am trying to develop a small applic

How to forward....

2009-12-15 Thread Rafael Muneton
Hello: I am trying to develop a small application that contains a Login.jsp, in case of failure the controller must redirect to Login.jsp again; in case of success the controller must redirect to a Java application ,MainMenu.class. I think this is done in struts-config.xml file:

Re: Interceptor doesn't forward

2009-09-10 Thread Lukasz Lenart
2009/9/10 Jim Collings : > I think I am getting my syntax wrong for the global result. How do you > specify a global result that is an action? User redirectAction http://struts.apache.org/2.x/docs/redirect-action-result.html Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org

Re: Interceptor doesn't forward

2009-09-10 Thread Jim Collings
I think I am getting my syntax wrong for the global result. How do you specify a global result that is an action? Jim C. On Thu, Sep 10, 2009 at 2:27 PM, Mitch Claborn wrote: > It sounds like either the original page or the one being redirected to > is being controlled by container managed secu

Re: Interceptor doesn't forward

2009-09-10 Thread Mitch Claborn
It sounds like either the original page or the one being redirected to is being controlled by container managed security, configured in web.xml. Mitch Jim Collings wrote: > I want to send a user to the welcome page if they don't have something > set in their session. > > I have an interceptor t

Re: Interceptor doesn't forward

2009-09-10 Thread Jim Collings
Yes. On Thu, Sep 10, 2009 at 12:58 PM, Lukasz Lenart wrote: > 2009/9/10 Jim Collings : >> I have an interceptor that works fine otherwise.  It returns either >> invocation.invoke() OR it returns Action.LOGIN.  Problem is that I > > Did you create global result named "login"? > > > Regards > -- >

Re: Interceptor doesn't forward

2009-09-10 Thread Lukasz Lenart
2009/9/10 Jim Collings : > I have an interceptor that works fine otherwise.  It returns either > invocation.invoke() OR it returns Action.LOGIN.  Problem is that I Did you create global result named "login"? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ ---

Interceptor doesn't forward

2009-09-10 Thread Jim Collings
I want to send a user to the welcome page if they don't have something set in their session. I have an interceptor that works fine otherwise. It returns either invocation.invoke() OR it returns Action.LOGIN. Problem is that I can't get the LOGIN result to map properly. How is this done? I've tr

Re: Forward to another page on Submit

2009-06-23 Thread Sam Wun
etConfig; > import javax.portlet.RenderRequest; > import javax.portlet.RenderResponse; > > import org.apache.struts.action.ActionForm; > import org.apache.struts.action.ActionForward; > import org.apache.struts.action.ActionMapping; > > /** @struts.action name="

Forward to another page on Submit

2009-06-23 Thread Sam Wun
.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** @struts.action name="RedirectForm" path="/struts_redirect_portlet/input" * scope="session" * input="/portlet/struts_redirect_portlet/input.jsp" * * @str

Re: IllegalStateException: Cannot forward. Response already committed.

2009-05-24 Thread Wes Wannemacher
etLogger("index.jsp");log.debug("begin");%> name="welcome" /> > > Any other ideas? > > -Original Message- > From: Wes Wannemacher [mailto:w...@wantii.com] > Sent: Wednesday, May 20, 2009 4:48 PM > To: Struts Users Mailing List >

RE: IllegalStateException: Cannot forward. Response already committed.

2009-05-21 Thread Hermann X Lau
l" import="org.apache.log4j.Logger"%><%final Logger log = Logger.getLogger("index.jsp");log.debug("begin");%> Any other ideas? -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, May 20, 2009 4:48 PM To: Struts U

Re: IllegalStateException: Cannot forward. Response already committed.

2009-05-20 Thread Dale Newfield
Sorry to hijack this thread, but it looks like Wes has already given you a pretty complete answer. At first I thought you were going to be asking about this: http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppUnableToSetRequestCharEncoding I get a warning in my glassfish logs for pretty much

Re: IllegalStateException: Cannot forward. Response already committed.

2009-05-20 Thread Wes Wannemacher
t; Thanks in advance for any help on this... > >  I understand we get this exception when the JSP attempts to write to the > print stream after the response has been committed but I don't see how this > is occurring in my situation since my JSP just contains a simple forward. > >

IllegalStateException: Cannot forward. Response already committed.

2009-05-20 Thread Hermann X Lau
Thanks in advance for any help on this... I understand we get this exception when the JSP attempts to write to the print stream after the response has been committed but I don't see how this is occurring in my situation since my JSP just contains a simple forward. Index.jsp <%@ ta

Re: default class to forward requests

2009-05-12 Thread Suneel
ld.html > > On Tue, May 12, 2009 at 11:15 AM, Bhaarat Sharma wrote: > >> Is there a default class that we can use in struts.xml that can be used for >> just forward request to a new html page. >> Basically user clicking a link and going to a new page.  I dont want to >> ma

Re: default class to forward requests

2009-05-12 Thread Jim Kiley
ion+class+execute+success+default [2]http://struts.apache.org/2.1.6/docs/hello-world.html On Tue, May 12, 2009 at 11:15 AM, Bhaarat Sharma wrote: > Is there a default class that we can use in struts.xml that can be used for > just forward request to a new html page. > Basically user clicking

default class to forward requests

2009-05-12 Thread Bhaarat Sharma
Is there a default class that we can use in struts.xml that can be used for just forward request to a new html page. Basically user clicking a link and going to a new page. I dont want to make an execute method that just returns SUCCESS. Rather there must be some default class that does that. I

Re:Re: How to forward request in struts 2.1.6?

2009-04-30 Thread xnpeng
by the idea of Convention-plugin(CodeBehind-plugin)--"Zero Config",it provides: Action location by package naming conventions Result (JSP, FreeMarker, etc) location by naming conventions Class name to URL naming convention Package name to namespace convention SEO compliant URLs (i.e. my-action

Re: How to forward request in struts 2.1.6?

2009-04-30 Thread Dave Newton
xnpeng wrote: public class PublishController extends PublishAction implements Preparable { private static String message_url = "/post/message/"; private static String affair_url = "/post/affair/"; private static String business_url = "/post/business/"; private static String activi

Re:Re: Re: How to forward request in struts 2.1.6?

2009-04-30 Thread xnpeng
")) category = CategoryService.getCategory(cateId); String id = ServletActionContext.getRequest().getParameter("id"); if (category != null && id != null) { if (category.getCateId().equalsIgnoreCase(Category.MESSAGE)) { ServletActionContext.getServletContext().getRequestDis

Re: Re: How to forward request in struts 2.1.6?

2009-04-30 Thread Nils-Helge Garli Hegvik
quot;show" ,... > are the default result types. I can manage this. > > my situation is, I need to forward request to action conditionally,ie,depend > on "category" in action class. > > > > > 在2009-04-29,"Nils-Helge Garli Hegvik" 写道: >>

Re:Re: How to forward request in struts 2.1.6?

2009-04-30 Thread xnpeng
thanks for your reply. the result types cannot do my jobs in struts2+rest environment. in this environment, the "success","error",... did not work, only "index","show" ,... are the default result types. I can manage this. my situation is, I need to fo

Re: How to forward request in struts 2.1.6?

2009-04-29 Thread Nils-Helge Garli Hegvik
Why do you need to do it manually with the request dispatcher? Can't you use any of the available result types? http://struts.apache.org/2.1.6/docs/result-types.html Nils-H 2009/4/29 xnpeng : > from: > > ServletActionContext.getServletContext().getRequestDispatcher("/post/me

How to forward request in struts 2.1.6?

2009-04-29 Thread xnpeng
from: ServletActionContext.getServletContext().getRequestDispatcher("/post/message/"+id).forward(ServletActionContext.getRequest(),ServletActionContext.getResponse()); I want to forward request to http://localhost:8080/post/message/3166, but it always throws out exception says

Re: Handling Browser Back/Forward Button in Struts2

2009-03-30 Thread Paweł Wielgus
this is going on?? >> > >> > or do i need to set anything apart from this? >> > >> > -shekher >> > >> > On Fri, Jan 23, 2009 at 9:06 PM, shekher awasthi >> > wrote: >> > >> >> Can you guide me the way how to use SS

How do I add a paramter to the request and forward?

2009-02-18 Thread laredotornado
;123" to the request, and then forwards the request to "/jsp/start.jsp". How do I do this using the struts framework? Thanks, - Dave -- View this message in context: http://www.nabble.com/How-do-I-add-a-paramter-to-the-request-and-forward--tp22082233p22082233.html Sent from the Str

Re: Handling Browser Back/Forward Button in Struts2

2009-01-26 Thread shekher awasthi
t; > > -shekher > > > > On Fri, Jan 23, 2009 at 9:06 PM, shekher awasthi > > wrote: > > > >> Can you guide me the way how to use SSL in struts2 i am looking in to > this > >> > >> IDE i am using is MyEclispe > >> > >> and i am

Re: Handling Browser Back/Forward Button in Struts2

2009-01-26 Thread Paweł Wielgus
gt; and i am testing it using tomcat >> >> On Fri, Jan 23, 2009 at 7:33 PM, Paweł Wielgus wrote: >> >>> Hi Shekher, >>> all my testing was under SSL connection. So without pragma and cache >>> control it's not working - sadly. >>> >&g

Re: Handling Browser Back/Forward Button in Struts2

2009-01-24 Thread shekher awasthi
>> >> 2009/1/22 shekher awasthi : >> > Hi Paweł, >> > >> > another way we can do this by using SSL >> > as we are dealing in secure zone so using SSL for this might be a good >> case. >> > >> > the application i have see

Re: Handling Browser Back/Forward Button in Struts2

2009-01-23 Thread shekher awasthi
gt; > the application i have seen so far who have dealt with this back/forward > > button always using HTTPS protocol. > > > > i am also diving in to this case study and will share the results > > > > > > On 1/22/09, shekher awasthi wrote: > >> >

Re: Handling Browser Back/Forward Button in Struts2

2009-01-23 Thread Paweł Wielgus
for this might be a good case. > > the application i have seen so far who have dealt with this back/forward > button always using HTTPS protocol. > > i am also diving in to this case study and will share the results > > > On 1/22/09, shekher awasthi wrote: >> >&g

Re: Handling Browser Back/Forward Button in Struts2

2009-01-22 Thread shekher awasthi
Hi Paweł, another way we can do this by using SSL as we are dealing in secure zone so using SSL for this might be a good case. the application i have seen so far who have dealt with this back/forward button always using HTTPS protocol. i am also diving in to this case study and will share the

Re: Handling Browser Back/Forward Button in Struts2

2009-01-22 Thread shekher awasthi
>> > { >> > window.history.forward(); >> > } >> > >> > >> > If it work for you I will be very happy. >> > >> > Thank you. >> > >> > -Ehtesham >> > >> > >> > --- On Thu, 1/22/09

Re: Handling Browser Back/Forward Button in Struts2

2009-01-22 Thread shekher awasthi
I will be very happy. > > > > Thank you. > > > > -Ehtesham > > > > > > --- On Thu, 1/22/09, Paweł Wielgus wrote: > > > > From: Paweł Wielgus > > Subject: Re: Handling Browser Back/Forward Button in Struts2 > > To: "Struts Users Mailin

Re: Handling Browser Back/Forward Button in Struts2

2009-01-22 Thread Paweł Wielgus
gt; > > If it work for you I will be very happy. > > Thank you. > > -Ehtesham > > > --- On Thu, 1/22/09, Paweł Wielgus wrote: > > From: Paweł Wielgus > Subject: Re: Handling Browser Back/Forward Button in Struts2 > To: "Struts Users Mailing List" >

Re: Handling Browser Back/Forward Button in Struts2

2009-01-22 Thread Ehteshamul Haque
--- On Thu, 1/22/09, Paweł Wielgus wrote: From: Paweł Wielgus Subject: Re: Handling Browser Back/Forward Button in Struts2 To: "Struts Users Mailing List" Date: Thursday, January 22, 2009, 12:34 AM Hi Shekher, it was very interesting subject, so i dig a little more. Here [1] is what i f

Re: Handling Browser Back/Forward Button in Struts2

2009-01-22 Thread Ehteshamul Haque
Thu, 1/22/09, Paweł Wielgus wrote: From: Paweł Wielgus Subject: Re: Handling Browser Back/Forward Button in Struts2 To: "Struts Users Mailing List" Date: Thursday, January 22, 2009, 12:34 AM Hi Shekher, it was very interesting subject, so i dig a little more. Here [1] is what i found,

Re: Handling Browser Back/Forward Button in Struts2

2009-01-22 Thread Paweł Wielgus
>> >>> >> Best greetings, >>> >> Paweł Wielgus. >>> >> >>> >> >>> >> 2009/1/20 Robert Graf-Waczenski : >>> >> > You don't write if the browser back button is supposed to be >>> functional

Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread shekher awasthi
s, >> >> Paweł Wielgus. >> >> >> >> >> >> 2009/1/20 Robert Graf-Waczenski : >> >> > You don't write if the browser back button is supposed to be >> functional >> >> in >> >> > your application (in many ca

Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread shekher awasthi
tion (in many cases it is not, but YMMV). > >> > > >> > If you want to disable the browser back button, use the code below in > all > >> > your pages: > >> > > >> > > >> > history.forward(); > >> > > >> > > >

Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread Paweł Wielgus
history.forward(); >> > >> > >> > I'm not aware of any feature in Struts2 that deals with the browser back >> > button. >> > >> > Robert >> > >> > >> > shekher awasthi wrote: >> >> >> &

Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread shekher awasthi
rd(); > > > > > > I'm not aware of any feature in Struts2 that deals with the browser back > > button. > > > > Robert > > > > > > shekher awasthi wrote: > >> > >> Hi All, > >> > >> in the process of developing

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Robert Graf-Waczenski
application using struts 2.0.11, i came across the problem of handling browser back/forward button. This problem is occurring when we will logout the user.On Clicking the logout button we are currently removing the user from the session and it worked fine for us. After the successful

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread shekher awasthi
t; across > > the problem of handling browser back/forward button. > > > > This problem is occurring when we will logout the user.On Clicking the > > logout button we are currently removing the user from the session > > > > and it worked fine for us. After the success

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Nils-Helge Garli Hegvik
Did you invalidate the session? Are you setting no cache headers on the response? Nils-H On Tue, Jan 20, 2009 at 12:46 PM, shekher awasthi wrote: > Hi All, > > in the process of developing application using struts 2.0.11, i came across > the problem of handling browser back/fo

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Paweł Wielgus
gt; > > I'm not aware of any feature in Struts2 that deals with the browser back > button. > > Robert > > > shekher awasthi wrote: >> >> Hi All, >> >> in the process of developing application using struts 2.0.11, i came >> across >

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread shekher awasthi
any feature in Struts2 that deals with the browser back > button. > > Robert > > > > shekher awasthi wrote: > >> Hi All, >> >> in the process of developing application using struts 2.0.11, i came >> across >> the problem of handling browser

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Robert Graf-Waczenski
deals with the browser back button. Robert shekher awasthi wrote: Hi All, in the process of developing application using struts 2.0.11, i came across the problem of handling browser back/forward button. This problem is occurring when we will logout the user.On Clicking the logout but

Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread shekher awasthi
Hi All, in the process of developing application using struts 2.0.11, i came across the problem of handling browser back/forward button. This problem is occurring when we will logout the user.On Clicking the logout button we are currently removing the user from the session and it worked fine

Re: S2: Forward or Redirect to same page

2008-12-10 Thread Dirk Forchel
't exist, let's do a 404 if (dispatcher == null) { response.sendError(404, "result '" + location + "' not found"); return; } // If we're included, then include the view //

Re: S2: Forward or Redirect to same page

2008-12-10 Thread Sébastien Domergue
ards Sébastien Dirk Forchel a écrit : I have a problem forwarding to the same page after a request is submitted by a form. This could be straightforward until this form is only on the same page. In this case I would use a "dispatcher" to forward to the appropriate JSP. But how can I forw

S2: Forward or Redirect to same page

2008-12-10 Thread Dirk Forchel
I have a problem forwarding to the same page after a request is submitted by a form. This could be straightforward until this form is only on the same page. In this case I would use a "dispatcher" to forward to the appropriate JSP. But how can I forward to the "same page" if

Re: Action Forward object behaving in a very odd way under heavy load.

2008-10-28 Thread simpu
a case of swapping also looks impossible. This happens occasionally and only in production. Warm Regards, Arnab Jena - Original Message From: simpu <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Tuesday, 28 October, 2008 7:12:22 AM Subject: Action Forward object behaving in a ve

Action Forward object behaving in a very odd way under heavy load.

2008-10-27 Thread simpu
Dear All, I am a part of an IVR project which uses Struts architecture. I am facing a typical scenario in the Production. When I forward the Action Forward object(using mapping.findForward("String str") ) then the object instead of taking me to that particular place takes me

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Chris Pratt
MI <[EMAIL PROTECTED]> wrote: > Great, but it doesn't feet my need. > The result to forward to is dynamic and depends on the execution of the > interceptor. > > Chris Pratt a écrit : > > Sure, normally you would set up some in your struts.xml >> that your interc

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Ahmed ALAMI
Great, but it doesn't feet my need. The result to forward to is dynamic and depends on the execution of the interceptor. Chris Pratt a écrit : Sure, normally you would set up some in your struts.xml that your interceptor will redirect to then just return the name of the result from

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Nuwan Chandrasoma
you can use response.sendRedirect() method inside an interceptor. Ahmed ALAMI wrote: Hello everybody, Is there a way using the struts 2 API to forward or redirect to a url inside an interceptor instead of making a actionInvocation.invoke(). Thanks for reply

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Chris Pratt
gt; Hello everybody, > Is there a way using the struts 2 API to forward or redirect to a url > inside an interceptor instead of making a actionInvocation.invoke(). > Thanks for reply. > > - > To unsubscribe, e-ma

Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Ahmed ALAMI
Hello everybody, Is there a way using the struts 2 API to forward or redirect to a url inside an interceptor instead of making a actionInvocation.invoke(). Thanks for reply. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Way to forward to another action in Struts 1

2008-05-01 Thread Mead Lai
hese > > type="org.cipe.cmrs.grants.actions.AddGrantModificationAction" > name="addProjectModificationForm" scope="request" > validate="true" > input="addProjectModification"> > &

Way to forward to another action in Struts 1

2008-05-01 Thread bhaarat Sharma
Hi I started struts with struts 2 but currently am in a project which is using struts 1 we have tags like these where the forward path is in a tiles definition. I am wondering if there is a way to forward the control to another struts1 action when forward name is success

Form submision after return forward out of action

2008-03-07 Thread phowells
t which it does form.setButton(null); but then after i return the forward, the button gets set again to the value Next again by the utils and then when i click on a link to another page, using the a tag with href=javascript:location="xxx.do" and the form validation hits again and is saving

Re: [s2] Forward directly to JSP w/o processing

2008-02-13 Thread Jeromy Evans
s fine. If you don't want to explicitly define an action in struts.xml but want to forward to a JSP through Struts2, use the CodeBehind plugin. http://struts.apache.org/2.x/docs/codebehind-plugin.html Allen, Daniel wrote: Hi. I have a few places in my web app where a URL goes to a page

[s2] Forward directly to JSP w/o processing

2008-02-13 Thread Allen, Daniel
n the server, and I was wondering if perhaps this was because I needed to do something else to describe the action for Struts to take. If the below is incorrect, how can I forward a URL directly to a JSP without any Action class in between? (I assume this must be possible, since a) it was in Struts1,

[OT] Re: Can we forward to jsp files under /WEB-INF folder

2008-02-10 Thread Dave Newton
--- Sai Reddy <[EMAIL PROTECTED]> wrote: > I'm using Struts 1.2.7 and Tomcat 5.5.25 server. > Can we forward a HttpRequest to the files under /WEB-INF folder? I've read > in "Struts Survival Guide" that we can do so with tomcat server but not > with other se

Can we forward to jsp files under /WEB-INF folder

2008-02-10 Thread Sai Reddy
Hi friends I'm using Struts 1.2.7 and Tomcat 5.5.25 server. Can we forward a HttpRequest to the files under /WEB-INF folder? I've read in "Struts Survival Guide" that we can do so with tomcat server but not with other servers. Is that true? I need the answer because I'm

Re: tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, Thanks, corrected the path and tiles-def.xml syntax. Regards, Amulya On Jan 18, 2008 3:57 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > > < tile definition = "page.main" path = "pages/welcome.jsp" > > > Uh??? Congratulations! You i

Re: tile definition as an action forward path gives error

2008-01-18 Thread Antonio Petrelli
2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > < tile definition = "page.main" path = "pages/welcome.jsp" > Uh??? Congratulations! You invented a new Tiles definition syntax :-) Your Tiles definition file is completely wrong, add the DTD on top of your XML and validate it. And, again, che

Re: tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, The tile definition exists. And still it gives me the same error. The application is starting up properly. Regards, Amulya On Jan 18, 2008 3:40 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > > > > *description * *The server encountered a

Re: tile definition as an action forward path gives error

2008-01-18 Thread Antonio Petrelli
2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > > *description * *The server encountered an internal error () that prevented > it from fulfilling this request.* > *exception * > java.lang.IllegalArgumentException : Path page.welcome does not start > with a "/" character >org.apache.strut

tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, I am getting the error "java.lang.IllegalArgumentException: Path page.welcome does not start with a "/" character " when trying to display a jsp. The tile definition is given as an Action forward path. This is the first page after login. And I am not sure if the ti

Re: Forward with redirect="true" failing mysteriously

2008-01-09 Thread Laurie Harper
when this is successful, it returns mapping.findForward("success"), and otherwise, it returns mapping.findForward("failure"). For reasons I have not been able to determine, the redirection often fails. RegistrationAction.execute() will run successfully, the mapping.findForward() succeeds

Forward with redirect="true" failing mysteriously

2008-01-09 Thread Thomas Okken
succeeds and finds the correct forward, which is then returned -- but an exception is thrown while the redirect is sent to the client. This is the full log output: Jan 9, 2008 11:11:35 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for

Re: return content (like PDF) but also forward/redirect....

2007-12-11 Thread Paul Benedict
nd still > be sitting on that page...able to click it againSo the same > problem applies. After they select to 'download' the PDF, I want to > forward them to a mail/lookup screen so they can do some other work. > > *grumble* > > Might be better to use

Re: return content (like PDF) but also forward/redirect....

2007-12-11 Thread Jeff Amiel
of that...but I don't want them to click the link and still be sitting on that page...able to click it againSo the same problem applies. After they select to 'download' the PDF, I want to forward them to a mail/lookup screen so they can do some other work. *grumble* Might be bette

Re: return content (like PDF) but also forward/redirect....

2007-12-11 Thread Paul Benedict
> displayed with the checkboxes checked.(those items are actually no > longer available for printing). > > I have found no way to return the PDF content AND forward to a > different action/page. > I can't 'embed' the pdf on a page that I can forward to as t

return content (like PDF) but also forward/redirect....

2007-12-11 Thread Jeff Amiel
no longer available for printing). I have found no way to return the PDF content AND forward to a different action/page. I can't 'embed' the pdf on a page that I can forward to as the PDF is generated dynamically. I've played around with some javascript to 'hide'

Re: [S2] How to forward to another struts mapping

2007-11-21 Thread Omkar Patil
rs from > Action-A to be present in the view of URL-B. > > How do I do this? It used to be simple in Struts-1, but I can't figure it > out for Struts2. > > Thanks, > > Alex > -- View this message in context: http://www.nabble.com/-S2--How-to-forward-to-another-str

[S2] How to forward to another struts mapping

2007-11-20 Thread alexworden
used to be simple in Struts-1, but I can't figure it out for Struts2. Thanks, Alex -- View this message in context: http://www.nabble.com/-S2--How-to-forward-to-another-struts-mapping-tf4846285.html#a13865418 Sent from the Struts - User mailing list archive at

RE: Re: forward to a particular id in a page from

2007-11-14 Thread Richard . Ferri
It sounds like you want to use mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, November 14, 2007 6:47 PM To: user@struts.apache.org Subject: Re: forward to a particular id in a page from Hi, > > i have an html id in a jsp page . > > i have, > in my st

Re: forward to a particular id in a page from

2007-11-14 Thread Laurie Harper
shakeel_code wrote: Hi, i have an html id in a jsp page . i have, in my struts config.xml but i want to go directly to that id in the jsp page when the forward happens. i also tried, but it was of no help can anyone help me? I'm not sure if I understand what you want.

forward to a particular id in a page from

2007-11-13 Thread shakeel_code
Hi, i have an html id in a jsp page . i have, in my struts config.xml but i want to go directly to that id in the jsp page when the forward happens. i also tried, but it was of no help can anyone help me? thanks... -- View this message in context: http://www.nabble.com

Re: [s2] forward to another action?

2007-10-30 Thread lbastil
-- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-s2--forward-to-another-action--tf4712685.html#a13488289 Sent from the Struts - User mailing list archive at

  1   2   3   4   5   6   7   8   >