Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Struts
Error - Cannot create redirect URL
Dilip kumar
Ranch Hand
Posts: 360
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
(%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %) (logic:redirect forward="init"/)
struts-config.xml
(!-- Global Forwards --) (global-forwards) <forward name="init" path="/KPM/initialize.do" /) (/global-forwards) (action-mappings> (action path="/initialize" type="com.test.kpm.InitializeAction" name="InitializeForm" scope="request") (forward name="success" path="/main.jsp" /) (forward name="failure" path="/Error.jsp" /) (/action) (/action-mappings)
Merrill Higginson
Ranch Hand
Posts: 4864
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 3
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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 love a woman who dresses in stainless steel ... and carries tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Newbie Question
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
Global forward error
More...