소스 파일 최초 업로드
This commit is contained in:
56
tomcat/webapps.dist/examples/jsp/sessions/DummyCart.html
Normal file
56
tomcat/webapps.dist/examples/jsp/sessions/DummyCart.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<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>
|
||||
sessions.DummyCart Bean Properties
|
||||
</title>
|
||||
<BODY BGCOLOR="white">
|
||||
<H2>
|
||||
sessions.DummyCart Bean Properties
|
||||
</H2>
|
||||
<HR>
|
||||
<DL>
|
||||
<DT>public class <B>DummyCart</B><DT>extends Object</DL>
|
||||
|
||||
<P>
|
||||
<HR>
|
||||
|
||||
<P>
|
||||
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0">
|
||||
<TR BGCOLOR="#EEEEFF">
|
||||
<TD COLSPAN=3><FONT SIZE="+2">
|
||||
<B>Properties Summary</B></FONT></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white">
|
||||
<td align="right" valign="top" width="1%">
|
||||
<FONT SIZE="-1">
|
||||
String
|
||||
</FONT></TD>
|
||||
<TD><B>DummyCart:items</B>
|
||||
<BR>
|
||||
</TD>
|
||||
<td width="1%">
|
||||
<FONT SIZE="-1">
|
||||
Multi
|
||||
</FONT></TD>
|
||||
</TABLE>
|
||||
<HR>
|
||||
</BODY>
|
||||
</HTML>
|
||||
53
tomcat/webapps.dist/examples/jsp/sessions/carts.html
Normal file
53
tomcat/webapps.dist/examples/jsp/sessions/carts.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<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>carts</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor="white">
|
||||
<font size = 5 color="#CC0000">
|
||||
|
||||
<form type=POST action=carts.jsp>
|
||||
<BR>
|
||||
Please enter item to add or remove:
|
||||
<br>
|
||||
Add Item:
|
||||
|
||||
<SELECT NAME="item">
|
||||
<OPTION>Beavis & Butt-head Video collection
|
||||
<OPTION>X-files movie
|
||||
<OPTION>Twin peaks tapes
|
||||
<OPTION>NIN CD
|
||||
<OPTION>JSP Book
|
||||
<OPTION>Concert tickets
|
||||
<OPTION>Love life
|
||||
<OPTION>Switch blade
|
||||
<OPTION>Rex, Rugs & Rock n' Roll
|
||||
</SELECT>
|
||||
|
||||
|
||||
<br> <br>
|
||||
<INPUT TYPE=submit name="submit" value="add">
|
||||
<INPUT TYPE=submit name="submit" value="remove">
|
||||
|
||||
</form>
|
||||
|
||||
</FONT>
|
||||
</body>
|
||||
</html>
|
||||
43
tomcat/webapps.dist/examples/jsp/sessions/carts.jsp
Normal file
43
tomcat/webapps.dist/examples/jsp/sessions/carts.jsp
Normal file
@@ -0,0 +1,43 @@
|
||||
<%--
|
||||
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>
|
||||
<jsp:useBean id="cart" scope="session" class="sessions.DummyCart" />
|
||||
|
||||
<jsp:setProperty name="cart" property="*" />
|
||||
<%
|
||||
cart.processRequest();
|
||||
%>
|
||||
|
||||
|
||||
<FONT size = 5 COLOR="#CC0000">
|
||||
<br> You have the following items in your cart:
|
||||
<ol>
|
||||
<%
|
||||
String[] items = cart.getItems();
|
||||
for (String item : items) {
|
||||
%>
|
||||
<li> <% out.print(util.HTMLFilter.filter(item)); %>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</ol>
|
||||
|
||||
</FONT>
|
||||
|
||||
<hr>
|
||||
<%@ include file ="carts.html" %>
|
||||
</html>
|
||||
44
tomcat/webapps.dist/examples/jsp/sessions/carts.jsp.html
Normal file
44
tomcat/webapps.dist/examples/jsp/sessions/carts.jsp.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!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>
|
||||
<jsp:useBean id="cart" scope="session" class="sessions.DummyCart" />
|
||||
|
||||
<jsp:setProperty name="cart" property="*" />
|
||||
<%
|
||||
cart.processRequest();
|
||||
%>
|
||||
|
||||
|
||||
<FONT size = 5 COLOR="#CC0000">
|
||||
<br> You have the following items in your cart:
|
||||
<ol>
|
||||
<%
|
||||
String[] items = cart.getItems();
|
||||
for (String item : items) {
|
||||
%>
|
||||
<li> <% out.print(util.HTMLFilter.filter(item)); %>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</ol>
|
||||
|
||||
</FONT>
|
||||
|
||||
<hr>
|
||||
<%@ include file ="carts.html" %>
|
||||
</html>
|
||||
</pre></body></html>
|
||||
34
tomcat/webapps.dist/examples/jsp/sessions/crt.html
Normal file
34
tomcat/webapps.dist/examples/jsp/sessions/crt.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<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="carts.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="carts.jsp.html">Source Code for Cart Example<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
|
||||
<h3><a href="DummyCart.html">Property Sheet for DummyCart
|
||||
<font color="#0000FF"></a> </font> </h3>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user