소스 파일 최초 업로드
This commit is contained in:
33
tomcat/webapps.dist/examples/jsp/forward/forward.jsp
Normal file
33
tomcat/webapps.dist/examples/jsp/forward/forward.jsp
Normal file
@@ -0,0 +1,33 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<html>
|
||||
<%
|
||||
double freeMem = Runtime.getRuntime().freeMemory();
|
||||
double totlMem = Runtime.getRuntime().totalMemory();
|
||||
double percent = freeMem/totlMem;
|
||||
if (percent < 0.5) {
|
||||
%>
|
||||
|
||||
<jsp:forward page="one.jsp"/>
|
||||
|
||||
<% } else { %>
|
||||
|
||||
<jsp:forward page="two.html"/>
|
||||
|
||||
<% } %>
|
||||
|
||||
</html>
|
||||
34
tomcat/webapps.dist/examples/jsp/forward/forward.jsp.html
Normal file
34
tomcat/webapps.dist/examples/jsp/forward/forward.jsp.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html><html><head><meta charset="UTF-8" /><title>Source Code</title></head><body><pre><%--
|
||||
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.
|
||||
--%>
|
||||
<html>
|
||||
<%
|
||||
double freeMem = Runtime.getRuntime().freeMemory();
|
||||
double totlMem = Runtime.getRuntime().totalMemory();
|
||||
double percent = freeMem/totlMem;
|
||||
if (percent < 0.5) {
|
||||
%>
|
||||
|
||||
<jsp:forward page="one.jsp"/>
|
||||
|
||||
<% } else { %>
|
||||
|
||||
<jsp:forward page="two.html"/>
|
||||
|
||||
<% } %>
|
||||
|
||||
</html>
|
||||
</pre></body></html>
|
||||
30
tomcat/webapps.dist/examples/jsp/forward/fwd.html
Normal file
30
tomcat/webapps.dist/examples/jsp/forward/fwd.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<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="forward.jsp"><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="forward.jsp.html">Source Code for Forward Example<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
23
tomcat/webapps.dist/examples/jsp/forward/one.jsp
Normal file
23
tomcat/webapps.dist/examples/jsp/forward/one.jsp
Normal file
@@ -0,0 +1,23 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<html>
|
||||
|
||||
<body bgcolor="white">
|
||||
<font color="red">
|
||||
|
||||
VM Memory usage < 50%.
|
||||
</html>
|
||||
24
tomcat/webapps.dist/examples/jsp/forward/one.jsp.html
Normal file
24
tomcat/webapps.dist/examples/jsp/forward/one.jsp.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html><html><head><meta charset="UTF-8" /><title>Source Code</title></head><body><pre><%--
|
||||
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.
|
||||
--%>
|
||||
<html>
|
||||
|
||||
<body bgcolor="white">
|
||||
<font color="red">
|
||||
|
||||
VM Memory usage &lt; 50%.
|
||||
</html>
|
||||
</pre></body></html>
|
||||
23
tomcat/webapps.dist/examples/jsp/forward/two.html
Normal file
23
tomcat/webapps.dist/examples/jsp/forward/two.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<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">
|
||||
<font color="red">
|
||||
|
||||
VM Memory usage > 50%.
|
||||
</html>
|
||||
Reference in New Issue
Block a user