Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Forwards between webapps

    0 answers - 2002 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Scott,
    The <forwardfailed simply cuz it refered to my context not to the
    other different context I wanna redirect to.
    I used the simple sendRedirect and it worked fine:
    String path = "";
    response.sendRedirect(path);
    return;
    Message
    From: news [mailto:news (AT) sea (DOT) gmane.org] Behalf Laurie Harper
    Sent: Thursday, August 17, 2006 11:45 PM
    To: user (AT) struts (DOT) apache.org
    Subject: Re: Forwards between webapps
    Scott Van Wart wrote:
    Saeed, Rada wrote:
    >Forwards between webapps are not supported, cuz both have different
    >contexts, this's what I got from running this :
    ><forward name="portal" path="/portal/main.do" redirect="true"
    >contextRelative="false" />
    >Is there any other way to achieve this forward between different web
    >applications ?
    >

    I think the class '' might do
    the trick (struts-config.xml):
    <action path="/toModule"
    type="" />
    And then in your JSP:
    <html:link page="/">To
    Portal</html:link>
    - Scott
    SwitchAction helps for switching between Struts modules within the same
    webapp, not for switching between different webapps, AFAIK. It's not
    possible to *forward* from one webapp to another, but redirecting is
    fine.
    The P's <forwarddeclaration specifies a non-context-relative
    redirect, which should result in a client-side (browser) redirect to the
    specified URL on the same host/port.
    Saeed, what happens when you try to use that forward? How is it failing
    for you? It looks like it should work to me.
    L.
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org

Re: Forwards between webapps


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "Java"

EMSDN.COM