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
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
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
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
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
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
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
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;
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
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
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
.
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
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
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
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
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
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?
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
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);
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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.
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
.
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
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
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
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
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
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
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
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
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
(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
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
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
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
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
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
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
51 matches
Mail list logo