-
-
-
Plotting graphics in JSP
How to generate a graph using real time data in jsp.
-
Restrict JSP page errors
How do you restrict page errors display in the JSP page.
-
Find the number of Visitors
How we can find the number of visitors in a given site?How to find the count of number of hits to a particular page irrespective of user?
-
Install Tomact
How to install tomact?
-
Users Count
How to count the number of users who logged on to a website?
-
Upload Files to Database
How to upload files to database using JSP?
-
JSP Page Object Request
In order to access the request object from a JSP page? Which step you must complete among the following:a. call the getRequest method of the JSP page.b. Use the getServletConfig method of the JSP page, then call the getRequest method of the ServletConfig object.c. There is never a good reason to access the request object from a JSP page.d. It is an implicitly defined variable.
-
Share data in two different projects
How to share the data in two different projects in jsp or servlets
-
-
-
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...
-
How can I set a cookie and delete a cookie from within a JSP page?
A cookie, mycookie, can be deleted using the following scriptlet:<%//creating a cookieCookie mycookie = new Cookie("aName","aValue");response.addCookie(mycookie);//delete a cookieCookie killMyCookie = new Cookie("mycookie", null);killMyCookie.setMaxAge(0);killMyCookie.setPath("/");response.addCookie(killMyCookie);%>
-
How do you prevent the Creation of a Session in a JSP Page and why?
By default, a JSP page will automatically create a session for the request if one does not exist. However, sessions consume resources and if it is not necessary to maintain a session, one should not be created. For example, a marketing campaign may suggest the reader visit a web page for more information. If it is anticipated that a lot of traffic will hit that page, you may want to optimize the load...
-
What is the difference between GenericServlet and HttpServlet?
GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called when a client request is made. This means that it gets called by both incoming requests and the HTTP requests are given to the servlet as they are.[qu]What are the differences between GET and POST service...
-
-
-
-
JSP Interview Questions
Ans