http://docstore.mik.ua/orelly/java-ent/servlet/ch12_04.htm#ch12-31698
http://www3.ntu.edu.sg/home/ehchua/programming/java/JavaServletExamples.html
http://candidjava.com/struts-1x-i18n-internationalization-tutorial-with-example-programusing-link
http://www.kodejava.org/examples/220.html
http://www.devmanuals.com/tutorials/java/servlet/servlet-internationalization.html
http://www.web-tech-india.com/software/jsp_chat.php#options
http://www.codeforge.com/article/90068
Paging:
http://javahunter.wordpress.com/2011/01/31/ultimate-paging-practice-through-jquery-ajax/
Style Sheet Switcher
$(document).ready(function() {
//load silver automatically in ready
$("a.silver").click(function() {
$('head > link').last().remove(); //removes red and adds silver
$('head').append('<link rel="stylesheet" href="style2.css" type="text/css" />');
});
$("a.red").click(function() {
$('head > link').last().remove(); //remove silver - adds red
.append('<link rel="stylesheet" type="text/css" href="themes/silver/css/template.css"/>');
});
});
});
http://www3.ntu.edu.sg/home/ehchua/programming/java/JavaServletExamples.html
http://candidjava.com/struts-1x-i18n-internationalization-tutorial-with-example-programusing-link
http://www.kodejava.org/examples/220.html
http://www.devmanuals.com/tutorials/java/servlet/servlet-internationalization.html
http://www.web-tech-india.com/software/jsp_chat.php#options
http://www.codeforge.com/article/90068
Paging:
http://javahunter.wordpress.com/2011/01/31/ultimate-paging-practice-through-jquery-ajax/
<link rel="stylesheet" href="css/pagination.css" />
<script type="text/javascript" src="js/pagination/jquery.pagination.js"></script>
<script type="text/javascript">
var _EVENT;
var _MAX_DISPLAY_PAGES = 5;
var _ITEMS_PER_PAGE = 4;
jQuery(document).ready(function() {
initPagination();
});
function initPagination() {
_EVENT = "load";
var totalItemCount = formObj.totalItemCount.value;
jQuery("#pageLinks").pagination(totalItemCount, {
callback: paginate,
num_display_entries: _MAX_DISPLAY_PAGES ,
items_per_page: _ITEMS_PER_PAGE
});
} function paginate(pageIndex, container){
var startOffset;
var endOffset;
var formObj = document.forms["dummyForm"];
if (_EVENT != "load") {
endOffset = (pageIndex + 1) * 4;
startOffset = endOffset – 4;
formObj.startOffset.value = startOffset;
jQuery.get("dummy.html?operation=viewList", params, function(data){
jQuery(‘#resultArea’).html(data);
});
} else {
_EVENT = "";
}
return false;
}
</script>
<form name="paginationForm">
<div id="resultArea">
<!– The list of records to paginate will come here; maybe in a table form –>
</div>
<div id="pageLinks">
<!– Page links will be rendered by JQuery plugin
upon calling the paginate callback function for the first time –>
</div>
<input type="hidden" name="startOffset" />
<input type="hidden" name="totalItemCount" value="${pageList.totalItemCount}" />
</form>
<script type="text/javascript" src="js/pagination/jquery.pagination.js"></script>
<script type="text/javascript">
var _EVENT;
var _MAX_DISPLAY_PAGES = 5;
var _ITEMS_PER_PAGE = 4;
jQuery(document).ready(function() {
initPagination();
});
function initPagination() {
_EVENT = "load";
var totalItemCount = formObj.totalItemCount.value;
jQuery("#pageLinks").pagination(totalItemCount, {
callback: paginate,
num_display_entries: _MAX_DISPLAY_PAGES ,
items_per_page: _ITEMS_PER_PAGE
});
} function paginate(pageIndex, container){
var startOffset;
var endOffset;
var formObj = document.forms["dummyForm"];
if (_EVENT != "load") {
endOffset = (pageIndex + 1) * 4;
startOffset = endOffset – 4;
formObj.startOffset.value = startOffset;
jQuery.get("dummy.html?operation=viewList", params, function(data){
jQuery(‘#resultArea’).html(data);
});
} else {
_EVENT = "";
}
return false;
}
</script>
<form name="paginationForm">
<div id="resultArea">
<!– The list of records to paginate will come here; maybe in a table form –>
</div>
<div id="pageLinks">
<!– Page links will be rendered by JQuery plugin
upon calling the paginate callback function for the first time –>
</div>
<input type="hidden" name="startOffset" />
<input type="hidden" name="totalItemCount" value="${pageList.totalItemCount}" />
</form>
Style Sheet Switcher
$(document).ready(function() {
//load silver automatically in ready
$("a.silver").click(function() {
$('head > link').last().remove(); //removes red and adds silver
$('head').append('<link rel="stylesheet" href="style2.css" type="text/css" />');
});
$("a.red").click(function() {
$('head > link').last().remove(); //remove silver - adds red
.append('<link rel="stylesheet" type="text/css" href="themes/silver/css/template.css"/>');
});
});
});