struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Neu <>
Subject Re: Deployment Problem -
Date Wed, 29 Dec 2004 16:43:03 GMT
Hello Jim,

well, I got a logical name mapped to it:

  <action path="/postHv"
         <forward name="struts" path="/WEB-INF/JSP/struts.jsp" 

When I simply invoke it with "postHv.html" ( html refers to .do )
in the browser I get to the right page. The think with "/hv/postHv.html" 
was simply just a workaround. I think I don't understand
the problem.



Jim Barrows schrieb:
>>-----Original Message-----
>>From: Peter Neu []
>>Sent: Wednesday, December 29, 2004 6:32 AM
>>To: Struts Users Mailing List
>>Subject: Deployment Problem - 
>>Hello ,
>>I developed my application in an IDE which simulated
>>that the application was in the top folder. When I deploy
>>my application now it is an subfolder.
>>The problem is: The redirects don't work anymore!
>>If do it in simple HTML :
>><meta http-equiv="refresh" content="0; URL=/hv/postHv.html">
>>I can get an clean forward. The same with redirect tag:
>><logic:redirect forward="/hv/postHv.html" />
> Sounds like what you're doing is not getting the context into the URL.  This is supposed
to happen automtically.
> In the case above, this shouul not work.  The javadocs say this about the forward:
> forward
> protected java.lang.String forward
>     The logical forward name from which to retrieve the redirect URI.
> So you need to have a forward name, not a url here.  The url the forward referes to should
not have the context in it.
>>just returns an exception:
>>Do I have to change all the URL's in the application from
>><logic:redirect> to <html refresh> or is there an easier
>>way to do this?
>>Best Regards,
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message