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

2008-10-28 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 to a jsp

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

2008-10-28 Thread simpu
to a different place. So 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

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 tiles plugin in struts-config.xml

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

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 invented a new

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, check the

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 an

[S2] Action Forward?

2007-05-02 Thread Daniel Ruan
I come from the Struts 1 world, and am trying to find out how to do this properly in Struts 2. This is a common issues. Let's say we have a Web site that has both protected (needs login) and public resources. If users click a link to a protected resource, the site will direct users to log in;

action forward to servlet

2007-04-30 Thread Chris Pat
Hello Is/how it possible to forward from a action to a servlet at another url and preserve the parameters and session objects? I am doing all the processing in the Action and just simply need to send a data stream back. I can do it with servlets, but cant seem to do it with an action and a

Re: action forward to servlet

2007-04-30 Thread Felipe Rodrigues
and just simply need to send a data stream back. I can do it with servlets, but cant seem to do it with an action and a servlet. Can someone help me understand? tia. -- View this message in context: http://www.nabble.com/action-forward-to-servlet-tf3668811.html#a10253751 Sent from

Re: action forward to servlet

2007-04-30 Thread Laurie Harper
The first question should be, do you really need the servlet? You could generate the full response from the action. If you still need to keep the servlet around for other uses, perhaps you can refactor the bulk of its work into a service class that both the servlet and the action can use to

Re: action forward to servlet

2007-04-30 Thread Chris Pat
. I can do it with servlets, but cant seem to do it with an action and a servlet. Can someone help me understand? tia. -- View this message in context: http://www.nabble.com/action-forward-to-servlet-tf3668811.html#a10253751 Sent from the Struts - User mailing list archive at Nabble.com

Re: action forward to servlet

2007-04-30 Thread Chris Pat
Hi Laurie I had used Request.dispatcher before but only in servlet code; didnt know/realize I could do it in an Action. I see the key is to make that one of the states that will always be called and just trick Struts with the return of the null. I assume the technology is orthogonal enough

Action forward new page

2006-10-16 Thread Marcello Savino
The user press a submit botton. A proper action exist in a LookupDispatchAction. In this action i need to redirect the user to a new page. Does anybody know if and how can i do that ? Any help will be greatly appreciated. Thanks in advance Ciao, marcello

RE: Action forward new page

2006-10-16 Thread Dave Newton
In this action i need to redirect the user to a new page. Does anybody know if and how can i do that ? Response.sendRedirect? Forward with redirect='true'? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

html link tag to call action forward

2006-07-18 Thread mosho
the link and have different action forwards. Is there a way to set the parameter for html:link tag and then use that parameter in the action mapping to find the relevant forward. Thanks for your help. -- View this message in context: http://www.nabble.com/html-link-tag-to-call-action-forward

Re: html link tag to call action forward

2006-07-18 Thread Michael Jouravlev
On 7/18/06, mosho [EMAIL PROTECTED] wrote: Hi all, I am struts 1.1. My requirement is to have links which will call one action and each link will have unique identifier to get data. For example, something lilke this: home.do?action=link1 action parameter will keep changing. How can I do this?

Re: Request parameters in action forward

