wood burning stoves 2.0*
The moose likes Struts and the fly likes Error - Cannot create redirect URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error - Cannot create redirect URL" Watch "Error - Cannot create redirect URL" New topic
Author

Error - Cannot create redirect URL

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Hello All -

I'm getting below error message. Spent almost an hour but couldn't find the cause. Really appreciate any help. Thanks

javax.servlet.ServletException: Cannot create redirect URL: java.net.MalformedURLException: Cannot retrieve ActionForwards collection

welcome.jsp


struts-config.xml
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This error could occur if the Struts ActionServlet has not initialized prior to your requesting this JSP.

Did you specify <load-on-startup>1</load-on-startup> for the ActionServlet in your web.xml file?


Merrill
Consultant, Sima Solutions
Navgire Parikshit
Greenhorn

Joined: Jan 31, 2011
Posts: 3
Even I am getting the exception! I tried the <load-on-startup> thing but it didn't work. Please check the struts-config file.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="searchForm" type="SearchForm" />
</form-beans>
<!-- global forwards -->
<global-forwards>
<forward name="search" path="/search.jsp" />
</global-forwards>

<!-- Action Mapping Configuration -->
<action-mappings>
<action path="/search" type="SearchAction" name="searchForm"
scope="request" validate="true" input="/search.jsp">
</action>
</action-mappings>
<!-- Message Resources -->
<message-resources parameter="MessageResources" />
</struts-config>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error - Cannot create redirect URL
 
Similar Threads
The absolute uri: http://jakarta.apache.org/struts/tags-logic cannot be resolved in either web.xml
global forwards to DispatchAction not working?
struts1 application: error in struts-config.xml
Newbie Question
Global forward error