Grosse MàJ
This commit is contained in:
@ -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>
|
||||
checkbox.CheckTest Bean Properties
|
||||
</title>
|
||||
<BODY BGCOLOR="white">
|
||||
<H2>
|
||||
checkbox.CheckTest Bean Properties
|
||||
</H2>
|
||||
<HR>
|
||||
<DL>
|
||||
<DT>public class <B>CheckTest</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>CheckTest:fruit</B>
|
||||
<BR>
|
||||
</TD>
|
||||
<td width="1%">
|
||||
<FONT SIZE="-1">
|
||||
Multi
|
||||
</FONT></TD>
|
||||
</TABLE>
|
||||
<HR>
|
||||
</BODY>
|
||||
</HTML>
|
@ -0,0 +1,38 @@
|
||||
<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">
|
||||
|
||||
|
||||
<FORM TYPE=POST ACTION=checkresult.jsp>
|
||||
<BR>
|
||||
<font size=5 color="red">
|
||||
Check all Favorite fruits: <br>
|
||||
|
||||
<input TYPE=checkbox name=fruit VALUE=apples> Apples <BR>
|
||||
<input TYPE=checkbox name=fruit VALUE=grapes> Grapes <BR>
|
||||
<input TYPE=checkbox name=fruit VALUE=oranges> Oranges <BR>
|
||||
<input TYPE=checkbox name=fruit VALUE=melons> Melons <BR>
|
||||
|
||||
|
||||
<br> <INPUT TYPE=submit name=submit Value="Submit">
|
||||
|
||||
</font>
|
||||
</FORM>
|
||||
</BODY>
|
||||
</HTML>
|
@ -0,0 +1,64 @@
|
||||
<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 size=5 color="red">
|
||||
<%! String[] fruits; %>
|
||||
<jsp:useBean id="foo" scope="page" class="checkbox.CheckTest" />
|
||||
|
||||
<jsp:setProperty name="foo" property="fruit" param="fruit" />
|
||||
<hr>
|
||||
The checked fruits (got using request) are: <br>
|
||||
<%
|
||||
fruits = request.getParameterValues("fruit");
|
||||
%>
|
||||
<ul>
|
||||
<%
|
||||
if (fruits != null) {
|
||||
for (int i = 0; i < fruits.length; i++) {
|
||||
%>
|
||||
<li>
|
||||
<%
|
||||
out.println (util.HTMLFilter.filter(fruits[i]));
|
||||
}
|
||||
} else out.println ("none selected");
|
||||
%>
|
||||
</ul>
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
The checked fruits (got using beans) are <br>
|
||||
|
||||
<%
|
||||
fruits = foo.getFruit();
|
||||
%>
|
||||
<ul>
|
||||
<%
|
||||
if (!fruits[0].equals("1")) {
|
||||
for (int i = 0; i < fruits.length; i++) {
|
||||
%>
|
||||
<li>
|
||||
<%
|
||||
out.println (util.HTMLFilter.filter(fruits[i]));
|
||||
}
|
||||
} else out.println ("none selected");
|
||||
%>
|
||||
</ul>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,66 @@
|
||||
<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="white">
|
||||
<font size=5 color="red">
|
||||
<%! String[] fruits; %>
|
||||
<jsp:useBean id="foo" scope="page" class="checkbox.CheckTest" />
|
||||
|
||||
<jsp:setProperty name="foo" property="fruit" param="fruit" />
|
||||
<hr>
|
||||
The checked fruits (got using request) are: <br>
|
||||
<%
|
||||
fruits = request.getParameterValues("fruit");
|
||||
%>
|
||||
<ul>
|
||||
<%
|
||||
if (fruits != null) {
|
||||
for (int i = 0; i < fruits.length; i++) {
|
||||
%>
|
||||
<li>
|
||||
<%
|
||||
out.println (util.HTMLFilter.filter(fruits[i]));
|
||||
}
|
||||
} else out.println ("none selected");
|
||||
%>
|
||||
</ul>
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
The checked fruits (got using beans) are <br>
|
||||
|
||||
<%
|
||||
fruits = foo.getFruit();
|
||||
%>
|
||||
<ul>
|
||||
<%
|
||||
if (!fruits[0].equals("1")) {
|
||||
for (int i = 0; i < fruits.length; i++) {
|
||||
%>
|
||||
<li>
|
||||
<%
|
||||
out.println (util.HTMLFilter.filter(fruits[i]));
|
||||
}
|
||||
} else out.println ("none selected");
|
||||
%>
|
||||
</ul>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
</pre></body></html>
|
@ -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="check.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="checkresult.jsp.html">Source Code for Checkbox Example<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
|
||||
<h3><a href="CheckTest.html">Property Sheet for CheckTest
|
||||
<font color="#0000FF"></a> </font> </h3>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user