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 MalformedURLException problem 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 "MalformedURLException problem" Watch "MalformedURLException problem" New topic
Author

MalformedURLException problem

Ranjith Koppu
Greenhorn

Joined: Dec 04, 2006
Posts: 7
Hi
I am facing this problem while accessing my index page of my application

javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward", "href", "page" or "action"

at org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:499)
at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
at jsp_servlet.__index._jspService(index.jsp:193)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:526)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:7047)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3902)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
>


Can you please tell me what does this mean


I have a <html:form action".."> tag and also 2 <html:link action"=..."> tags in my index.jsp

Please help me
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Posting your complete JSP would be helpful. There are errors in the two snippets that you posted. Be sure they are formatted like: action="..." (with the equals sign between action and your quoted action).

- Brent
Milan Jagatiya
Ranch Hand

Joined: Jan 01, 2007
Posts: 164
hi,


javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward", "href", "page" or "action"


this error says that you must provide "forward" or "href" or "page" or "action" in <html:link> tag. check it out.

milan.


Milan.<br />I can because I think I can...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MalformedURLException problem