File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts1.x - java.net.MalformedURLException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts1.x - java.net.MalformedURLException" Watch "Struts1.x - java.net.MalformedURLException" New topic
Author

Struts1.x - java.net.MalformedURLException

Dimpu S Chinnu
Greenhorn

Joined: Jul 18, 2013
Posts: 5
Hi friends, i am getting "java.net.MalformedURLException" with the below code. can any one help me to resolve this exception?

javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named download
at org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:467)
at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:341)
at org.apache.jsp.home_jsp._jspx_meth_html_005flink_005f0(home_jsp.java:96)
at org.apache.jsp.home_jsp._jspService(home_jsp.java:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)


home.jsp



struts-config.xml



DownloadAction.java



web.xml




Thanks
Dimpu
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8996
    
    9

The html tag forward attribute does not match the action path.


[How To Ask Questions On JavaRanch]
Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 88

Please check the case-sensitive of the forward name.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts1.x - java.net.MalformedURLException