Grosse MàJ
This commit is contained in:
31
P51/apache-tomcat-6.0.14/webapps/examples/jsp/error/er.html
Normal file
31
P51/apache-tomcat-6.0.14/webapps/examples/jsp/error/er.html
Normal file
@ -0,0 +1,31 @@
|
||||
<html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<head>
|
||||
<title>Untitled Document</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF">
|
||||
<p><font color="#0000FF"><a href="error.html"><img src="../images/execute.gif" align="right" border="0"></a><a href="../index.html"><img src="../images/return.gif" width="24" height="24" align="right" border="0"></a></font></p>
|
||||
|
||||
<h3><a href="err.jsp.html">Source Code for Error Example<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
|
||||
</body>
|
||||
</html>
|
44
P51/apache-tomcat-6.0.14/webapps/examples/jsp/error/err.jsp
Normal file
44
P51/apache-tomcat-6.0.14/webapps/examples/jsp/error/err.jsp
Normal file
@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<body bgcolor="lightblue">
|
||||
|
||||
<%@ page errorPage="errorpge.jsp" %>
|
||||
<jsp:useBean id="foo" scope="request" class="error.Smart" />
|
||||
<%
|
||||
String name = null;
|
||||
|
||||
if (request.getParameter("name") == null) {
|
||||
%>
|
||||
<%@ include file="error.html" %>
|
||||
<%
|
||||
} else {
|
||||
foo.setName(request.getParameter("name"));
|
||||
if (foo.getName().equalsIgnoreCase("integra"))
|
||||
name = "acura";
|
||||
if (name.equalsIgnoreCase("acura")) {
|
||||
%>
|
||||
|
||||
<H1> Yes!!! <a href="http://www.acura.com">Acura</a> is my favorite car.
|
||||
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,46 @@
|
||||
<html><body><pre>
|
||||
<html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<body bgcolor="lightblue">
|
||||
|
||||
<%@ page errorPage="errorpge.jsp" %>
|
||||
<jsp:useBean id="foo" scope="request" class="error.Smart" />
|
||||
<%
|
||||
String name = null;
|
||||
|
||||
if (request.getParameter("name") == null) {
|
||||
%>
|
||||
<%@ include file="error.html" %>
|
||||
<%
|
||||
} else {
|
||||
foo.setName(request.getParameter("name"));
|
||||
if (foo.getName().equalsIgnoreCase("integra"))
|
||||
name = "acura";
|
||||
if (name.equalsIgnoreCase("acura")) {
|
||||
%>
|
||||
|
||||
<H1> Yes!!! <a href="http://www.acura.com">Acura</a> is my favorite car.
|
||||
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</pre></body></html>
|
@ -0,0 +1,37 @@
|
||||
<html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<body bgcolor="white">
|
||||
|
||||
<h1> This example uses <b>errorpage</b> directive </h1>
|
||||
<br>
|
||||
<h3> Select my favourite car.</h3>
|
||||
<form method=get action=err.jsp>
|
||||
<!-- <br> Make a guess: -->
|
||||
<SELECT NAME="name" SIZE=5>
|
||||
<OPTION VALUE="integra"> Acura Integra <BR>
|
||||
<OPTION VALUE="bmw328i"> BMW 328I <BR>
|
||||
<OPTION VALUE="z3"> BMW Z3 <BR>
|
||||
<OPTION VALUE="infiniti"> InfinitiQ3 <BR>
|
||||
<OPTION VALUE="audi"> Audi A8 <BR>
|
||||
</SELECT>
|
||||
<br> <INPUT TYPE=submit name=submit Value="Submit">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,25 @@
|
||||
<html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<body bgcolor="red">
|
||||
|
||||
<%@ page isErrorPage="true" %>
|
||||
<h1> The exception <%= exception.getMessage() %> tells me you
|
||||
made a wrong choice.
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,27 @@
|
||||
<html><body><pre>
|
||||
<html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<body bgcolor="red">
|
||||
|
||||
<%@ page isErrorPage="true" %>
|
||||
<h1> The exception <%= exception.getMessage() %> tells me you
|
||||
made a wrong choice.
|
||||
</body>
|
||||
</html>
|
||||
</pre></body></html>
|
Reference in New Issue
Block a user