init
This commit is contained in:
21
webapps/examples/jsp/jsp2/misc/coda.jspf
Normal file
21
webapps/examples/jsp/jsp2/misc/coda.jspf
Normal file
@@ -0,0 +1,21 @@
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<hr>
|
||||
<center>
|
||||
This banner included with <include-coda>
|
||||
</center>
|
||||
<hr>
|
||||
35
webapps/examples/jsp/jsp2/misc/config.html
Normal file
35
webapps/examples/jsp/jsp2/misc/config.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<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>View Source Code</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF">
|
||||
<p><font color="#0000FF"><a href="config.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="config.jsp.html">Source Code for config.jsp<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
<h3><a href="prelude.jspf.html">Source Code for prelude.jspf<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
<h3><a href="coda.jspf.html">Source Code for coda.jspf<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
32
webapps/examples/jsp/jsp2/misc/config.jsp
Normal file
32
webapps/examples/jsp/jsp2/misc/config.jsp
Normal file
@@ -0,0 +1,32 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<%@ taglib prefix="my" uri="http://tomcat.apache.org/jsp2-example-taglib"%>
|
||||
<h1>JSP 2.0 Examples - JSP Configuration</h1>
|
||||
<hr>
|
||||
<p>Using a <jsp-property-group> element in the web.xml
|
||||
deployment descriptor, this JSP page has been configured in the
|
||||
following ways:</p>
|
||||
<ul>
|
||||
<li>Uses <include-prelude> to include the top banner.</li>
|
||||
<li>Uses <include-coda> to include the bottom banner.</li>
|
||||
<li>Uses <scripting-invalid> true to disable
|
||||
<% scripting %> elements</li>
|
||||
<li>Uses <el-ignored> true to disable ${EL} elements</li>
|
||||
<li>Uses <page-encoding> ISO-8859-1 to set the page encoding (though this is the default anyway)</li>
|
||||
</ul>
|
||||
There are various other configuration options that can be used.
|
||||
|
||||
33
webapps/examples/jsp/jsp2/misc/dynamicattrs.html
Normal file
33
webapps/examples/jsp/jsp2/misc/dynamicattrs.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<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>View Source Code</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF">
|
||||
<p><font color="#0000FF"><a href="dynamicattrs.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="dynamicattrs.jsp.html">Source Code for dynamicattrs.jsp<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
<h3><a href="EchoAttributesTag.java.html">Source Code for EchoAttributesTag.java<font color="#0000FF"></a>
|
||||
</font> </h3>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
webapps/examples/jsp/jsp2/misc/dynamicattrs.jsp
Normal file
44
webapps/examples/jsp/jsp2/misc/dynamicattrs.jsp
Normal file
@@ -0,0 +1,44 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<%@ taglib prefix="my" uri="http://tomcat.apache.org/jsp2-example-taglib"%>
|
||||
<html>
|
||||
<head>
|
||||
<title>JSP 2.0 Examples - Dynamic Attributes</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>JSP 2.0 Examples - Dynamic Attributes</h1>
|
||||
<hr>
|
||||
<p>This JSP page invokes a custom tag that accepts a dynamic set
|
||||
of attributes. The tag echoes the name and value of all attributes
|
||||
passed to it.</p>
|
||||
<hr>
|
||||
<h2>Invocation 1 (six attributes)</h2>
|
||||
<ul>
|
||||
<my:echoAttributes x="1" y="2" z="3" r="red" g="green" b="blue"/>
|
||||
</ul>
|
||||
<h2>Invocation 2 (zero attributes)</h2>
|
||||
<ul>
|
||||
<my:echoAttributes/>
|
||||
</ul>
|
||||
<h2>Invocation 3 (three attributes)</h2>
|
||||
<ul>
|
||||
<my:echoAttributes dogName="Scruffy"
|
||||
catName="Fluffy"
|
||||
blowfishName="Puffy"/>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
21
webapps/examples/jsp/jsp2/misc/prelude.jspf
Normal file
21
webapps/examples/jsp/jsp2/misc/prelude.jspf
Normal file
@@ -0,0 +1,21 @@
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<hr>
|
||||
<center>
|
||||
This banner included with <include-prelude>
|
||||
</center>
|
||||
<hr>
|
||||
Reference in New Issue
Block a user