1 Reply Latest reply on Nov 9, 2008 4:54 AM by Jose Alvarez de Lara

    Error in my error.jsp

    Jose Alvarez de Lara Novice

      Hi,

      I am developing a web application with a servlet as controller and JSPs and Jboss 4.2.2.GA give me an error in my error.jsp, that is

      The method print(boolean) in the type JspWriter is not applicable for the arguments (void)

      <tr>
       <td align="center">
       <textare rows="20" cols="10">
       <%=exception.printStackTrace()%>
       </textarea>
       </td>
       </tr>
      


      Any idea about what does it mean?

      Thanking in advance,
      pepelara

        • 1. Re: Error in my error.jsp
          Jose Alvarez de Lara Novice

          Hi,

          I have solved my problem. The right code, if anyone needed should be:

          <tr>
           <td>
           <textarea class="textareaException" cols="70" rows="10" readonly="readonly">
           <%
           StringWriter sw = new StringWriter();
           PrintWriter pw = new PrintWriter(sw);
           exception.printStackTrace(pw);
           out.print(sw);
           sw.close();
           pw.close();
           %>
           </textarea>
           </td>
          </tr>
          


          Thank you,
          pepelara