KyaPoocha.com

Huge Collection of Interview Questions


‘JSP Interview Questions’ - KyaPoocha.com

What is the difference between JSP and JSF? 

JSP simply provides a Page which may contain markup, embedded Java code, and “tags” which encapsulate more complicated logic /html. JSF may use JSP as... Read more »

What is JSF? 

JavaServer Faces (JSF) is a new standard Java framework for building Web applications. It simplifies development by providing a component-centric approach to developing... Read more »

What is the difference between forward and sendRedirect? 

When you invoke a forward request, the request is sent to another resource on the server, without the client being informed that a different resource is going to... Read more »

Why are JSP pages preferred API for creating a web-based client program? 

JSP pages preferred API for creating a web-based client program because no plug-ins or security policy files are needed on the client systems(applet does). Also,... Read more »

What is difference between custom JSP tags and beans? 

Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries... Read more »

Is JSP technology extensible? 

Yes, it is. JSP technology is extensible through the development of custom actions, or tags, which are encapsulated in tag libraries.  Read more »

What is JSP? 

JSP is a technology that combines HTML/XML markup languages and elements of Java programming Language to return dynamic content to the Web client, It is normally... Read more »

How do I find whether a parameter exists in the request object? 

boolean hasFoo = !(request.getParameter(”foo”) == null || request.getParameter(”foo”).equals(”")); or boolean hasParameter = request.getParameterMap().contains(theParameter);... Read more »

What is the difference between RequestDispatcher and sendRedirect? 

RequestDispatcher: server-side redirect with request and response objects. sendRedirect : Client-side redirect with new request and response objects.  Read more »

What is the difference between directive include and jsp include? 

: Used to include static resources during translation time. JSP include: Used to include dynamic content or static content during runtime.  Read more »

What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()? 

request.getRequestDispatcher(path): In order to create it we need to give the relative path of the resource, context.getRequestDispatcher(path): In order to create... Read more »

How many types of JDBC Drivers are present and what are they? 

There are 4 types of JDBC Drivers JDBC-ODBC Bridge Driver Native API Partly Java Driver Network protocol Driver JDBC Net pure Java Driver  Read more »

What is the query used to display all tables names in SQL Server (Query analyzer)? 

select * from information_schema.tables  Read more »

What is a translation unit? 

JSP page can include the contents of other HTML pages or other JSP files. This is done by using the include directive. When the JSP engine is presented with such... Read more »

What are the lifecycle phases of a JSP? 

JSP page looks like a HTML page but is a servlet. When presented with JSP page the JSP engine does the following 7 phases. 1. Page translation: -page is parsed,... Read more »

Page 3 of 7«12345»...Last »