Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0bdffd7

Browse files
commit ch08 2016年05月10日
1 parent 875564a commit 0bdffd7

File tree

56 files changed

+860
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+860
-13
lines changed

‎ch08/ch08_1_2/.classpath‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
5+
<attributes>
6+
<attribute name="owner.project.facets" value="java"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="com.genuitec.runtime.library/com.genuitec.generic_7.0">
10+
<attributes>
11+
<attribute name="owner.project.facets" value="jst.web"/>
12+
</attributes>
13+
</classpathentry>
14+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
15+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
16+
<classpathentry kind="con" path="com.genuitec.runtime.library/com.genuitec.jstl_1.2.2">
17+
<attributes>
18+
<attribute name="org.eclipse.jst.component.dependency" value="WEB-INF/lib"/>
19+
<attribute name="owner.project.facets" value="jst.web.jstl"/>
20+
</attributes>
21+
</classpathentry>
22+
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
23+
</classpath>

‎ch08/ch08_1_2/.project‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>ch08_1_2</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.jdt.core.javabuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.wst.validation.validationbuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
<buildCommand>
29+
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
33+
<buildCommand>
34+
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
35+
<arguments>
36+
</arguments>
37+
</buildCommand>
38+
</buildSpec>
39+
<natures>
40+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
41+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
42+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
43+
<nature>org.eclipse.jdt.core.javanature</nature>
44+
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
45+
</natures>
46+
</projectDescription>

‎ch08/ch08_1_2/.settings/.jsdtscope‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="WebRoot"/>
4+
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
6+
<attributes>
7+
<attribute name="hide" value="true"/>
8+
</attributes>
9+
</classpathentry>
10+
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary/StandardBrowser/html5"/>
11+
<classpathentry kind="output" path=""/>
12+
</classpath>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4+
org.eclipse.jdt.core.compiler.compliance=1.7
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.7
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
2+
<wb-module deploy-name="ch08_1_2">
3+
<wb-resource deploy-path="/" source-path="/WebRoot" tag="defaultRootSource"/>
4+
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
5+
<property name="java-output-path" value="/ch08_1_2/WebRoot/WEB-INF/classes"/>
6+
<property name="context-root" value="ch08_1_2"/>
7+
</wb-module>
8+
</project-modules>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<faceted-project>
3+
<runtime name="com.genuitec.runtime.generic.jee70"/>
4+
<fixed facet="jst.web"/>
5+
<fixed facet="java"/>
6+
<fixed facet="wst.jsdt.web"/>
7+
<installed facet="java" version="1.7"/>
8+
<installed facet="jst.web" version="3.1"/>
9+
<installed facet="jst.web.jstl" version="1.2.2"/>
10+
<installed facet="wst.jsdt.web" version="1.0"/>
11+
</faceted-project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Window
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Class-Path:
3+

‎ch08/ch08_1_2/WebRoot/arithmetic.jsp‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2+
<html>
3+
<head>
4+
<title>EL表达式语言运算</title>
5+
</head>
6+
<body>
7+
<h2>EL表达式运算</h2>
8+
<hr />
9+
<table border="1">
10+
<tr>
11+
<th><b>说明</b></th>
12+
<th><b>EL表达式</b></th>
13+
<th>运算结果</th>
14+
</tr>
15+
<tr>
16+
<td>加</td>
17+
<td>\${1+2}</td>
18+
<td>${1+2}</td>
19+
</tr>
20+
<tr>
21+
<td>减</td>
22+
<td>\${-4-2}</td>
23+
<td>${-4-2}</td>
24+
</tr>
25+
<tr>
26+
<td>除</td>
27+
<td>\${3 div 4}</td>
28+
<td>${3 div 4}</td>
29+
</tr>
30+
<tr>
31+
<td>取余</td>
32+
<td>\${10 % 4}</td>
33+
<td>${10 % 4}</td>
34+
</tr>
35+
<tr>
36+
<td>条件求值</td>
37+
<td>\${1==2?3:4}</td>
38+
<td>${1==2?3:4}</td>
39+
</tr>
40+
<tr>
41+
<td>数字-大于</td>
42+
<td>\${1 gt 2}</td>
43+
<td>${1 gt 2}</td>
44+
</tr>
45+
<tr>
46+
<td>字符-不等于</td>
47+
<td>\${'abe' ne 'ade'}</td>
48+
<td>${'age' ne 'ade'}</td>
49+
</tr>
50+
<tr>
51+
<td>与</td>
52+
<td>\${true and true}</td>
53+
<td>${true and true}</td>
54+
</tr>
55+
<tr>
56+
<td>或</td>
57+
<td>\${true || false}</td>
58+
<td>${true||false}</td>
59+
</tr>
60+
<tr>
61+
<td>空判断</td>
62+
<td>\${not true}</td>
63+
<td>${not true}</td>
64+
</tr>
65+
<tr>
66+
<td>空判断</td>
67+
<td>\${empty "2008"}</td>
68+
<td>${empty "2008"}</td>
69+
</tr>
70+
<tr>
71+
<td>空判断</td>
72+
<td>\${empty null}</td>
73+
<td>${empty null}</td>
74+
</tr>
75+
</table>
76+
</body>
77+
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /