JSP = java server pages (.jsp) = a html-like file which contain dynamic content (eg:date now)
html file extension can be changed into jsp extension, then that file will go through the tomcat translation ==> java file, then it'll be compiled into .class.
JSP basically is a html file with some java code inside (extrainfo: java code in a block is named scriplet, like function in vbs).
This html-jsp can import some java classes.
And can use bean as well, bean basically is a java class (java file compiled --> .class file), bean can have scope session (so can be used at diffrent session at which the bean containing diffrent value@property)
http://www.jsptut.com/Forms.jsp
EJB container manage the lifecycle of Ent bean, for statefull: doesntexist - ready - passive
active is in memory, passive in 2nd storage.
after ejbremove method called by ejbContainer, it is ready to be GC-ed.
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts9.html
More detail on this : http://www.jsptut.com/
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Servlet (a java class) : java programming language concentrate on web function
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
javax.servlet.jsp.JspWriter
javax.servlet.jsp.PageContext
More detail on this : http://www.jsptut.com/Further.jsp
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
So jsp is the presentation, and the servlet is the engine.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment