Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-1638

MalformedURLException: You must specify exactly one of "forward", "href", or "page"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.4.0
    • Core
    • None
    • Operating System: All
      Platform: All
    • 22004

    Description

      got <<javax.servlet.ServletException: Cannot create rewrite URL:
      java.net.MalformedURLException: You must specify exactly one of "forward",
      "href", or "page"
      at
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
      at org.apache.jsp.myFile_jsp._jspService(myFile_jsp.java:85)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)>>

      Looking at myFile_jsp.java:85, I only see the not so helpful
      if (pageContext != null) pageContext.handlePageException(t);

      Therefore my suggestions:
      1) in the error message, include the line where it happens in the .jsp file.
      2) document in http://jakarta.apache.org/struts/struts-html.html#link that the
      "anchor" element cannot be alone.

      Attachments

        Issue Links

          Activity

            People

              pbenedict Paul Benedict
              hauser@acm.org Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: