Latest News
Binding XML attribute to a DataGrid column
Most binding examples work with a flat XML structure. However, in most cases the format of the data attribute will not work directly with Flex components. I was looking for a way to bind XML attributes to a DataGrid in Flex. XML: <Vehicles> <Vehicle id=”1″ status=”SUCCESS”> <car type=”ford”>my car</car> </Vehicle> <Vehicle id=”2″ status=”SUCCESS” />…
Read MoreWhy I picked Flex and not JSP / JSF
• Flex and JSP applications interact effectively with the browser caching mechanism to eliminate redundant loading of resources from the client. • Flex applications are delivered as complete, self-contained applications, while JSP applications generally require a round trip to the server to generate the next page of the application. These architectural differences have the following…
Read More6 new Features on JSP & Servlets
If you use a web container such as Tomcat 5.x, which supports Servlet API 2.4 and JSP 2.0, then you can use a number of useful new features. These include: 1. Servlets as Welcome Files Welcome files are automatic web server responses to requests that specify only directories, not specific web components or files. When…
Read MoreDEBUG tomcat with eclipse
Whichever platform you are using (Tomcat or JBoss) you need to start them with the JPDA debugging enabled. For Tomcat this is very easy. In the $CATALINA_HOME/bin directory there is a script catalina.sh. If you provide the arguments ‘jpda start‘ tomcat will startup and listen on port 8000 for a debugger connection. The value of…
Read MoreWebservice call via ActionScript
I was using Flex the other day to consume some SOAP web services. However, I needed a way to invoke webservice in action script. I read almost all search pages from yahoo, live, ask, & google and I did not find solution. At last, I stated coding just like Java WebService test client and it…
Read MoreAJAX with DWR
The DWR (Direct Web Remoting) project is an open source solution under the Apache license for the developer who wants to use AJAX (Asynchronous JavaScript and XML) and XMLHttpRequest in an easy way. DWR helps you keep focused on how to improve your application’s interaction model, removing the burden that comes with coding and debugging…
Read MoreJDK 1.5 Language Enhancements
Overview Generics Enhanced for loop Autoboxing and auto-unboxing Typesafe enumerated types (enums) Variable arguments (varargs) Static imports Metadata – Annotations One of the main considerations in creating J2SE 5.0 was the ease of use for programmers. This slide lists some of the main changes to the language specification: Generics provides compile-time type checking and eliminate…
Read MoreDDL vs DML vs DCL vs TCL
DDL: Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples: * CREATE – to create objects in the database * ALTER – alters the structure of the database * DROP – delete objects from the database * TRUNCATE – remove all records from a table, including all spaces…
Read MoreDDL vs DML vs DCL vs TCL
DDL: Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples: * CREATE – to create objects in the database * ALTER – alters the structure of the database * DROP – delete objects from the database * TRUNCATE – remove all records from a table, including all spaces…
Read Morejavax.servlets
Life Cycle:lifecycle of a servlet contains the following stages Instantiation: Web container creates an instance of the servlet Initialization: Container calls the instances init() method if not called earlier. Service: If the container has a request for the servlet, it calls the servlet instances service() method. Destroy: Before destroying the instance, the container calls the…
Read More