Showing posts with label JSP Interview Questions. Show all posts
Showing posts with label JSP Interview Questions. Show all posts

January 28, 2008

JSP Interview Question - 5

  1. What is the diff. b/n declaring members in and declaring in JSPinit() method ?
  2. What is Declaration?
  3. What is the need of tag libraries?
  4. How do you call stored procedures from JSP?
  5. Can I call an interface in a JSP?
  6. How we abort JSP page from a servlet ?
  7. How do we perform redirect action without using response.sendRedire ct(“ “);
  8. How do you prevent the Creation of a Session in a JSP Page and why?
  9. Where do we use hidden variables and url rewriting? and wat is the difference between them?
  10. Where can we find the compiled file of JSP in the directory structure?
  11. What is difference between scriptlet and expression
  12. How do I use a scriptlet to initialize a newly instantiated bean?
  13. Web browser concept using JSP
  14. How can we move from one JSP page to another(mean using what tecnique?)

JSP Interview question - 4

  1. What is the difference betweeen JSP forward and servlet forward methods?
  2. What is JSP ?
  3. What is the architecture of JSP?
  4. What is the difference between include directive and include action?
  5. When JSP is compiled into servlet, where the servlet is actually stored(storage location)?
  6. What is the difference between JSP LifeCycle and Servlet LifeCycle?
  7. My html form contains an INPUT “text” element that accepts Date, i want to catch that date and want to query it using JSP? In short, how can i use that HTML form element with Prepared Statements in JSP?
  8. suppose we have rows in the database i need to retrive rows per page, then which approach is better either struts based or non struts based it is an interview question
  9. What is use of implict Objects?why the container is given those one?
  10. Why we can’t implement interface in JSP? Why we can only extend classes in JSP?
  11. How do I mix JSP and SSI #include?
  12. I have a String name & Map m, in my bean class. I have get & set methods on both. To Display the String name, i do The above one works fine. Te below one, displays the entire Map contents I know the KEY, how do i display the VALUE for that KEY
  13. A] Is the response.sendRedire ct ends the existing session? B] If I logged in to a site ( say a.com) & then in same browser window I type the url for another site (say b.com), then does my session gets ended on first site ( a. com ) ?
  14. How to pass java script array to JSP page?
  15. Explain online banking system using java.that means i need architecture of online banking system.please sir i want full details
  16. How the JSP changes will be effected in servlet file after converting?
  17. What data is stored in the variable appname when we give the folowing statement String appname=(“manager” .equalsIgnoreCAs e(request. getContextPath( )))?”/manager” :”/portal” ;
  18. What is difference between getAttribute( ) and getParameter( )?
  19. What is the Difference between sendRedirect( ) and Forward?
  20. What is the difference between include directive & JSP:include action?
  21. What is the difference between declaring the variables in the scriptlet tags and in the declaration tags?

JSP Interview Question - 3

  1. Types of indexing used in oracle applications ? and when and how we decide to implement indexing to database ?
  2. How are the implicit object made available in the JSP file? Where are they defined?
  3. What are the implicit objects in JSP & differences between them?
  4. What is JSP:usebean. What are the scopes attributes & difference between these attributes
  5. What are Custom tags? Why do you need Custom tags? How do you create Custom tag?
  6. What is the difference between Difference between doGet() and doPost()?
  7. How does a servlet communicate with a JSP page?
  8. What is JSP:use bean. What are the scope attributes & difference between these attributes?
  9. When to use struts technology? What type of applications are developed using struts frame work?
  10. How do I include static files within a JSP page?
  11. What is the difference between a static and dynamic include?
  12. How can we implement logout page using JSP..? And is there any method to force the browser to show the same page again and again after logout..?
  13. What is the diff. b/w PAGE,APPLICATION and SESSION implicit objects of JSP?
  14. What is the default scope of JSP tags?
  15. How can I clear values in sessions? If I open a JSP page it is containing previous values. Then I need to open a new page then only I am getting a fresh page
  16. How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?
  17. What is the difference between, page directive include, action tag include ?
  18. What is the difference between servlet session and JSP session?
  19. Can you make use of a ServletOutputStream object from within a JSP page?
  20. Can a JSP page instantiate a serialized bean?

JSP Interview Question -2

  1. What is difference between scriptlet and expression?
  2. In Oracle table some fields are “null”. By default it will show as “null” in JSP page text box. But I don’t want that. I want as blank textbox. What I can do for that?
  3. What is the difference between application server and web server
  4. How to call EJB from JSP?
  5. How can I enable session tracking for JSP pages if the browser has disabled cookies?
  6. I want to place two buttons one for save and one for delete.i am using DispatchAction as controller,how can i find which button i am pressing and how to diffrentiate?
  7. How do you maintain a Session?
  8. What are advantages of JSP?
  9. How to overwrite the init and destroy method in a JSP page.
  10. How can initialize interface in JSP?
  11. Text in textarea cant be copy by anyone while it is running in the browser (i.e,the text cant be copy and then paste on the other page) give me suggestion?
  12. How do you pass control from one JSP page to another?
  13. When we design some login form how we manage security for those forms? Which technology used for that purpose?
  14. How to generate BAR & PIE Graphs using JSP code?
  15. How do you implement interface in JSP?
  16. Is there a way I can set the inactivity lease period on a per-session basis?
  17. What are the default objects provided by JSP container?
  18. Why should we setContentType( ) in servlet ?what is the use of that method?
  19. What does < %= obj.getXXX() %> the following expression get evaluated to ?
  20. What is the need of implicit objects?

JSP Interview Questions-1

  1. · How do I prevent the output of my JSP or Servlet pages from being cached by the browser?
  2. · How to pop up a JSP page?refreshing every two seconds.
  3. · How to Upload a textfile from JSP to Servlet
  4. · How do you restrict page errors display in the JSP page?
  5. · What JSP lifecycle methods can I override?
  6. · How do I perform browser redirection from a JSP page?
  7. · How does JSP handle run-time exceptions?
  8. · How do I use comments within a JSP page?
  9. · 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?
  10. · How can I implement a thread-safe JSP page?
  11. · How can I declare methods within my JSP page?
  12. · Can I stop JSP execution while in the midst of processing a request?
  13. · Can a JSP page process HTML FORM data?
  14. · Is there a way to reference the “this” variable within a JSP page?
  15. · Can a single JSP page be considered as a JEE application?
  16. · Can we implements interface or extends class in JSP?
  17. · How to compile the JSP pages manually in all applications and web servers ?
  18. · How to delete cookies in JSP?
  19. · In Internet explorer if we give a JSP , How the server will know it has to execute?
  20. · How can i restrict the user from Clicking of Back button in any browser
  21. · When many Users are browsing the same application at the same time and they click the “Submit” button will many objects be created for each and every User?