Books Related to Java, Core Java, Jquery, Web Services, SCJP, Spring, Hibernate and J2ME

Wednesday, January 21, 2009

JSP Scriptlet Question and Answer

  1. I have created two buttons in a JSP page.i want to go to one page when button1 is clicked and to other page when button2 is clicked..how can i do this?..Plz help me..
  2. Write the JSP command which includes sub_page.jsp and passing in parameters as below: Parameter: ?age? Value: ?33? Parameter: ?place? Value: ?petaling jaya?
  3. I m sending my data frm one page. The second page process it & saves to database and display message like DATA SAVED on same page(second). If I refresh the browser the same query re-execute & again same data store. How Can I check this(I meanwithout using sendredirect to another page)
  4. What is the max limit of parameters that can be passed from Form.
  5. How can I restrict the user from Clicking of Back button in any browser?
  6. Why HTML is called as a language?
  7. What is the widely used web programming technology? what is the advantages of JSP among other technologies?
  8. I have to view(in a JSP Page)the rows in a database which contains some thousands of rows.But in a page i have to view only 20 rows and by pressing the hyperlinks in the page(for an example :page1, page2)i have to view the rest of the records. Each page should contain 20 records only. Kindly give me an idea or some sample coddings to design the above JSP page.
  9. How to compile the JSP pages manually in all applications and web servers
  10. How are the implicit object made available in the jsp file? Where are they defined?
  11. Can one JSP or Servlet extend another Servlet or JSP
  12. suppose we have 1000 rows in the database i need to retrive 200 rows per page, then which approach is better either struts based or non struts based it is an interview question
  13. What is the difference between declaring the variables in the scriptlet tags and in the declaration tags?
  14. What is the differene between include directive and include action?
  15. What is difference between JSP 1.0 model and JSP 2.0 model
  16. What is jsp:usebean. What are the scope attributes & difference between these attributes
  17. How can we move from one JSP page to another(mean using what tecnique?)
  18. How can you include a static file in JSP page. is it possible in html style sheet. which one is better jsp's include directive ("<%@include="filename"%>) or html's style sheet.
  19. Can we implements interface or extends class in JSP?
  20. How can we move from one JSP page to another(mean using what tecnique?)

No comments:

Post a Comment