function getCurrentTime()
{
var d = new Date();
var hour=d.getHours();
var minute=d.getMinutes();
var second=d.getSeconds();
if(hour<10)
{
hour = '0'+hour;
}
if(minute<10)
{
minute= '0'+minute;
}
if(second<10)
{
second= '0'+second;
}
var time =hour+':'+minute+':'+second
return time;
}
Monday, November 3, 2008
Thursday, October 16, 2008
JAVA Certification Track Summary
JAVA Certification Track

1. Sun Certified Associate for the Java Platform, Exam Version 1.0 (CX-310-019)
- Delivered at: Authorized Prometric Testing Centers
- Prerequisites: None
- Other exams/assignments required for this certification: None
- Exam type: Multiple choice and Drag and Drop
- Number of questions: 51
- Pass score: 68% (35 of 51 questions)
- Time limit: 115
- Delivered at: Authorized Worldwide Prometric Testing Centers
- Prerequisites: None
- Other exams/assignments required for this certification: None
- Exam type: Multiple choice and drag and drop
- Number of questions: 72
- Pass score: 65% (47 of 72 questions)
- Time limit: 210 minutes
- Delivered at: Delivered at: Authorized Worldwide Prometric Testing Centers
- Prerequisites: Sun Certified Programmer for the Java Platform (any edition)
- Exam type: Multiple Choice and Drag and Drop
- Number of questions: 69
- Pass score: 70% (49 of 69 questions)
- Time limit: 180 minutes
- Delivered at: Authorized Worldwide Prometric Testing Centers
- Prerequisites: Sun Certified Programmer for the Java 2 Platform (any edition)
- Exam type: Multiple-Choice, Scenario-based questions and Drag-and-Drop questions
- Number of questions: 61
- Pass score: 59% (36 of 61 questions)
- Time limit: 145 minutes
- Delivered at: Authorized Worldwide Prometric Testing Centers
- Prerequisites: Sun Certified Programmer for the Java 2 Platform (any edition)
- Other exams/assignments required for this certification: None
- Exam type: Multiple choice, drag and drop
- Number of questions: 69
- Pass score: 68% (47 items of 69 questions)
- Time limit: 150 minutes
- Delivered at: Authorized Worldwide Prometric Testing Centers
- Prerequisites: Sun Certified Programmer for the Java 2 Platform (any edition)
- Exam type: Multiple choice, drag and drop
- Number of questions: 68
- Pass score: 55% (38 items of 68)
- Time limit: 150 minutes
This exam consists of two parts first part is an programming assignment. The scale of the assignment can be imagined by the lines of code; roughly this assignment consists of 3500 lines of code.
The second part of this exam is an essay type consisting of four different questions that are related from your programming assignment of part one.
PART ONE:
- Delivered at: CertManager database
- Prerequisites: Must be Sun Certified Programmer for the Java Platform (any edition)
- Other exams/assignments required for this certification: Step 2 (CX-310-027)
- Exam type: Programming assignment
- Number of questions: N/A
- Pass score: 320 points out of 400 possible points *
- Time limit: None
General Considerations - 80
Documentation - 50
Object-Oriented Design - 50
GUI - 70
Locking - 80
Language Fluency - 70
APIs relevant to the assignment
- Thread handling and synchronization
- Swing (and AWT to the extent necessary to support Swing)
- Standard file IO (java.io, not java.nio)
- Either: Socket-based network programming and serialization _or_ Java RMI (Java Remote Method Invocation) (your choice of one or the other, not both)
- Enterprise JavaBeans
- Servlets, JSP technology, or any other web-oriented APIs
- NIO, the New IO facilities
- Java DataBase Connectivity (JDBC) and SQL
- Java IDL API and CORBA
- Third party software libraries or tools (such as browsers)
- Delivered at: Authorized Prometric testing centers
- Prerequisites: Must be Sun Certified Programmer for the Java Platform (any edition) Completion of Step 1 (CX-310-252A)
- Other exams/assignments required for this certification: Step 1 (CX-310-252A)
- Exam type: Essay
- Number of questions: 4
- Pass score: Subject to the evaluation of the essay exam and validation of the
- Time limit: 120 minutes
Monday, September 1, 2008
JavaScript: Ways to Hit Server Side using JavaScript
There are three ways to hit the server side application using JavaScript that may be some servlet/JSP/CGI Script. Following are the ways:
function goForward() {
// alert ("Go Forward ..... ");
frm=document.forms[0];
frm.method="GET"; // POST
frm.action="ServerSidePage.jsp";//Some servlet/Some CGI Script/URL
frm.submit();
}
3. You can use the "document.location.href", and you can specify the server side path of any servlet/JSP/ CGI Script/ Other URL.
Example No:1
The following code segment will display an button on your page and when u will click on it, it will open the Google page.
"< i n p u t name="myButt" value="Call Server Side" onclick="document.location.href='http://www.google.com'" type="button" >
This example will look like this:
Example No:2
In this example, we select the an item from the drop down list and it will go to the page that you have specified in the value of selected option.
Place the following method in your HEAD section of HTML:
function callURL()
{
document.location.href= document.formName.SelectListID.options[document.formName.SelectListID.selectedIndex].value
}
Andplace the following code in body section of your HTML:
"
< f o r m name="formName">
< s e l e c t name="SelectListID" onchange="callURL();"> < o p t i o n value="http://www.sabahmyrsh.blogspost.com" select e d="selected">select an item from List:< o p t i o n value="http://www.alislam.org">AlIslam
- Use AJAX to hit the Server Side. You can get the details on this from following post: http://www.codeproject.com/KB/ajax/SimpleAJAX.aspx
- Second way is to submit the form data using the JavaScript. Following sample JavaScript function will perform the required task. Make sure you place this function in your HEAD tag of HTML in a script tag.
function goForward() {
// alert ("Go Forward ..... ");
frm=document.forms[0];
frm.method="GET"; // POST
frm.action="ServerSidePage.jsp";//Some servlet/Some CGI Script/URL
frm.submit();
}
3. You can use the "document.location.href", and you can specify the server side path of any servlet/JSP/ CGI Script/ Other URL.
Example No:1
The following code segment will display an button on your page and when u will click on it, it will open the Google page.
"< i n p u t name="myButt" value="Call Server Side" onclick="document.location.href='http://www.google.com'" type="button" >
This example will look like this:
Example No:2
In this example, we select the an item from the drop down list and it will go to the page that you have specified in the value of selected option.
Place the following method in your HEAD section of HTML:
function callURL()
{
document.location.href= document.formName.SelectListID.options[document.formName.SelectListID.selectedIndex].value
}
Andplace the following code in body section of your HTML:
"
< f o r m name="formName">
< s e l e c t name="SelectListID" onchange="callURL();"> < o p t i o n value="http://www.sabahmyrsh.blogspost.com" select e d="selected">select an item from List:< o p t i o n value="http://www.alislam.org">AlIslam
Subscribe to:
Posts (Atom)