Referencing "this" variable in JSP Pages
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. 2007-04-03, 4939👍, 0💬
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, 4893👍, 0💬
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. A couple of important points to note. Although you would have to name your serialized file like "filename.ser", you only indicate "filena... 2007-04-03, 4882👍, 0💬
Overriding JSP Methods
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... 2007-04-03, 4869👍, 0💬
Stoping Errors Displayed on JSP Pages
How do you restrict page errors display in the JSP page? You first set "Errorpage" attribute of PAGE directory to the name of the error page (ie Errorpage="error.jsp") in your jsp page. Then in the error jsp page set "isErrorpage=TRUE". When an error occur in your jsp page it will automatically call... 2007-04-03, 4863👍, 0💬
Handling 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... 2007-04-03, 4798👍, 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, 4796👍, 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, 4784👍, 0💬
Browser Redirect in JSP Pages
How do I perform browser redirection from a JSP page? You can use the response implicit object to redirect the browser to a different resource, as: response.sendRedirect("http:// interview.fyicenter.com/"); 2007-04-03, 4783👍, 0💬
Declaring Methods within JSP Pages
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... 2007-04-03, 4779👍, 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, 4770👍, 0💬
Sharing an HttpSession between JSP and EJB
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... 2007-04-03, 4742👍, 0💬
Processing HTML Form Date
Can a JSP page process HTML FORM data? Yes. However, unlike servlets, you are not required to implement HTTP-protocol specific methods like doGet() or doPost() within your JSP page. You can obtain the data for the FORM input elements via the request implicit object within a scriptlet or expression a... 2007-04-03, 4723👍, 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, 4701👍, 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, 4699👍, 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, 4670👍, 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, 4669👍, 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, 4655👍, 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, 4440👍, 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. 2019-01-07, 4000👍, 1💬
How many JSP scripting elements and what are they?
How many JSP scripting elements and what are they? There are three scripting language elements: --declarations --scriptlets --expressions 2016-06-25, 3887👍, 1💬
How do I include static files within a JSP page?
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. The following example shows the syntax: < % @ include file="copyright.html" % > Do n... 2013-08-01, 3166👍, 0💬
What is the FP per day in your current company?
What is XSLT? XSLT is a rule based language used to transform XML documents in to other file formats...
How To Use Subqueries in the FROM clause? - MySQL FAQs - SQL SELECT Statements with JOIN and Subquer...
How To Write a Query with a Right Outer Join? - Oracle DBA FAQ - Understanding SQL SELECT Query Stat...
What are the five levels in CMMI? There are five levels of the CMM. According to the SEI, Level 1 – ...