Try changing step 5 to the following;

<forward name="step5"   path="http://cnn.com/";  redirect="true"/>

The javadoc for the ActionForward class says the path should be the
"Context-relative URI to which control should be forwarded, or an absolute
or relative URI to which control should be redirected". Your path is
absolute so I think you will need to use a redirect rather than a forward.

> -----Original Message-----
> From: Peter Smith [mailto:[EMAIL PROTECTED]]
> Sent: 16 May 2001 16:14
> To: [EMAIL PROTECTED]
> Subject: Cannot get request dispatcher for path http://cnn.com ?
> 
> 
> Hi,
> 
> I have a wizard-style app that I've configured in my
> struts-config.xml as below.  Not sure I like it yet,
> but I have my Action class send the user to the next
> JSP page each time the user hits the 'Next' button
> (design swiped from msg in this group).  When they're
> finished, I wish to send them to a page outside the
> context of my app (e.g. http://cnn.com).
> 
> The error msg I get is:
> 2001-05-16 11:02:38 - Ctx( /MyApp ): 500 R( /MyApp +
> /step1.do + null) Cannot get request dispatcher for
> path http://cnn.com/
> 2001-05-16 11:02:38 - Ctx( /MyApp ): Handler null null
> 
> I'm guessing there are many ways to do this, but I
> wanted to see how/why I might be using the
> 'forward-path' directive for something it might not be
> intended??
> 
> ===== struts-config.xml =====
> ...
> <action
>    path="/step1" 
>    type="com.lmt.provadmin.Step1Action"
>    name="step1Form"
>    scope="request" 
>    unknown="false"
>    validate="true">
> <forward name="default" path="/step1.jsp"/>
> <forward name="step1"   path="/step1.jsp"/>
> <forward name="step2"   path="/step2.jsp"/>
> <forward name="step3"   path="/step3.jsp"/>
> <forward name="step4"   path="/step4.jsp"/>
> <forward name="step5"   path="http://cnn.com/"/>
> <forward name="error"   path="/error.jsp"/>
> </action>
> ...
> =============================
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 

Reply via email to