import org.apache.commons.io.FilenameUtils;
String ext = FilenameUtils.getExtension(fileName);
http://stackoverflow.com/questions/924394/how-to-get-file-name-without-the-extension
<security-constraint>
<web-resource-collection>
<web-resource-name>Someapp</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/somepath/.keystore"
keystorePass="somepass"/>
var s = '';
var num = parseInt(s) || 0;
Cell c = row.getCell(3);
if (c == null || c.getCellType() == Cell.CELL_TYPE_BLANK) {
// This cell is empty
}
$ mysqldump -uroot -p --no-create-info testdb > dump.sql
String encodeStr = URLEncoder.encode("*-_", "UTF-8");encodeStr = encodeStr.replace("*", "%2a");encodeStr = encodeStr.replace("-", "%2d");String encodeStr = URLEncoder.encode("a a", "UTF-8");encodeStr = encodeStr.replace("+", "%20");<Directory /APP>
Order Allow,Deny
Allow from 160.120.25.65
Allow from 127.0.0.0/8
</Directory>