JavaSpartans
Java J2ee Struts Hibernate Spring Interview Questions Java J2ee Struts Hibernate Spring Interview Questions
55 Results; Time:0.03 Sec; Page : 1 ; Results From 1 to 10. Results Per Page
1 2 3 4 5 6   Next >>

1. How do you store image files into a database and retrieve the same from the server and display in a jsp page ?

we can store them using the BLOB ( Binary Long Object) datatype . we need to retrive them as binary files and display.
but the best way is to use a seperate image servers for storing images like products...and give the location path in your code...

2. How many jsp include directives can be used inside a single JSP page ?


3. How many jsp:include tags can be used inside a single JSP page ?


4. What is the difference between static and dynamic include of JSPs ?

jsp include vs static & dynamic == see file(static) and page(dynamic)

5. At which situation you use static include and dynamic include in jsp ? Give an example.


6. What are the differences between JSP and Servlet ?

There is no difference between JSP and Servlet. 

Basically a JSP is also a Servlet. JSP?s will be converted or compiled into Servlets.
JSP?s are tag based where as Servlets are code based.
JSP?s are for web designers who does not know much about Java, Servlets are for java web developers.
JSP?s are very slow compared to Servlets.
We can extend the functionality of the JSP?s very easily using Custom Tag Libraries but is not possible in Servlets.
JSP?s must be used for presentation logic Where as Servlets must be used for business logic.
The only supported protocol in JSP is HTTP Where as Servlets can support any protocol like HTTP, FTP, and SMTP etc

7. How can you prove that a JSP supports only HTTP Protocol ?

8. How do you create custom tag libraries i.e your own tags in JSP ?

Please Answer

9. How do you prevent double form submissions in JSP ?

Avoid double clicks. save the state of the request object. Its easily done by struts, for more info refer "Struts Token Feature Concept"

10. What is a Scoped Variable in JSTL ?

Please answer this question.

Java J2ee Struts Hibernate Spring Interview Questions
55 Results; Time:0.03 Sec; Page : 1 ; Results From 1 to 10. Results Per Page
1 2 3 4 5 6   Next >>
Menu - javaspartans.com - Java J2ee Struts Spring Hibernate Interview Questions
Hostens.com - A home for your website
Ads By Google