Archive for the ‘Java EE’ Category

Page 3 of 41234




Servlet 3.0 – The Journey Begins Now

Posted on July 23rd, 2007 in Ajax, Java EE, News | 8 Comments »

The Servlet 3.0 specification is doing rounds of the web these days. Although people have loved to use Servlets for various purposes such as implementing business logic in case of small web applications to using it as a controller in MVC architectures, we are yet to see what power will the new specification unleash to the world of web application development.

On a brief note the Servlet 3.0 specification has been approved in the form of JSR 315 is going to be a part of Java EE 6 as mentioned by SUN:

The JCP has approved JSR 315 (ballot) starting the process that will develop Servlet 3.0. Servlet 3.0 is intended to be part of Java EE 6 together with approved JSRs like JSF 2.1 and JAX-RS 1.0 and several more yet to be launched.

The new specification suggests to bring in the feature of asynchronicity to Servlets. We still can leverage the asynchronous nature in a JEE application with the use of Ajax. Experts think that the Ajax model has a problem in its Read the rest of this entry »

SCWCD – The 3 Steps to Success!

Posted on July 10th, 2007 in Featured, Java, Java EE, SCWCD, Tutorials | 12 Comments »

After my completion of SCDJWS I had written about the 3 steps to success in SCDJWS which has helped many who were new in the web services domain to help them get prepared and confident about preparing for the big exam! Following the same foot steps I am now presenting in front of you 3 steps to success in SCWCD. I scored a 90+ in the exam and so I take a a pride to provide you the guidance of how to get a 90+

Why are there always 3 Steps to success?

This probably would be the same doubt on the lines of why do we say “Ready…Steady…Go” and also the countdown of a start of a timer in “3..2..1“. Well, the 3 steps are same everywhere, only their definition changes. Similarly I always make it a point to divide my preparation routine into particularly 3 steps to make it sound quicker and much systematic. Finally, its the enthusiasm that counts that you put in each of the steps.

Stop all that blabber… How do I go about preparing for SCWCD?

Okay..okay. SCWCD (exam code – CX 310 081) is aimed particularly for the web developers and it takes into consideration that you must have developed web applications in the past and now want to try out with JSP/ Servlets. So there wont be any questions about how and what are the intricacies dealing with what a web application is, but concentrates on how would you build web applications using the web components that SUN provides.

SCWCD – The preparation

The 3 steps for success in SCWCD are: Read the rest of this entry »

Learn the Servlet API – ServletRequest and HttpServletRequest

Posted on June 22nd, 2007 in Java EE, SCWCD, Tutorials | 1 Comment »

We will now concentrate on the basic aspect of using a Servlet which is requests and response. But we will currently concentrate only on ServletRequest and HttpServletRequest.

Points to Ponder: 

  • ServletRequest is not in any way responsible for fetching HTTP related properties.
  • ServletRequest and HttpServletRequest both are interfaces and you cannot directly use them.
  • The interface implementations depend on the vendor and not on the developer.

ServletRequest 

Lets look at the methods present in the ServletRequest Interface first and categorize them. There are in total 29 methods. For making the categories first we would have to look as to what are things to carry out when we receive a request. The things we would like to do are: Read the rest of this entry »

Learn the Servlet API – A step by step approach

Posted on June 21st, 2007 in Java EE, SCWCD, Tutorials | No Comments »

The SCWCD(Sun Certified Web Component Developer) exam concentrates on the Servlet API version 2.4.  In order to prepare for the exam its a necessary step to consider to learn the API itself. Learning the API means getting a knowledge about which Interfaces and which Classes exists. Their inheritance relationships and the methods associated with them. This actually helps a person in getting more confident while preparing for the exam since knowledge of the API makes it easy to recognize the errors and exceptions which may occur while using any of the interfaces or classes. It also helps to track the usage of syntaxes when codes are mentioned in the exam and how do they work.

So its in my mind to put forward the API in depth but not make it boring to read (Has anyone ever considered to read the API docs?). So the plan is to learn it in a step by step approach taking into mind the exam related topics!

So here we go. Read the rest of this entry »

The Struts Framework – Why choose it?

Posted on June 3rd, 2007 in Java, Java EE | 14 Comments »

Struts is a J2EE web application framework created and maintained by Apache Software Foundation Group (ASF). It is a controller framework based on the Front Controller pattern and used to create an MVC (Model View Controller) architecture.

What is a Front Controller Pattern?

A Front controller pattern follows the rule of having a single entity controlling the entire application. The single entity acts as a barrier between the client and the remote application. All requests targeted towards the application and first received by the single entity and then based on the controlling flow of the application, the requests are forwarded to the intended recipient module of the application.

The advantage of the Front Controller Pattern is in the simplicity of maintaining a single entity instead of multiple flows controlled by multiple entities. This results in streamlining the flow and proper filtering of the requests made to the application.

Why is Struts Framework essential in an MVC architecture? Read the rest of this entry »

Inversion of Control – for easy integration

Posted on April 23rd, 2007 in Concepts, Java, Java EE | 3 Comments »

You may have witnessed some of the J2EE frameworks provide a technique to get dynamically bound plain objects by making them bind to some features of the framework outside of the plain objects. This technique is called as the IoC or Inversion of Control. If we have to know about the meaning of this term let us emphasize on what inversion depicts in aspect of implementing some features in plain objects.

Overview
Suppose I have some functionality of my J2EE application in my model which is nothing but a simple POJO. Now I want this POJO to be incorporated into a web tier which is an MVC (Model View Controller) Architecture. The last thing I would want to do is modify the source of the model, view or controller and put in some additional code which would do this integration. But suppose I choose a framework in such a way that I put what exactly is to be done by the POJO in the MVC architecture in a simple XML config file and then put the config file in the framework and the framework does the rest of the integration work. Read the rest of this entry »

The Great Ant Tutorial – a great jump start

Posted on April 16th, 2007 in Java, Java EE, Tutorials, XML | 80 Comments »

Apache Ant is a powerful way to convert your developmental structures to deployment structures. It is declarative and all the command line tasks used for deploying an application are represented by simple XML elements. Without much details, this tutorial would breeze you through the steps on how to build a web application using a single XML build file and nothing else. If you have not yet understood what is the use of Ant, read my article on Development and Deployment Structures – the perfect way to build web applications.

I would use the same analogy of my development structure as mentioned in the above linked article i.e. my development structure consists of the following directories:
Read the rest of this entry »

Page 3 of 41234