Go to Eclipse and from menu select Help->Install New Software.
Add the following update site using 'Add' button
http://download.jboss.org/jbosstools/updates/development/
Select Struts present under 'Web and Java EE Development'
Analyst Programmer - OCE JWCD 6. OCP JAVA SE 6. OCP in 10g DBA. SQL Expert
This is a blog of programming, database administration and
problem analysis. This blog is for sharing knowledge to help me. I like to analysis and play with code and I've intention to solve any kind Java, Struts 2, Java EE, JSF 2, Enterprise Java Bean, Spring, Web Service, GlassFish, Weblogic, JBOSS and Advanced PL/SQL puzzle. If you've any technical question just mail me, i'll reply in short.
Monday, December 27, 2010
Friday, December 17, 2010
AJAX script on JSP
var req;
function getText( ) {
var key = document.getElementById("key");
// var keypressed = document.getElementById("keypressed");
// keypressed.value = key.value;
// var url = "/ajaxdecimalcodeconverter/response?key=" + escape(key.value) + "$idn=" ;
var url = "response.jsp?key=" + key.value + "&idn=" + Math.ceil( Math.random() * 100) ;
if (window.XMLHttpRequest) {
req = new XMLHttpRequest( );
}
else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("Get",url,true);
req.onreadystatechange = callbackValue;
req.send(null);
}
function callbackValue( ) {
if (req.readyState==4) {
if (req.status == 200) {
var decimal = document.getElementById('decimal');
decimal.value = req.responseText;
}
}
//clear( );
}
function clear( ) {
var key = document.getElementById("key");
key.value="";
}
function focusIn( ) {
document.getElementById("key").focus( );
}
function getText( ) {
var key = document.getElementById("key");
// var keypressed = document.getElementById("keypressed");
// keypressed.value = key.value;
// var url = "/ajaxdecimalcodeconverter/response?key=" + escape(key.value) + "$idn=" ;
var url = "response.jsp?key=" + key.value + "&idn=" + Math.ceil( Math.random() * 100) ;
if (window.XMLHttpRequest) {
req = new XMLHttpRequest( );
}
else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("Get",url,true);
req.onreadystatechange = callbackValue;
req.send(null);
}
function callbackValue( ) {
if (req.readyState==4) {
if (req.status == 200) {
var decimal = document.getElementById('decimal');
decimal.value = req.responseText;
}
}
//clear( );
}
function clear( ) {
var key = document.getElementById("key");
key.value="";
}
function focusIn( ) {
document.getElementById("key").focus( );
}
Subscribe to:
Posts (Atom)