2006-06-21 Thread Lance Semmens
You can use an org.apache.struts.action.ActionRedirect ActionForward forward = mapping.findForward(reload); ActionRedirect redirect = new ActionRedirect(forward); redirect.addParameter(id, idValue); return redirect; Antonis Lebesis wrote: Hi, I do have a SelectFooAction (actually it's called

Re: Request parameters in action forward

2006-06-21 Thread Antonis Lebesis
Thanks Lance. This the solution I was looking for... Antonis On 6/21/06, Lance Semmens [EMAIL PROTECTED] wrote: You can use an org.apache.struts.action.ActionRedirect ActionForward forward = mapping.findForward(reload); ActionRedirect redirect = new ActionRedirect(forward);

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Thank you Don. I have done that and the session expiry problem is solved. The bookmark problem still exists though... There is a way to overcome this as well: ActionForward forward = new ActionForward(); forward.setPath(mapping.findForward(reload).getPath() + id=23); which redirects to

Re: Request parameters in action forward

2006-06-20 Thread Monkeyden
The only thing that I can think of is to redirect the user to a different (perhaps error) exactly, send them back to wherever they go to select the foo they want to look at. Do you have a SelectFooAction? On 6/20/06, Antonis Lebesis [EMAIL PROTECTED] wrote: Thank you Don. I have done that

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Hi, I do have a SelectFooAction (actually it's called ChooseFooAction :)). There is another problem though: This action is used in more than one places so I have to add a parameter called action in it's url (action=display for a simple user, action=edit for the admin etc). Since I have a lot of

Request parameters in action forward

2006-06-19 Thread Antonis Lebesis
Hello, I have a jsp (foo.jsp) that displays information about a certain foo. I have defined a LoadFooAction, that prepares the foo object and the SubmitFooAction, that is called when I want to change the appearance of foo in foo.jsp [suppose that foo is a list of bars and that I want to change

Re: Request parameters in action forward

2006-06-19 Thread Don Vawter
Can you take the request parameter and populate a hidden form field with it? Mixing request params with form fields has caused me grief more than once. On Jun 19, 2006, at 7:34 PM, Antonis Lebesis wrote: Hello, I have a jsp (foo.jsp) that displays information about a certain foo. I have

Action forward path

2005-12-12 Thread Andrzej Bengner
Hello, I have one problem with forwarding my action. In my action mapping is: action path=/MyAction input=/path/file.jsp ... forward name=ok path=/path/file.jsp/ /action and when I execute my action, then forwarding me to localhost:8080/context/MyAction.do - not

RE: Action forward path

2005-12-12 Thread Peter . Zoche
Hi! If you only want your Action to forward to the jsp, and do nothing else, use a ForwardAction like this: action path=/MyAction input=/path/file.jsp parameter=/path/file.jsp type=org.apache.struts.actions.ForwardAction / The parameter attribute defines the target of your forward

Re: Action forward path

2005-12-12 Thread Andrzej Bengner
The parameter attribute defines the target of your forward action, that is your jsp. Thanks. And what if I want to execute my action (do something) and forward to this path (/path/file.jsp or /path/MyAction.do)? Regards -- Andy

RE: Action forward path

2005-12-12 Thread Peter . Zoche
An: Struts Users Mailing List Betreff: Re: Action forward path The parameter attribute defines the target of your forward action, that is your jsp. Thanks. And what if I want to execute my action (do something) and forward to this path (/path/file.jsp or /path/MyAction.do)? Regards -- Andy

Re: Action forward path

2005-12-12 Thread Andrzej Bengner
[EMAIL PROTECTED] napisał(a): In that case, when action mapping looks like this (as you wrote in your mail before): action path=/MyAction input=/path/file.jsp ... forward name=ok path=/path/file.jsp/ /action then you have to do the following at the end of your action (after all

AW: Action forward path

2005-12-12 Thread Peter . Zoche
Could you post your complete action mapping and your corresponding Action (or only the important parts?) Peter - [EMAIL PROTECTED] napisał(a): In that case, when action mapping looks like this (as you wrote

Re: AW: Action forward path

2005-12-12 Thread Andrzej Bengner
Could you post your complete action mapping and your corresponding Action (or only the important parts?) FormBean: form-bean name=SendLinkForm type=com.edirect.pl.app.cmsold.struts.form.SendLinkForm/ Action: action path=/SendLink input=/popup/sendlink.jsp parameter=/popup/sendlink.jsp

Re: AW: Action forward path

2005-12-12 Thread Gary Feidt
If I understand this correctly Struts is doing the correct thing. It should go to http://localhost/context/MyAction.do and not http://localhost/context/path/MyAction.do If you really must have path in your URL, then maybe you should put that in your action path: action path=/path/SendLink

Re: Action forward path

2005-12-12 Thread Laurie Harper
Andrzej Bengner wrote: [EMAIL PROTECTED] napisał(a): In that case, when action mapping looks like this (as you wrote in your mail before): action path=/MyAction input=/path/file.jsp ... forward name=ok path=/path/file.jsp/ /action then you have to do the following at the end of

Re: Action forward path

2005-12-12 Thread Paul Benedict
For developers, I suggest looking into this proposed enhancement. Instead of duplicating the path again in the forward, you can forward to actions. Please vote for this if you think it is valuable; perhaps it will make it into future versions of 1.3 or 1.4.

Link to action-forward without calling the action-class

2005-11-07 Thread Thomas Hamacher
and references to a .do-link to link between pages. As globale-forwards don't work with tiles anymore I created actions-forwards. But if I reference to an action-forward with a defined action-class and an action-form, I always have the problem, that the validate() or execute/perform() method were

Re: Link to action-forward without calling the action-class

2005-11-07 Thread Michael Jouravlev
. ForwardAction Right now I have the problem that I have html:links and references to a .do-link to link between pages. As globale-forwards don't work with tiles anymore I created actions-forwards. But if I reference to an action-forward with a defined action-class and an action-form, I always have

Issue with action forward - urgent

2005-08-01 Thread Jmeter User
Hi, I am including the response of an action in to the same page that has triggered the action and getting an exception saying: ERROR - Servlet.service() for servlet action threw exception java.lang.IllegalStateException: Cannot forward after response has been committed at

Re: Issue with action forward - urgent

2005-08-01 Thread d d
  this usually occurs when ur response has already been redirected and again u r calling REquestDispatcher to forward to next page.. check if action forward is set only once.. or if accidently u have called response.sendRedirect();,somewhere on ur jsp or Action class hope this helps u out

Re: Issue with action forward - urgent

2005-08-01 Thread Laurie Harper
I'm not clear from yoor description what it is you're doing, but I can tell you what the exception means. You're requesting or triggering a browser redirect after part of the response has already been generated, which wont work. If you need to redirect the request somewhere else, you need to do

Problem with action forward while using Frames

2005-07-13 Thread syed abrar
Hello All, I have a problem.I have two frames with two different jsps.And after selecting the options(checkboxes) in the second frame the control goes to the Action class.After processing the request the control has to be passed to other jsp page(which have declared in

Re: Problem with action forward while using Frames

2005-07-13 Thread Laurie Harper
syed abrar wrote: Hello All, I have a problem.I have two frames with two different jsps.And after selecting the options(checkboxes) in the second frame the control goes to the Action class.After processing the request the control has to be passed to other jsp page(which have

How can I get the action forward path to be dynamic

2004-10-17 Thread Chacko, Raj
Hi I'm new to Struts. In one of our new project development, we are planning to use Struts. One of our requirement is to have dynamic pages loaded depending on some business logic. My question is this: I would like to know if there is a way to pass a variable to the path properties of the

Re: How can I get the action forward path to be dynamic

2004-10-17 Thread Michael McGrady
You can do better than this, if, for example, you use Tiles. You can create whatever forward you want, irrespective of the mapping.e.g., return new ActionForward(path). Chacko, Raj wrote: Hi I'm new to Struts. In one of our new project development, we are planning to use Struts. One of our

Having Action forward to another applications action

2004-08-05 Thread DuBois, Joseph
and I don't feel comfortable doing it this way. actionpath=/logout type=org.chboston.web.action.LogoutAction forward name=success path=../chlogin/logout.do redirect=true / /action Is there any way to have a action forward to an action of another application

Re: Action Forward

2004-06-09 Thread Harjot Narula
(response.encodeRedirectURL(/FetchNextPage.jsp)); Try this and let me know Hope this helps Harjot - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 7:59 PM Subject: RE: Action Forward Thanks Shilpa

RE: Action Forward

2004-06-09 Thread Andrew Hill
a redirecting forward or not). -Original Message- From: Harjot Narula [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 June 2004 20:04 To: Struts Users Mailing List Subject: Re: Action Forward Hi Brati Well, as far as I can understand, you don't wanna use struts-config for your forward path

Action Forward

2004-06-08 Thread brati . sankarghosh
Is it possible to forward to a page(html/jsp) from the Action Class without declaring that forward in the struts-config.xml? Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intended only

RE: Action Forward

2004-06-08 Thread Robert Taylor
Yes. return new ActionForward(path); robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 7:17 AM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Action Forward Is it possible to forward to a page

RE: Action Forward

2004-06-08 Thread Shilpa Vaidya
I do not hink its possible. U will have to make an entry in struts config .xml. Something like this...if ur doing a simple forward. w/o any action class. regds shilpa for ex - action forward=/WEB-INF/package/pac_log.jsp path=/pac_log / -Original Message- From: [EMAIL PROTECTED

RE: Action Forward

2004-06-08 Thread Frank Zammetti
Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Action Forward Date: Tue, 8 Jun 2004 08:28:14 -0400 Yes. return new ActionForward(path); robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 7:17

RE: Action Forward

2004-06-08 Thread brati . sankarghosh
Frank Zammetti [EMAIL PROTECTED] 06/08/2004 06:57 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject RE: Action Forward Cool, I didn't know that. Ignore my solutions Brati! (I suggested manually doing a forward via RequestDispatcher