<< < 1 2 3 4 5   Sort: Date

How can I implement a thread-safe JSP page?
How can I implement a thread-safe JSP page? You can make your JSPs thread-safe by having them implement the SingleThreadModel interface. This is done by adding the directive &lt;%@ page isThreadSafe="false" % &gt; within your JSP page.
2013-07-27, 1943👍, 0💬

What JSP lifecycle methods can I override?
What JSP lifecycle methods can I override? You cannot override the _jspService() method within a JSP page. You can however, override the jspInit() and jspDestroy() methods within a JSP page. jspInit() can be useful for allocating resources like database connections, network connections, and so forth...
2013-07-24, 1931👍, 0💬

What Class.forName will do while loading drivers?
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.
2013-07-15, 1927👍, 0💬

How to Retrieve Warnings?
How to Retrieve Warnings? 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 Connection ...
2013-07-15, 1920👍, 0💬

Can a JSP page instantiate a serialized bean?
Can a JSP page instantiate a serialized bean? No problem! The useBean action specifies the beanName attribute, which can be used for indicating a serialized bean. For example: A couple of important points to note. Although you would have to name your serialized file "filename.ser", you only indicate...
2013-08-02, 1910👍, 0💬

How can I enable session tracking for JSP pages if the browser has disabled cookies?
How can I enable session tracking for JSP pages if the browser has disabled cookies? We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking ...
2013-07-20, 1884👍, 0💬

How many messaging models do JMS provide for and what are they?
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.
2013-07-12, 1868👍, 0💬

How do I use comments within a JSP page?
How do I use comments within a JSP page? You can use "JSP-style" comments to selectively block out code while debugging or simply to comment your scriptlets. JSP comments are not visible at the client. For example: --%&gt; You can also use HTML-style comments anywhere within your JSP page. These...
2013-07-25, 1858👍, 0💬

What is difference between custom JSP tags and beans?
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 that can be used in any number of JSP files. To use custom JSP tags, you need t...
2013-07-04, 1856👍, 0💬

Is there a way to reference the "this" variable within a JSP page?
Is there a way to reference the "this" variable within a JSP page? Yes, there is. Under JSP 1.0, the page implicit object is equivalent to "this", and returns a reference to the servlet generated by the JSP page.
2013-07-30, 1852👍, 0💬

Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside
Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB? You can pass the HttpSession as parameter to an EJB method, only if all objects in session are serializable. This has to be consider as "passed-by-value", that mean...
2013-07-27, 1845👍, 0💬

How does JSP handle run-time exceptions?
How does JSP handle run-time exceptions? You can use the errorPage attribute of the page directive to have uncaught runtime exceptions automatically forwarded to an error processing page. For example: redirects the browser to the JSP page error.jsp if an uncaught exception is encountered during requ...
2013-07-25, 1842👍, 0💬

How can I declare methods within my JSP page?
How can I declare methods within my JSP page? You can declare methods for use within your JSP page as declarations. The methods can then be invoked within any other methods you declare, or within JSP scriptlets and expressions. Do note that you do not have direct access to any of the JSP implicit ob...
2013-07-29, 1798👍, 0💬

<< < 1 2 3 4 5   Sort: Date