portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/layouts default.vm
Date Fri, 30 Jan 2004 00:21:48 GMT
jford       2004/01/29 16:21:48

  Added:       webapp/WEB-INF/templates/vm/screens ShowError.vm
               webapp/WEB-INF/templates/vm/layouts default.vm
  Log:
  Added templates to show exception in browser without causing Turbine to produce a HorribleException
  
  PR:  Bugzilla #26544
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/screens/ShowError.vm
  
  Index: ShowError.vm
  ===================================================================
  $page.setTitle("Error")
  
  <table border=1 cellpadding="5"> 
    #* Error Message *#
    <tr> 
      <td class="INPUTFORMTITLE">
        <br>
        <h2>There has been an Error!</h2>
        Reason:
        <pre>
          $!data.stackTraceException.toString()
        </pre>
      </td>
    </tr> 
  
    #* HTTP Parameters *#
    #set ( $keys = $data.getParameters().keys() )
    #if ( $keys )
      <tr> 
        <td class="INPUTFORM">
          <br>
          <h3>Get/Post Data:</h3>
          <table border=0>           
            #foreach ( $key in $keys )                      
              <tr>
                <td><b> $key </b></td>
                <td> = $data.getParameters().getString( $key )</td>
              <tr>
            #end          
          </table>
        </td> 
      </tr> 
    #end
  
    #* Debug Keys *#
    #set ( $keys = $data.getVarDebug().keys() )
    #if ( $keys )
      #if ( $keys.hasMoreElements() )
        <tr> 
          <td class="INPUTFORM">
            <br>
            <h3>Debugging Data:</h3>
            <table border=0> 
              #foreach ( $key in $keys )            
                <tr>
                  <td><b> $key </b></td>
                  <td> = $data.getVarDebug().get( $key ) </td>
                <tr>
              #end
            </table>
          </td> 
        </tr> 
      #end
    #end
  
    #* Stacktrace *#
    #if ( $data.getStackTrace() )
      <tr> 
        <td class="INPUTFORM">
          <br>
          <h3>Stacktrace:</h3>
          <pre>      
            $data.getStackTrace()      
          </pre>
        </td> 
      </tr>
    #end
  </table> 
   
  
  
  
  
  
  1.3       +42 -18    jakarta-jetspeed/webapp/WEB-INF/templates/vm/layouts/default.vm
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message