Skip to main content

Posts

Showing posts with the label JSP

JSP and JDBC Interview Questions & Answers

What is the query used to display all tables names in SQL Server (Query analyzer)? select * from information_schema.tables 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 Can we implement an interface in a JSP? - No What is the difference between ServletContext and PageContext? - ServletContext: Gives the information about the container. PageContext: Gives the information about the Request.

Weblogic Server Workshop File Types

This topic lists the file types you will encounter in your use of WebLogic Workshop. WebLogic Workshop Application Developer Edition File Types You may use a variety of files to create your application in WebLogic Workshop, some of which you may not be familiar with. The key file types you may encounter in WebLogic Workshop Application Developer Edition are: EJB file, or Enterprise Java Bean. An EJB file contains the Java implementation class for an EJB, with Javadoc annotations that configure the EJB. To learn more about building EJBs in WebLogic Workshop, see Developing Enterprise Java Beans. JCS file, or Java Control Source. A JCS file contains the Java implementation class for a Java control type. There is only one JCS file per Java control. If the Java control is extensible, there may be many JCX files that extend the Java control.

What's the Difference between Forward and Include?

The <jsp:forward> action enables you to forward the request to a static HTML file, a servlet, or another JSP. <jsp:forward page="url" /> The JSP that contains the <jsp:forward> action stops processing, clears its buffer, and forwards the request to the target resource. Note that the calling JSP should not write anything to the response prior to the <jsp:forward> action. You can also pass additional parameters to the target resource using the <jsp:param> tag. <jsp:forward page="test.htm" > <jsp:param name="name1" value="value1" /> <jsp:param name="name2" value="value2" /> </jsp:forward>

What is the difference between Web Server and Application server?

Difference between AppServer and a Web server (1) Webserver serves pages for viewing in web browser, application server provides exposes businness logic for client applications through various protocols. (2) Webserver exclusively handles http requests.application server serves bussiness logic to application programs through any number of protocols. (3) Webserver delegation model is fairly simple,when the request comes into the webserver,it simply passes the request to the program best able to handle it(Server side program). It may not support transactions and database connection pooling. (4) Application server is more capable of dynamic behaviour than webserver. We can also configure application server to work as a webserver.Simply applic! ation server is a superset of webserver.