Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2954

s:actionerror and s:actionmessage prevent error page handling and throws java.lang.IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.2
    • None
    • Core Actions
    • None
    • Tomcat 5.5

    Description

      I have simple application with error page in web.xml
      <error-page>
      <exception-type>java.lang.Exception</exception-type>
      <location>/admin/http500.jsp</location>
      </error-page>
      Then i have a simple action and a simple page

      I try to generate an exception on this page:

      <% String v=null; v.length();%>
      <s:actionmessage/>

      • this throws me to error page

      AND this is not:

      <s:actionmessage/>
      <% String v=null; v.length();%>

      It stops render the page and generate java.lang.IllegalStateException in the log

      Attachments

        Activity

          People

            Unassigned Unassigned
            vigor Vlasov Igor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: