What are implicit objects? List them?
Certain objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated... Read more »
Certain objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated... Read more »
The generated servlet class for a JSP page implements the HttpJspPage interface of the javax.servlet.jsp package. Hte HttpJspPage interface extends the JspPage interface... Read more »
You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute... Read more »
A jsp:useBean action may optionally have a body. If the body is specified, its contents will be automatically invoked when the specified bean is instantiated. Typically,... Read more »
Although the SingleThreadModel technique is easy to use, and works well for low volume sites, it does not scale well. If you anticipate your users to increase in... Read more »
Variable declared inside declaration part is treated as a global variable.that means after convertion jsp file into servlet that variable will be in outside of service... Read more »
There is a little tool called JSPExecutor that allows you to do just that. Read more »
The directory structure of a web application consists of two parts. A private directory called WEB-INF A public resource directory which contains public resource... Read more »
The two most common techniques for reusing functionality in object-oriented systems are class inheritance and object composition. Class inheritance lets you define... Read more »
Since there are many things can go wrong to a single executed statement, we should have more than one catch(s) to catch any errors that might occur. Read more »
The JSP engine builds a servlet. The HTML portions of the JavaServer Page become Strings transmitted to print methods of a PrintWriter object. The JSP tag portions... Read more »
JSP page looks like a HTML page but is a servlet. When presented with JSP page the JSP engine does the following 7 phases. 1. Page translation: -page is parsed,... Read more »
JSP page can include the contents of other HTML pages or other JSP files. This is done by using the include directive. When the JSP engine is presented with such... Read more »
select * from information_schema.tables Read more »
There are 4 types of JDBC Drivers JDBC-ODBC Bridge Driver Native API Partly Java Driver Network protocol Driver JDBC Net pure Java Driver Read more »
request.getRequestDispatcher(path): In order to create it we need to give the relative path of the resource, context.getRequestDispatcher(path): In order to create... Read more »
<%@ include>: Used to include static resources during translation time. JSP include: Used to include dynamic content or static content during runtime. Read more »
RequestDispatcher: server-side redirect with request and response objects. sendRedirect : Client-side redirect with new request and response objects. Read more »
boolean hasFoo = !(request.getParameter(”foo”) == null || request.getParameter(”foo”).equals(””)); or boolean hasParameter = request.getParameterMap().contains(theParameter);... Read more »
JSP is a technology that combines HTML/XML markup languages and elements of Java programming Language to return dynamic content to the Web client, It is normally... Read more »