Improve output: distinguish between failed assertions (failures) and unexpected exceptions (errors), and print a filtered stack trace for any exception.
This commit is contained in:
commit
4f2e303079
1839 changed files with 235630 additions and 0 deletions
46
webapp/web/admin/gotoIndividual.jsp
Normal file
46
webapp/web/admin/gotoIndividual.jsp
Normal file
|
@ -0,0 +1,46 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%@page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep"%>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %>
|
||||
<%@page import="edu.cornell.mannlib.vedit.beans.LoginFormBean"%>
|
||||
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
|
||||
|
||||
<%
|
||||
|
||||
if (session == null || !LoginFormBean.loggedIn(request, LoginFormBean.DBA)) {
|
||||
%><c:redirect url="<%= Controllers.LOGIN %>" /><%
|
||||
}
|
||||
|
||||
|
||||
if( request.getParameter("uri") != null ){
|
||||
%> <c:redirect url="/entity"><c:param name="uri" value="${param.uri}"/></c:redirect> <%
|
||||
return;
|
||||
}
|
||||
|
||||
%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head> <!-- gotoIndividual.jsp -->
|
||||
<link rel="stylesheet" type="text/css" href="<c:url value="/${themeDir}css/screen.css"/>" media="screen"/>
|
||||
<link rel="stylesheet" type="text/css" href="<c:url value="/${themeDir}css/formedit.css" />" media="screen"/>
|
||||
|
||||
<title>Enter a URI</title>
|
||||
</head>
|
||||
<body class="formsEdit">
|
||||
<div id="wrap">
|
||||
|
||||
<% /* BJL23 put this is in a catch block because it seems to fail ungracefully for
|
||||
some clones */ %>
|
||||
<c:catch>
|
||||
<jsp:include page="/${themeDir}jsp/identity.jsp" flush="true"/>
|
||||
<div id="contentwrap">
|
||||
<jsp:include page="/${themeDir}jsp/menu.jsp" flush="true"/>
|
||||
<!-- end of formPrefix.jsp -->
|
||||
</c:catch>
|
||||
|
||||
<form>
|
||||
<input name="uri" type="text" size="200" />
|
||||
<input type="submit" value="Lookup Individual for URI"/>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue