Q. what is JSP?
Q. Difference between jsp's and servlets?
Q. what are jsp elements?
a) 1. declaratives 2. scriptlets 3. directives
Q. what are jsp directives?
a) 1. page directive 2. include directive 3. taglib directive
Q. what are jsp implicit objects?
a) 1. out 2. request 3. response 4. session 5. application 6. page 7. page config 8. exception
Q. waht are action tags?
a) 1. jsp:include 2. jsp:forward 3. jsp:param 4. jsp:params 5: jsp:usebean 6. jsp:plugin 7. jsp:setProperty 8.jsp:getProperty
Q. How to make a page error page?
a) iserror = true in page directive
Q. Why exception object in JSP?
Q. Java script objects?
Q. Difference between application and pageConfig object?
Q. Difference between response.sendRedirect and jsp:forward
a) response.sendRedirect is static and work at client side.
jsp:forward is dynamic and work at server side.
Q. How to populate form fields form jsp to Data Base?
a) After submitting this page populate all values to the corresponding DTO object and this DTO is send as argumnet to DAO. That DAO will store data into the Data Base
Q. How can u retrieve java bean in JSP page? and what is the purpose of jsp:usebean?
a) By creating object for java bean using jsp:usebean
Q. Why jsp:usebean, jsp:setProperty, jsp:getProperty?
Q. What are the scopes in JSP?
a) 1. request 2. response 3. session 4.application
Q. Difference between jsp:include and include directive?
a) jsp:include is dynamic
include directive is static
Q. What you include by using include directive?
Q. How can u retrive the session data in JSP page?
a) after setting session = true in page directive u can access session object.
Q. How to make JSP page thread safe ?
a) By specifying threadsafe = true in page directive.
Q. Write syntax for jsp:usebean, jsp:setProperty and jsp:getProperty?
Q. Are you using JSTL?
Q. Custom tag example?
Tuesday, January 15, 2008
JSP frequently asked questions
Subscribe to:
Post Comments (Atom)
2 comments:
Lavanya!!! You have done really wonderful Job. Keep the good work going :-)
hi sreejith thank you very much. please visit my blog regularly.
Post a Comment