< 1 2   Sort: Rank

JComponent and Component
Why does JComponent have add() and remove() methods but Component does not? Because JComponent is a subclass of Container, and can contain other components and jcomponents.
2007-04-03, 5282👍, 0💬

Including Static Files
How do I include static files within a JSP page? Static resources should always be included using the JSP include directive. This way, the inclusion is performed just once during the translation phase. Do note that you should always supply a relative URL for the file attribute. Although you can also...
2007-04-03, 4968👍, 0💬

Stored Procedures in Database
What are stored procedures? How is it useful? A stored procedure is a set of statements/commands which reside in the database. The stored procedure is pre-compiled and saves the database the effort of parsing and compiling sql statements everytime a query is run. Each database has its own stored pro...
2007-04-03, 4757👍, 0💬

SingleThreadModel Deprecated
In the Servlet 2.4 specification SingleThreadModel has been deprecated, why? Because it is not practical to have such model. Whether you set isThreadSafe to true or false, you should take care of concurrent client requests to the JSP page by synchronizing access to any shared objects defined at the ...
2007-04-03, 5101👍, 0💬

How to Retrieve SQLWarning
How to Retrieve SQLWarning? SQLWarning objects are a subclass of SQLException that deal with database access warnings. Warnings do not stop the execution of an application, as exceptions do. They simply alert the user that something did not happen as planned. A warning can be reported on a Connectio...
2007-04-03, 4938👍, 0💬

What Is Class.forName
What Class.forName will do while loading drivers? It is used to create an instance of a driver and register it with the DriverManager. When you have loaded a driver, it is available for making a connection with a DBMS.
2007-04-03, 4861👍, 0💬

Creating TCP Socket
What information is needed to create a TCP Socket? The Local Systems IP Address and Port Number. And the Remote System's IP Address and Port Number.
2007-04-03, 5017👍, 0💬

publish-and-subscribe and point-to-point
How many messaging models do JMS provide for and what are they? JMS provide for two messaging models, publish-and-subscribe and point-to-point queuing.
2007-04-03, 4943👍, 0💬

Finally Clause Execution
The code in a finally clause will never fail to execute, right? Not really. Using System.exit(1); in try block will not allow finally code to execute.
2007-04-03, 5194👍, 0💬

Server Push and Refresh
How can a servlet refresh automatically if some new data has entered the database? You can use a client-side Refresh or Server Push.
2007-04-03, 6363👍, 0💬

init() vs. Constructor
Can we use the constructor, instead of init(), to initialize servlet? Yes , of course you can use the constructor instead of init(). There's nothing to stop you. But you shouldn't. The original reason for init() was that ancient versions of Java couldn't dynamically invoke constructors with argument...
2007-04-03, 6686👍, 0💬

Is JSP Technology Extensible
Is JSP technology extensible? YES. JSP technology is extensible through the development of custom actions, or tags, which are encapsulated in tag libraries.
2007-04-03, 4843👍, 0💬

Using JSP Pages to Create Web-based Applications
Why are JSP pages the 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, JSP pages enable cleaner and more module application design because they provide a way to separate applications programming f...
2007-04-03, 4830👍, 0💬

JSP Scripting Elements
How many JSP scripting elements and what are they? There are three scripting language elements: declarations scriptlets expressions
2007-04-03, 4896👍, 0💬

Implicit Objects in JSP Pages
What are the implicit objects in JSP pages? Implicit objects are objects that are created by the web container and contain information related to a particular request, page, or application. They are: request response pageContext session application out config page exception
2007-04-03, 4539👍, 0💬

What Is JSP Page
What is JSP page? A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format such as HTML, SVG, WML, and XML, and JSP elements, which construct dynamic content.
2007-04-03, 4816👍, 0💬

What Is JSP Technology
What is JSP technology? Java Server Page is a standard Java extension that is defined on top of the servlet Extensions. The goal of JSP is the simplified creation and management of dynamic Web pages. JSPs are secure, platform-independent, and best of all, make use of Java as a server-side scripting ...
2007-04-03, 5143👍, 0💬

Entering Comments in JSP Pages
What are the two kinds of comments in JSP and what's the difference between them? &lt;%-- JSP Comment --%&gt; &lt;!-- HTML Comment --&gt; HTML comments are visible on the client side. But JSP comments are not visible on the client side.
2007-04-03, 7612👍, 0💬

JSP Tags vs. JavaBeans
What is difference between custom JSP tags and JavaBeans? 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 that can be used in any number of JSP files. To use custom JSP tags, you ne...
2007-04-03, 7425👍, 0💬

< 1 2   Sort: Rank