This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package classloader; | |
import java.io.InputStream; | |
public class ShowClassLoader { | |
public static void main(String[] args) throws Exception { | |
ClassLoader classloader = ShowClassLoader.class.getClassLoader(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> | |
<style> | |
.even {background: #CCC} | |
.odd {background: #FFF} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (ResponseCode != null && ResponseCode.equals ("200") == false ) | |
{ | |
Failure= false ; | |
} | |
else | |
{ | |
if (ResponseCode != null && ResponseCode.equals ("200") == true ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h:commandButton | |
id="cmd" | |
action="#{ajaxCounterBean.execute}" | |
value="Ajax" | |
immediate="true"> | |
<c:ajax render="output :output2 :secondform:output3"/> | |
</h:commandButton> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h:body> | |
<h:form id="mainform"> | |
<h:commandButton | |
id="cmd" | |
action="#{ajaxCounterBean.execute}" | |
value="Ajax" | |
immediate="true"> | |
</h:commandButton> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$http.post("../secure/spot/search", {query: $scope.query}). | |
success(function(data, status) { | |
.... | |
}).error(function(data, status) { | |
... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var guidebookConfig = function($routeProvider, $httpProvider) { | |
// Change default header content type for post request | |
$httpProvider.defaults.headers.post = {'Content-Type': 'application/x-www-form-urlencoded'}; | |
// Transform every request to form urlencoded data | |
$httpProvider.defaults.transformRequest = function(data){ | |
if (data === undefined) { | |
return data; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/template" id="item-template"> | |
<div class="view"> | |
<input class="toggle" type="checkbox" {{ done ? 'checked="checked"' : '' }} /> | |
<label>{{ title }}</label> | |
<a class="destroy"></a> | |
</div> | |
<input class="edit" type="text" value="{{ title }}" /> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.templateSettings = { | |
interpolate: /\{\{(.+?)\}\}/gim, | |
evaluate: /\{\{(.+?)\}\}/gim, | |
escape: /\{\{\-(.+?)\}\}/gim | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/template" id="item-template"> | |
<div class="view"> | |
<input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> /> | |
<label><%- title %></label> | |
<a class="destroy"></a> | |
</div> | |
<input class="edit" type="text" value="<%- title %>" /> | |
</script> |
NewerOlder