Description
* Jetty is a pure Java-based HTTP (Web) server and Java Servlet container.
* Developed as an independent open source project, in 2009 Jetty moved to Eclipse
* It supports AJP, JASPI, JMX, JNDI, OSGi, WebSocket and other Java technologies
Jetty Notice
* jetty default port is 9080, http://localhost:9080/
Study
Chinese Explaination
Office for First Hello World
Jetty On eclipse Judo install
Jetty on eclispe first
2014年11月2日 星期日
2014年10月29日 星期三
2014年10月19日 星期日
2014年3月20日 星期四
echo close file wildcard
Problem:
If you want to separate a string the contain the wildcard such as start *, in the bach it will display it
Method:
a. Use the quote. echo "*.sh"
b. use the set -f operator: (set -f; echo *.sh; set +f)
If you want to separate a string the contain the wildcard such as start *, in the bach it will display it
Method:
a. Use the quote. echo "*.sh"
b. use the set -f operator: (set -f; echo *.sh; set +f)
2014年3月4日 星期二
2014年2月6日 星期四
Eclipse java update setting
1. Problem:
We want to update the java 1.6 to java 1.7 and appear error:
java compiler level does not match the version of the installed java project facet
2. Solution:
step a: Install the java jdk 1.7
step b: right chlick -> properties -> choose project facets -> java item (default 1.6, please click the 1.6 icon and choose 1.7)
Reference:
Youtube Solution
We want to update the java 1.6 to java 1.7 and appear error:
java compiler level does not match the version of the installed java project facet
2. Solution:
step a: Install the java jdk 1.7
step b: right chlick -> properties -> choose project facets -> java item (default 1.6, please click the 1.6 icon and choose 1.7)
Reference:
Youtube Solution
2014年1月20日 星期一
Struts2 if tag for string and char comparison
Explanation:
There are tow tag using in charater: String , character , and there are different in judge, if you using the character you will get false:
Result:
1. String example for work
<s:set name="webFramework" value="framework"/>
<s:if test="%{#webFramework=='Struts 2'}">
This is Struts 2
</s:if>
<s:elseif test="%{#webFramework=='Struts 1'}">
This is Struts 1
</s:elseif>
<s:else>
Other framework
</s:else>
2. Character for work
<s:if test='%{#session.IsLogin== ("T")}'>
Login
</s:if>
<s:else>
LogOut
</s:else>
Reference:
String compare
character compare
There are tow tag using in charater: String , character , and there are different in judge, if you using the character you will get false:
Result:
1. String example for work
<s:set name="webFramework" value="framework"/>
<s:if test="%{#webFramework=='Struts 2'}">
This is Struts 2
</s:if>
<s:elseif test="%{#webFramework=='Struts 1'}">
This is Struts 1
</s:elseif>
<s:else>
Other framework
</s:else>
2. Character for work
<s:if test='%{#session.IsLogin== ("T")}'>
Login
</s:if>
<s:else>
LogOut
</s:else>
Reference:
String compare
character compare
2014年1月16日 星期四
Eclipse update
For WPT
For Juno :
For Juno :
http://download.eclipse.org/webtools/repository/juno/
For Indigo :http://download.eclipse.org/webtools/repository/indigo/
Reference:
WTP-update
訂閱:
文章 (Atom)