PDA

View Full Version : Servlets & Java Server Pages (JSP)


Pages : [1] 2

  1. What is Servlet Chaining ?
  2. How can we achieve JSP Pagination ?
  3. How to provide a link to display More Records by using Pagination ?
  4. Explain Difference between forward and sendRedirect methods ?
  5. What is ServletContext and ServletConfig ?
  6. how that xml code will get executed?
  7. How to disply a String value into a text box using JSP ?
  8. How to use javaBean in Weblogic server with JSP
  9. How can I use useBean tag in JSP ?
  10. Explain JSP LifeCycle?
  11. Difference between RequestDispatcher and sendRedirect
  12. How to make a context thread safe?
  13. How can I enable session tracking for JSP pages if the browser has disabled cookies?
  14. What are the implicit objects in JSP ?
  15. Is there a way can I set the inactivity lease period on a per-session basis ?
  16. How does JSP handle Run-Time Exceptions ?
  17. How do I prevent the output of my JSP or Servlet pages from being cached by the browser ?
  18. Can I stop JSP execution while in the midst of processing a request ?
  19. Is there a way to reference the "this" variable within a JSP page ?
  20. How do you prevent the Creation of a Session in a JSP Page and why ?
  21. What is Session tracking and how do you track a user Session in Servlets ?
  22. What are the types of ServletEngines ?
  23. What is UserBean and why we are using UserBean in JSP ?
  24. What is taglib directive ?
  25. Why we use JSTL in JSP ?
  26. Explain How Container handle the request ?
  27. Explain Servlet LifeCycle ?
  28. When destroy() method called ? Can you explictly called ? if Yes, is there any problem arises ?
  29. Can I use a constructor instead of init(ServletConfig) ?
  30. Should I get my DataBase connection in the init() method ?
  31. What happens if I call destroy() from init() ?
  32. How many ways to maintain a Session ?
  33. In which class getSession() method exists ?
  34. Summarize ServletContext ?
  35. What is FilterChain ?
  36. What is PageContext? Describe its advantages ?
  37. How does the Container handle concurrent requests ?
  38. what is single Threaded Model ?
  39. Why use SingleThreadedModel if Servlets are Multi-Threaded ?
  40. How do I implement the Single Threaded Model ?
  41. Difference b/w doGet() and doPost() ?
  42. Difference b/w Generic and HttpServlet ?
  43. Why we use Beans in JSP ?
  44. What is a Container ?
  45. Can we use constructor instead of init(), to initialize the servlet ?
  46. What is visible and hidden comment in JSP ?
  47. How Runtime Exception Handled by JSP ?
  48. Solve the problem while executing servlet on weblogic ?
  49. How network applications communicate with each other ?
  50. What is HTTP protocol ?
  51. How HTTP Protocol works ?
  52. Which format use client and server to send request and response in HTTP Protocol transaction ? Give Examples ?
  53. What is a Web Container ?
  54. What is meant by Web Application ?
  55. What is meant by URI in client-server transaction ?
  56. What is meant by CGI ?
  57. Give brief introduction about Servlet ?
  58. What is the Servlet job at Server ?
  59. What is a Servlet ?
  60. Explain about Servlet architecture ?
  61. Explain about GenericServlet ?
  62. Explain about HttpServlet ?
  63. What are the Life Cycle methods of a Servlet ?
  64. Explain the Life Cycle methods of a Servlet ?
  65. What are Filters ?
  66. Explain LifeCycle of a Servlet ?
  67. What are the advantages over CGI ?
  68. What are the advantages of Servlet ?
  69. How to make Web Application architecture ?
  70. What is a Deployement Descriptor ?
  71. How can we deploy our Web Application in Server ?
  72. When and how the Servlet objects will be created in Server ?
  73. Can we provide a constructor in a Servlet Class ?
  74. What the Server will do when a request comes from a Client for a Servlet ?
  75. How the Web Container manages the Servlets in its container ?
  76. When the Web Container discard the Servlet instance from Container ?
  77. How a Servlet can inform to Client Which type of content it is sending ?
  78. How can a Servlet send an Error message to Client ?
  79. What is the difference between System.out.println() and PrintWriter.out.println() ?
  80. Give a small example for Servlet to display Hello...! ?
  81. How to run a Servlet ?
  82. How Server responds when request comes from Client ?
  83. What are the differences between GenericServlet and HttpServlet ?
  84. How can we instantiate Servlet Whenever Server has started ?
  85. Why GenericServlet and HttpServlet implement the Serializable interface ?
  86. What are the interfaces existed in javax.servlet package ?
  87. Explain about ServletContext ?
  88. How to get a ServletContext object ?
  89. What are the methods of ServletContext interface ?
  90. Explain about Servlet Configuration object ?
  91. How to get a Servlet Configuration object ?
  92. What are the methods in Servlet Config interface ?
  93. What are the differences between Servlet Config and Servlet Context ?
  94. What are the Init-Parameters and Context-Parameters ?
  95. How can we retrieve Init-Parameters in our Servlet ?
  96. How can we retrieve the context parameters in our Servlet ?
  97. What is the difference between in-process and out-of-process Servlet Containers ?
  98. Why there are no constructors in Servlets ?
  99. How can we explicitly unload a Servlet or call the destroy() method ?
  100. When do we need to call super.init() in init() method of a Servlet ?
  101. How can we change the port Web Server from one port number to something else ?
  102. How can we handle HTML forms from a Servlet ?
  103. How the browser will send the input field values of the form to the Server ?
  104. How the Servlet will get the values from HTML form entered by the user ?
  105. What is the difference between GET and POST methods ?
  106. How to display today date and time using Servlet ?
  107. How can we count that how many times a Servlet has been accessed ?
  108. How do I ensure that a servlet is thread-safe ?
  109. What is a better approach for enabling Thread-safe Servlets and JSPs ?
  110. How do we call one Servlet from another Servlet ?
  111. Should we override the service() method ?
  112. How can an application get to know when a HttpSession is removed (time-outs) ?
  113. How do we send information and data back and forth between applet and Servlet using the HTTP protocol ?
  114. Can we get the path of the current Servlet where it lives on the file system ?
  115. What distinguishes a JavaBean from a Servlet ?
  116. Can a Servlet maintain a JTA UserTransaction object across multiple Servlet invocations ?
  117. How to handle multiple concurrent Database requests when using JDBC with Servlets ?
  118. How do we share Session objects between Servlets and JSP ?
  119. What is the difference between Servlets and Applets ?
  120. If we open a single JDBC connection in init() method, is it need to synchronize on the Connection object ?
  121. How can we determine the name and version of the Servlet Engine ?
  122. What is the use of the Servlet wrapper classes ?
  123. What is the difference between a Servlet Session and a Servlet Context ?
  124. HttpServletRequest is an interface, how do we get an instance ?
  125. Which is faster, doPost() or doGet() ?
  126. Must doPost() call doGet() ?
  127. How can we count how many threads accessing the Servlet object ?
  128. How can we get the Server information form Servlet ?
  129. Does the Servlet request contain the source of the Web page ?
  130. What part of the Java platform do Servlets and JSP belong to ?
  131. How does the JVM execute a Servlet compared with a regular Java class ?
  132. How can I write a Servlet using Java Script ?
  133. Can we include normal Java classes in Servlets ?
  134. How can I tell when a Servlet is instantiated ?
  135. What is maximum length of the URL ?
  136. Give an example to listing all form data in the Browser ?
  137. How can I display system properties in a Servlet ?
  138. Can we catch an exception and give our own error message ?
  139. How do we include files in Servlet ?
  140. Can we call the doPost() method from a hyperlink ?
  141. Should we use a static variable or Hashtable to store a list of strings ?
  142. How can we enable users to upload a file ?
  143. How do we limit the file upload size?
  144. How can we get the Headers information form Servlet ?
  145. Give status codes and their meanings ?
  146. Can we get the client IP and MAC address ?
  147. Why are there two different getRequestDispatcher() methods ?
  148. Why do we get a compilation error with getRequestDispatcher(String) ?
  149. Should we get Database connection in the init() method ?
  150. How can we load a Properties file for servlet ?
  151. What happens if we call destroy() from init() ?
  152. Why does Servlet give a 404 error ?
  153. How can we refresh the Servlet for every 2 minutes automatically ?
  154. What is Request Dispatcher and what its use ?
  155. How can we get a Request Dispatcher object in our Servlet ?
  156. What are the methods are there in Request Dispatcher interface ?
  157. Explain about include method of a Request Dispatcher ?
  158. Explain about forward() method of the Request Dispatcher ?
  159. What is a Servlet URL mapping ?
  160. How can we create Database connections for all Servlets ?
  161. How do we get the Server port number for redirected requests ?
  162. Why do we get a compilation error with getRequestDispatcher(String) ?
  163. What will be happen when we are using include() method in Servlet ?
  164. What will be happen when we are using forward() method in Servlet ?
  165. What is the difference between include() and forward() ?
  166. What is a Servlet chaining ?
  167. When do we use request scope to share any object between Servlets ?
  168. What are the methods we use to store and retrieve attributes from request object ?
  169. Give an example for how to use request scope to store & retrieve sharing object?
  170. Explain about response.sendRedirect() method ?
  171. Give an example for response.SendRedirect() ?
  172. What is difference between forward() and response.sendRedirect() methods ?
  173. How can we dispatch request to another resource in another Application within the Server using forward() ?
  174. How Can we invoke other Web resources (Servelt / JSP ) ?
  175. What is a Servlet Session ?
  176. Why we need Servlet Session ?
  177. How can we get the Session object in our Servlet ?
  178. How can we manage a data specific to user, comes from multiple requests ?
  179. What are the Hidden Fields, explain ?
  180. What are the Cookies, explain ?
  181. How can we determine whether the Session is new or old ?
  182. Explain about HttpServletRequest.getSession() method ?
  183. How many ways to maintain/tracking Session ?
  184. How can we track a Session using Hidden Fields ?
  185. How can we track a Session using Cookies ?
  186. How can we track a Session using URL Rewriting ?
  187. When the web container removes the Session object ?
  188. How can we set Maximum Inactive Interval for a Session ?
  189. When do we use Session scope to store sharing object ?
  190. How can we find whether the Session is already existed for a Client or not ?
  191. How can we get a Session ID ? Give example ?
  192. How can we calculate Session Last Accessed Time ?
  193. How to Insert data from the HTML page to the Database using Servlet ?
  194. Why we need Thread safe for a Servlet instance ?
  195. What is a Multithreaded Servlet ?
  196. What are the problems will face in concurrent access of Multithreaded Servlet ? How can we solve them ?
  197. What is Single Thread model ? How can we get it ?
  198. Is it better approach to go for Single thread model ?
  199. How does the Container handle concurrent requests ?
  200. Is there is only one Servlet instance for all requests ?
  201. Why use SingleThreadedModel if Servlets are Multi-Threaded ?
  202. How can invoke Servlet pooling with SingleThreadedModel ?
  203. Why does Servlet give a 404 error ?
  204. What does HTTP status 405, method not supported mean ?
  205. Can we create a Session with GenericServlet ?
  206. How can we assemble data from multiple input forms ?
  207. How do we clean up object references when a Session ends ?
  208. Are Sessions created on the Server side ?
  209. How can we recover an expired Session ?
  210. What are persistent cookies and pre-session cookies ?
  211. How do we disable a Cookie ?
  212. How can we pass values between JSPs without using Sessions ?
  213. How can we check whether a user logged in or not in every page he is visiting ?
  214. What are the Event Listeners ?
  215. How many levels of Event Categories ?
  216. Give Event Listener Categories and related Interfaces ?
  217. Explain simple Event Listener Scenario ?
  218. How can we Declare and Invoke Event Listener ?
  219. How can we make Listener class and Deploy ?
  220. Explain about ServletContextListener Methods ?
  221. Explain about ServletContextAttributeListener Methods ?
  222. Explain about HttpSessionListener Methods ?
  223. Explain about HttpSessionAttributeListener Methods ?
  224. Give the template for the ServletContextListener Class ?
  225. Give the template for the SessionAttributeListener Class ?
  226. Give Example for Servlet Listener ?
  227. How to call a Javascript function within Servlet ?
  228. What is a JSP ?
  229. How the JSP file will be executed on the Server side ?
  230. How the JSP will be converted into Servlet object ?
  231. Shall we provide the information about JSP in web.xml ?
  232. What is pre-compilation of JSP ?
  233. What are the JSP Elements ?
  234. What is a Template text ?
  235. What are the Scripting Elements ?
  236. What is JSP Expression ?
  237. Explian about Scriplet Element ?
  238. Explain about JSP Declaration ?
  239. Explain about JSP Directives ?
  240. What are the Implicit Objects or Predefined Variables ?
  241. How many types of Directives in JSP ? What are they ?
  242. Explain about Page Directive in JSP ?
  243. What is an Include Directive ?
  244. What is a Taglib Directive ?
  245. Is it possible to access the implicit variables in declarative element ?
  246. Can we provide the init() and destroy() methods for JSP ?
  247. What is the diffrenece between PrintWriter object and JspWriter object ?
  248. Explain about autoFlush and buffer attributes of Page directive ?
  249. Explain about JSP architecture ?
  250. What are the Action tags in JSP ?