What is a Servlet ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

Servlets are Java technology’s answer to CGI programming. They are programs that run on a Web server and build Web pages. Building Web pages on the fly is useful (and commonly done) for a number of reasons:
• The Web page is based on data submitted by the user. For example the results pages from search […]

Read the rest of this entry »

What are the differences between Servlet and JSP page ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

JSP during deployment is compiled into Servlet class. JSP`s syntax is more familiar with HTML programming than the Servlet`s syntax and on the other hand in Servlets logic implementation is easier.

Read the rest of this entry »

What is a JSP ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

Java Server Pages (JSP) is a technology that lets you mix regular, static HTML with dynamically-generated HTML.
Many Web pages that are built by CGI programs are mostly static, with the dynamic part limited to a few small locations. But most CGI variations, including servlets, make you generate the entire page via your program, even though […]

Read the rest of this entry »

What is Jsp Tag Library ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

A tag library is a collection of custom tags. Custom tag is used to invoke custom action in JSP page. Tag Library eases webpage development by providing dynamic actions in html like syntax.
The following example shows how to count from 1 to 10 using JSTL

[…]

Read the rest of this entry »

What is a Scriptlet ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

Scriptlet is code embedded in Jsp page. Default language for scriptlets is Java but it is possible to define other languages as well.
An example of scriptlet-based programming, which counts to 10, is shown here:
<%
for(int i=1;i<=10;i++)
{%>
<%=i%>
<%
}
%>
As you can see from the preceding example, using scriptlet code produces page source code that contains a mix of HTML […]

Read the rest of this entry »

What is a Expression Language ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

It is a simple language that is based on available namespace (the PageContext attributes), operators - arithmetic, relational and logical, extensible functions mapping into static methods in Java classes, and a set of implicit objects.

Read the rest of this entry »

What is JSF ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

JavaServer Faces (JSF) is a new standard Java framework for building Web applications.
It simplifies development by providing a component-centric approach to developing Java Web user interfaces. JavaServer Faces also appeals to a diverse audience of Java/Web developers. “Corporate developers” and Web designers will find that JSF development can be as simple as dragging and dropping […]

Read the rest of this entry »

What is different in JSF compared to JSP ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

JSF is based on JSP version 1.2 it is used to ease web page development while JSP provides developer with logic expression language. So both JSF and JSP supplements each other.

Read the rest of this entry »

What are JSF components ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

JavaServer Faces’ User-Interface Components
The true power of JavaServer Faces lies in its user-interface component model where applications are merely built from collections of components that can render themselves in diverse ways for multiple client types. Vaguely similar to other proprietary technologies such ASP.Net, JSF’s UI Component model technology offers unprecendented productivity by allowing the developer […]

Read the rest of this entry »

What is the difference between EJB and JavaBeans ?

October 28, 2007 · Filed Under Java EE Interview Questions, Placement Questions

JavaBeans are reusable components of applications. EJB provides remote access to enterprise application logic. EJB can be used only on application server while JavaBeans are standard java elements.
JavaBeans
Basically used to CUSTOMIZE EXISTING OBJECTS. i.e. You can create USER OBJECTS, which are based on existing objects.
Ex.: A default button operates as a Single-State Switch. i.e. when […]

Read the rest of this entry »