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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2
    • Fix Version/s: Future
    • Component/s: Core Actions
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              vigor Vlasov Igor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: