Have a look on the style of Spring Web Flow.
1. The Client requests for a Resource in the Web Application.
2. The Spring Front Controller, which is implemented as a Servlet, will intercept the Request and then will try to find out the appropriate Handler Mappings.
3. The Handle Mappings is used to map a request from the Client to its Controller object by browsing over the various Controllers defined in the Configuration file.
4. With the help of Handler Adapters, the Dispatcher Servlet will dispatch the Request to the Controller.
5. The Controller processes the Client Request and returns the Model and the View in the form of ModelAndView object back to the Front Controller.
6. The Front Controller then tries to resolve the actual View (which may be Jsp, Velocity or Free marker) by consulting the View Resolver object.
7. Then the selected View is rendered back to the Client.
Showing posts with label Web. Show all posts
Showing posts with label Web. Show all posts
Saturday, August 16, 2008
Sunday, July 20, 2008
Check Applet is loaded or Not
function check(){
if (document.applets && document.applets.appletName && document.applets.appletName.isActive())
alert("active");
else{
alert("inactive");
setTimeout("check()",1000);
}
}
if (document.applets && document.applets.appletName && document.applets.appletName.isActive())
alert("active");
else{
alert("inactive");
setTimeout("check()",1000);
}
}
Timer in JavaScript
Syntax:
window.setTimeout(param1, param2, param3)
Parameters:
param1 Required; a function name or string of code that will execute when the timeout has elapsed.
param2 Required; the length of the timeout in milliseconds.
param3 Optional; param1's script language.
JScript,
vbscript,
vbs,
javascript,
XML.
Example:
window.setTimeout(param1, param2, param3)
Parameters:
param1 Required; a function name or string of code that will execute when the timeout has elapsed.
param2 Required; the length of the timeout in milliseconds.
param3 Optional; param1's script language.
JScript,
vbscript,
vbs,
javascript,
XML.
Example:
< name="counter">< type="text" size="8" name="d2">< /form>
var seconds=5 ;
document.counter.d2.value='5' ;
function display(){
if (seconds>0){
seconds--;
setTimeout("display()",1000) ;
}
document.counter.d2.value=seconds;
}
display();
Subscribe to:
Posts (Atom)
search engine
Custom Search