Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
Antivirus Faqs_Questions_And_Answers Software Tips Faqs_Questions_And_Answers ERP Faqs_Questions_And_Answers Internet Faqs_Questions_And_Answers Spoken English Faqs_Questions_And_Answers Web Designing Faqs_Questions_And_Answers SEO Tips Faqs_Questions_And_Answers Hacking
Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
SAP Faqs
C Faqs        C++ Faqs        Java Faqs        J2ee Faqs        Springs Faqs        Hibernate Faqs        Web sphere Faqs        Web Logic Server Faqs   
WordPress        Siebel Faqs        Shell Scripting Faqs        Perl Scripting Faqs        Open Source        Data Ware Housing Faqs        Joomla Faqs
Ajax        Oracle Apps Faqs        Testing Tools Faqs        Mainframes Faqs        Tibco Faqs        PHP Faqs        .Net Faqs       Operating System
 
Custom Search
J2EE | JSP | servlet | struts
JSP Frequently Asked Questions
1 How many  types of comments are available in the JSP?
Ans: There are two types of comments are allowed in the JSP. These are hidden and output comments. A hidden comments does not appear in the generated output in the html, while output comments appear in the generated output.
Example of hidden comment:
<%-- This is hidden comment --%>
Example of output comment:
<!-- This is output comment -->
2 Define the  Java Server Pages?
Ans: JSP technology is the Java platform technology for delivering dynamic content to web clients in a portable, secure and well-defined way. The JavaServer Pages specification extends the Java Servlet API to provide web application developersv
3 How can you  handle the runtime exception in your jsp page?
Ans:

The errorPage attribute of the page directive can be used to catch run-time exceptions automatically and then forwarded to an error processing page. 

4 Is it possible to  extend JSP technology?
Ans:

this  technology will able to  extend the jsp to make the programming more easier. It  can be extended and custom actions and tag libraries can be developed

5 Define the  JSP translation?
Ans:

these translators generate standard Java code for a JSP page implementation class. This class is essentially a servlet class wrapped with features for JSP functionality.

6 Explain about the  JSP Custom tags?
Ans: JSP Custom tags are user defined JSP language element. JSP custom tags are user defined tags that can encapsulate common functionality.
7 How can you  differenciate  between <jsp:forward page = ... > and
response.sendRedirect(url),?.
Ans:

The <jsp:forward> will forwards the request object containing the client request information from one JSP file to another file On which sendRedirect sends HTTP temporary redirect response to the browser, and browser creates a new request to go the redirected page.   

8 Describe about  context initialization parameters?
Ans: The context-param element contains the declaration of a web application's servlet context initialization parameters. It will manage parameters that are accessed through the ServletContext.getInitParameterNames and ServletContext.getInitParameter methods
9 Define the  implicit Objects?
Ans: these  are the objects available to the JSP page. These objects are created by Web container and contain information related to a particular request, page, or application.
10 Define the  JSP Scriptlet?
Ans: JSP Scriptlet is jsp tag which is used to enclose java code in the JSP pages. Scriptlets begins with <% tag and ends with %> tag. Java code written inside scriptlet executes every time the JSP is invoked.
Example:
  <%
  //write you java program code
   String user=srihithas;
   user=request.getParameter("user");
   %>
Page :    1 | 2
Top

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player