You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Theodoridis <st...@tera.gr> on 2005/03/03 18:32:38 UTC

How can I forward from an Action to a URL outside application

Hi

I want to forward from an action to a url outside the application
I am having the followin entry at struts-config.xml

   
    <action  path="/farmacy"
        type="gr.tera.teramobile.actions.FarmacyAction">
        <forward name="success" path="http://www.tera.gr"/>
    </action>

by i am getting the error

java.lang.IllegalArgumentException: Path www.tera.gr does not start with a "/" character
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)

............................................

Is there any way to do this?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can I forward from an Action to a URL outside application

Posted by Jim Theodoridis <st...@tera.gr>.
Hi
 
A new problem about this.
How can I pass parameters to a URL those parameters to gets from an action
I think there was an example few days ago but i can find it.


Jim Theodoridis wrote:

> Sorry.
>
> It is so simply i found it.
>
> Jim Theodoridis wrote:
>
>> Hi
>>
>> I want to forward from an action to a url outside the application
>> I am having the followin entry at struts-config.xml
>>
>>      <action  path="/farmacy"
>>        type="gr.tera.teramobile.actions.FarmacyAction">
>>        <forward name="success" path="http://www.tera.gr"/>
>>    </action>
>>
>> by i am getting the error
>>
>> java.lang.IllegalArgumentException: Path www.tera.gr does not start 
>> with a "/" character
>>     
>> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) 
>>
>>
>> ............................................
>>
>> Is there any way to do this?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: How can I forward from an Action to a URL outside application

Posted by Günther Wieser <gw...@creative-it.com>.
tell us more! 

how did you do it?

-----Original Message-----
From: Jim Theodoridis [mailto:struts@tera.gr] 
Sent: Thursday, March 03, 2005 6:41 PM
To: Struts Users Mailing List
Subject: Re: How can I forward from an Action to a URL outside application

Sorry.

It is so simply i found it.

Jim Theodoridis wrote:

> Hi
>
> I want to forward from an action to a url outside the application I am 
> having the followin entry at struts-config.xml
>
>      <action  path="/farmacy"
>        type="gr.tera.teramobile.actions.FarmacyAction">
>        <forward name="success" path="http://www.tera.gr"/>
>    </action>
>
> by i am getting the error
>
> java.lang.IllegalArgumentException: Path www.tera.gr does not start 
> with a "/" character
>     
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.j
> ava:1062)
>
>
> ............................................
>
> Is there any way to do this?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can I forward from an Action to a URL outside application

Posted by Jim Theodoridis <st...@tera.gr>.
Sorry.

It is so simply i found it.

Jim Theodoridis wrote:

> Hi
>
> I want to forward from an action to a url outside the application
> I am having the followin entry at struts-config.xml
>
>      <action  path="/farmacy"
>        type="gr.tera.teramobile.actions.FarmacyAction">
>        <forward name="success" path="http://www.tera.gr"/>
>    </action>
>
> by i am getting the error
>
> java.lang.IllegalArgumentException: Path www.tera.gr does not start 
> with a "/" character
>     org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) 
>
>
> ............................................
>
> Is there any way to do this?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org