EJB (Im Fresher)
When should we go for using EJB in our Project and What r its advantages over Java Beans .
What r the reasons for using EJB when the same can be achieved using JavaBeans and Jsp
What is the DIfference between Servlets and Jsp?When should i go for servlets and Jsp as Jsp internally uses SErvlets
[311 byte] By [
Sanjeev131] at [2007-11-18 1:40:45]

# 1 Re: EJB (Im Fresher)
Hi Sanjeev,
There is a wealth of information available on the Internet that (in my opinion) answers your question. Assuming you haven't already read it, perhaps this article will help:
http://www.theserverside.com/resources/article.jsp?l=Is-EJB-Appropriate
Good Luck,
Avi.
# 2 Re: EJB (Im Fresher)
What is the DIfference between Servlets and JspThey use the same underlying technology. JSP was added to servlets to make it easier for non-Java web page writers to write web pages in a Java environment.
Before JSP, to write a web page you had to write a servlet with lots of text printing statements to output the HTML. With JSP, you write a HTML page and control the data display by inserting special JSP tags that call Java code behind the scenes (you can also directly include Java code as 'scriptlets', but this is no longer considered good practice). When you deploy a JSP page on the server, the server's JSP engine actually compiles it into a servlet, saving you all the hassle.
This means, in principle, you don't need to know Java to write a dynamic Java server web page. It was originally intended for large coding shops where the roles are distinct, i.e. Java the developers are not HTML savvy, and there are non-Java web page designers.
In practice, JSP makes it simple to quickly write dynamic web pages, and servlets are now used for non-HTML intensive application areas (i.e. where Java code dominates).
JSP frameworks like Apache's Struts (http://jakarta.apache.org/struts/) make life even easier by providing an application skeleton and a bunch of useful JSP custom tags.
Music helps not the toothache...
dlorde at 2007-11-10 2:37:12 >
