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: 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

[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; th

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 tha

Re: action forward to servlet

2007-04-30 Thread Chris Pat
ction 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#a1025375

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 gen

Re: action forward to servlet

2007-04-30 Thread Felipe Rodrigues
he > 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 > servlet. Can someone help me understand? tia. > > -- View this message in context: http://www.nabble.com/action-forward-to-servl

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 ser

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 comm

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: 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?

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: 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); redirect.addPar

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 cal

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

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
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

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 defi

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 th

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. http://issues.apache.org/bugzilla/show

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): then you have to do the following at the end of your action (after all work has been done): return mapping.findForward( "ok" ); I do this, but

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: I use this for thing

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: type="com.edirect.pl.app.cmsold.struts.form.SendLinkForm"/> Action: parameter="/popup/sendlink.jsp" type="com.edirect.pl.app.cmsold.struts.control.SendLink" name="SendLinkForm">

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: 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): then you have to do the following at the end of your action (after all work has been done): return mapping.findForward( "ok" ); I do this, but struts still forwarding

RE: Action forward path

2005-12-12 Thread Peter . Zoche
rsprüngliche Nachricht- Von: Andrzej Bengner [mailto:[EMAIL PROTECTED] Gesendet: Montag, 12. Dezember 2005 10:37 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 t

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
Hi! If you only want your Action to forward to the jsp, and do nothing else, use a ForwardAction like this: The parameter attribute defines the target of your forward action, that is your jsp. Greetings Peter - Hello, I ha

Action forward path

2005-12-12 Thread Andrzej Bengner
Hello, I have one problem with forwarding my action. In my action mapping is: and when I execute my action, then forwarding me to localhost:8080/context/MyAction.do - not localhost:8080/context/path/file.jsp (or localhost:8080/context/path/MyAction.do) How can I dissolve this?

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

2005-11-07 Thread Michael Jouravlev
rresponding execute/perfom-method. 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 &

Link to action-forward without calling the action-class

2005-11-07 Thread Thomas Hamacher
s 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/p

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

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 On

Issue with action forward - urgent

2005-07-31 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 org.apache.

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 declare

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 struts-config.x

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 requ

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 tag f

Re: Having Action forward to another applications action

2004-08-05 Thread Kishore Senji
on (chmenu). > > type="org.chboston.web.action.LogoutAction"> >/> > > > I can use the following use the following, but if we add modules in the > future, this would break and I don't feel comfortable doing it this way. >

Having Action forward to another applications action

2004-08-05 Thread DuBois, Joseph
this would break and I don't feel comfortable doing it this way. Is there any way to have a action forward to an action of another application. Note: the reason I don't use a fully qualified URL is because the application resides behind a load switch and I need to cal

RE: Action Forward

2004-06-09 Thread Andrew Hill
ther its 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 yo

Re: Action Forward

2004-06-09 Thread Harjot Narula
irect(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

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 su

RE: Action Forward

2004-06-08 Thread Frank Zammetti
ply-To: "Struts Users 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 PROTE

RE: Action Forward

2004-06-08 Thread Shilpa Vaidya
4:47 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Action Forward 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

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

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 and