-
-
What is datacatching in jsp
It can store in catch and move one page to another page
-
-
-
-
-
-
-
-
Can I call an interface in a JSP?
Pls comment
-
C: namesList = context.listContents(someContextName);
Binding binding = namesList.next();
MyObject obj = binding.getObject();
D: namesList = context.list(someContextName);
Binding binding = namesList.next();
MyObject obj = (MyObject) binding.getObject("MyObject");
">To create a DSI (Dynamic Skeleton Interface) based server, the server must extendA: org.omg.CORBA.DynamicImplementation B: org.omg.CORBA.DynamicSkeleton C: org.omg.CORBA.SkeletonInterface D: org.omg.CORBA.DSIHow would you get the actual bound object of type MyObject using JNDI?A: namesList = context.listBindings(someContextName); Binding binding = namesList.next(); MyObject obj = (MyObject) binding.getObject(); B: namesList = context.listBindings(someContextName); Binding binding = namesList.next(); MyObject obj = binding.getObject("MyObject"); C: namesList = context.listContents(someContextName); Binding binding = namesList.next(); MyObject obj = binding.getObject(); D: namesList = context.list(someContextName); Binding binding = namesList.next(); MyObject obj = (MyObject) binding.getObject("MyObject");
-
-
-
-
Can I invoke a JSP error page from a servlet?
Yes, you can invoke the JSP error page and pass the exception object to it from within a servlet. The trick is to create a request dispatcher for the JSP error page, and pass the exception object as a javax.servlet.jsp.jspException request attribute. However, note that you can do this from only within controller servlets.If your servlet opens an OutputStream or PrintWriter, the JSP engine will throw...
-
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:<%@ page errorPage="error.jsp" %>redirects the browser to the JSP page error.jsp if an uncaught exception is encountered during request processing. Within error.jsp, if you indicate that it is an error-processing page, via the directive:<%@...
-
What is the difference between ServletContext and ServletConfig?
Both are interfaces. The servlet engine implements the ServletConfig interface in order to pass configuration information to a servlet. The server passes an object that implements the ServletConfig interface to the servlet's init() method.The ServletContext interface provides information to servlets regarding the environment in which they are running. It also provides standard way for servlets to write...
-
Business class & Custom tags in JSP
How to call business class in JSP?What are custom tags? How to use them? What are their uses?
-
-
How to implement pagination from database level.
Please provide me any sample source code for the same
JSP Interview Questions
Ans