errorcontent.jsp

来自「web版的SVN客户端」· JSP 代码 · 共 56 行

JSP
56
字号
<%--
  - Copyright (c) 2004, 2005 Polarion Software, All rights reserved.
  - Email: community@polarion.org
  -
  - This program and the accompanying materials are made available under the
  - terms of the Apache License, Version 2.0 (the "License"). You may not use
  - this file except in compliance with the License. Copy of the License is
  - located in the file LICENSE.txt in the project distribution. You may also
  - obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  -
  -
  - POLARION SOFTWARE MAKES NO REPRESENTATIONS OR WARRANTIES
  - ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESSED OR IMPLIED,
  - INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  - FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. POLARION SOFTWARE
  - SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
  - OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  --%>

<%@ page isErrorPage="true" %> 
<%@ page import="java.io.StringWriter,
                 java.io.PrintWriter,
                 org.polarion.svnwebclient.util.HtmlUtil" %> 
<%
    StringWriter stringWriter = new StringWriter();
    PrintWriter printWriter = new PrintWriter(stringWriter);
    exception.printStackTrace(printWriter);
%> 
<table class="dialogcontent" cellspacing="0" cellpadding="0" width="100%" height="100%">
    <tr>
        <td>
            <b>Message:</b>
        </td>
    </tr>
    <tr>
        <td>
            <%=HtmlUtil.encode(exception.getMessage())%>
        </td>
    </tr>    
    <tr>
        <td style="padding-top:10px;">
            <b>Stack trace:</b>
        </td>
    </tr>
    <tr>
        <td height="100%">
            <textarea id="comment" name="comment" style="width:100%;height:100%;margin:0;font-size:11px;"><%=HtmlUtil.encode(stringWriter.toString())%></textarea>
        </td>
    </tr>    
    <tr>
        <td width="100%" style="padding-top:20px;padding-bottom:0px;" align="center">
            <input type="button" class="button" value="OK" onclick="javascript:window.location='directoryContent.jsp'"/>            
        </td>    
    </tr>    
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?