Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


Struts Tutorials
*Stuts TOC
*Apache Struts Introduction
* Struts Controller
* Struts Action Class
* Struts ActionFrom Class
* Using Struts HTML Tags
*Struts Validator Framework    
*Client Side Address Validation    
*Struts Tiles
*Struts DynaActionForm
*Struts File Upload
*Struts DataSource
Struts Resources
*Struts Books
*Struts Articles
*Struts Frameworks
*Struts IDE
*Struts Links
*Struts Presentations
*Struts Projects
*Struts Software
*Other Struts Tutorial
Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Have tutorials?
Add your tutorial to our Java Resource and get tons of hits.

We offer free hosting for your tutorials. and exposure for thousands of readers. drop a mail

Join For Newsletter

Powered by groups.yahoo.com
Visit Group! Post Questions!

JSP Interview : JSP Interview Questions -2


Page of the JSP Interview Questions.

Question: What is JSP Custom tags?
Answer: JSP Custom tags are user defined JSP language element. JSP custom tags are user defined tags that can encapsulate common functionality. For example you can write your own tag to access the database and performing database operations. You can also write custom tag for encapsulate both simple and complex behaviors in an easy to use syntax and greatly simplify the readability of JSP pages.

Question: What is JSP?
Answer: JavaServer Pages (JSP) technology is the Java platform technology for delivering dynamic content to web clients in a portable, secure and well-defined way. The JavaServer Pages specification extends the Java Servlet API to provide web application developers

Question: What is the role of JSP in MVC Model?
Answer: JSP is mostly used to develop the user interface, It plays are role of View in the MVC Model.

Question: What do you understand by context initialization parameters?
Answer: The context-param element contains the declaration of a web application's servlet context initialization parameters. 

The Context Parameters page lets you manage parameters that are accessed through the ServletContext.getInitParameterNames and ServletContext.getInitParameter methods.

Question: Can you extend JSP technology?
Answer: JSP technology lets the programmer to extend the jsp to make the programming more easier. JSP can be extended and custom actions and tag libraries can be developed.

Question: What do you understand by JSP translation?
Answer: JSP translators generate standard Java code for a JSP page implementation class. This class is essentially a servlet class wrapped with features for JSP functionality.

Question: What you can stop the browser to cash your page?
Answer: Instead of deleting a cache, you can force the browser not to catch the page.
response.setHeader("pragma","no-cache");//HTTP 1.1 
response.addDateHeader("Expires", -1); 
response.setDateHeader("max-age", 0); 
//response.setIntHeader ("Expires", -1); //prevents caching at the proxy server 
response.addHeader("cache-Control", "private"); 

put the above code in your page.

Question: What you will handle the runtime exception in your jsp page?
Answer: The errorPage attribute of the page directive can be used to catch run-time exceptions automatically and then forwarded to an error processing page. 

For example:
<%@ page errorPage="customerror.jsp" %> 
above code forwards the request to "customerror.jsp"  page if an uncaught exception is encountered during request processing. Within "customerror.jsp", you must indicate that it is an error-processing page, via the directive: <%@ page isErrorPage="true" %>.



Ask programming questions?



Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

13 comments so far (post your own) View All Comments Latest 10 Comments:

thanks for sharing your knowladge
such a nice collation
but i need more questions which is asked in interviews.
pls send FAQ in my Emailid.

Posted by saurabh on Thursday, 06.18.09 @ 15:27pm | #88598

please send j2ee faqs

Posted by RaghunandanReddy on Thursday, 04.23.09 @ 16:15pm | #87074

Nice Collection of Questions but with lot of spelling mistakes lolzzzz

Posted by Praveen on Thursday, 12.25.08 @ 00:13am | #83146

Need FAQs On J2ee & Java

Posted by Eswar on Friday, 06.15.07 @ 10:30am | #19286

It is a good page for the people who attend the interview.

Posted by suku on Wednesday, 05.16.07 @ 11:20am | #16107

This site is Very hepful to job seekers.Thanq.

Posted by prasanthi on Wednesday, 04.18.07 @ 18:10pm | #14504

it's a very good and is there a any facility to insert new interview question on your page. then it is very nice to us.

Posted by Mrityunjay Gupta on Tuesday, 03.27.07 @ 01:07am | #12752


these are marvellous.


Posted by Rajesh on Saturday, 02.10.07 @ 00:01am | #7040

So jsp is in java can we create the object by saying

jspobj abc= new jspobj();

if yes then how?
if no then why?

Posted by Sanat Biswal on Friday, 02.2.07 @ 12:54pm | #5399

if u need FAQs on j2ee & java, send a mail 2 me, i will suggest one site which dedicated 4 j2ee & java FAQs..nearly 200pages of java & j2ee faqs it contain..my mail id is visu_itsme@yahoo.co.in..bi friends

Posted by vissu on Saturday, 12.23.06 @ 01:23am | #1476

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name


Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.

[an error occurred while processing this directive]