wood burning stoves*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "MalformedURLException problem" Watch "MalformedURLException problem" New topic

MalformedURLException problem

Ranjith Koppu

Joined: Dec 04, 2006
Posts: 7
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
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
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

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.<br />I can because I think I can...
I agree. Here's the link: http://aspose.com/file-tools
subject: MalformedURLException problem
Similar Threads
why i can't find the servlet class? is there anything wrong?
No getter method for property firstName
Problem with Session Beans
Servlet and JNI
WAR File Creation in Weblogic 7.0