You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Burton Rhodes <bu...@gmail.com> on 2009/12/30 05:25:46 UTC
Re: Struts 2 redirect problem
This probably isn't the answer you want, but an <iframe> tag would
probably do the trick.
On 12/29/09, Rakesh K nair <ra...@gmail.com> wrote:
>
> Hi
>
> I am Rakesh
>
> In my current project i need to display a different web application in a div
> which is a part of my main web page.I am able to get only the html output
> which acts as if it is in same context.For eg: for image,java script path it
> looks in the local context.My need is that div should completely occupy
> third party application from where i can operate the same.
>
> I am using struts 2.1.6
>
> I managed do that using below code(only the necessary part)
>
> jsp page
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
>
> <s:url id="ajaxTest" action="showMapView"/>
> <sx:a id="link1" href="%{ajaxTest}" targets="mapview">
> Show Map
> </sx:a>
> <div id="mapview">Map</div>
>
> struts.xml
>
> <action name="showMapView" class = "org.trinity.actions.MultipleTripMapView"
>>
> <result type="redirect">${url}</result>
> </action>
>
> in MultipleTripMapView i am setting value of url like
> 'http://www.google.co.in/' and also included getter for url
>
> Going through different discussion forums i found it can be done using
> ServletRedirectResult, but i am not able find enough support for that.
>
> Expecting your kind interaction
>
> Thanks in advance
>
> Rakesh
> --
> View this message in context:
> http://old.nabble.com/Struts-2-redirect--problem-tp26963912p26963912.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Struts 2 redirect problem
Posted by Rakesh K nair <ra...@gmail.com>.
Thanks for your comment.It is working but i would like to know whether there
is any another method
Thankfully
Rakesh
Burton Rhodes wrote:
>
> This probably isn't the answer you want, but an <iframe> tag would
> probably do the trick.
>
> On 12/29/09, Rakesh K nair <ra...@gmail.com> wrote:
>>
>> Hi
>>
>> I am Rakesh
>>
>> In my current project i need to display a different web application in a
>> div
>> which is a part of my main web page.I am able to get only the html output
>> which acts as if it is in same context.For eg: for image,java script path
>> it
>> looks in the local context.My need is that div should completely occupy
>> third party application from where i can operate the same.
>>
>> I am using struts 2.1.6
>>
>> I managed do that using below code(only the necessary part)
>>
>> jsp page
>> <%@ taglib prefix="s" uri="/struts-tags"%>
>> <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
>>
>> <s:url id="ajaxTest" action="showMapView"/>
>> <sx:a id="link1" href="%{ajaxTest}" targets="mapview">
>> Show Map
>> </sx:a>
>> <div id="mapview">Map</div>
>>
>> struts.xml
>>
>> <action name="showMapView" class =
>> "org.trinity.actions.MultipleTripMapView"
>>>
>> <result type="redirect">${url}</result>
>> </action>
>>
>> in MultipleTripMapView i am setting value of url like
>> 'http://www.google.co.in/' and also included getter for url
>>
>> Going through different discussion forums i found it can be done using
>> ServletRedirectResult, but i am not able find enough support for that.
>>
>> Expecting your kind interaction
>>
>> Thanks in advance
>>
>> Rakesh
>> --
>> View this message in context:
>> http://old.nabble.com/Struts-2-redirect--problem-tp26963912p26963912.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
--
View this message in context: http://old.nabble.com/Struts-2-redirect--problem-tp26963912p26964501.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org