This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Difference between Servlet and a Jsp traslated servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Difference between Servlet and a Jsp traslated servlet" Watch "Difference between Servlet and a Jsp traslated servlet" New topic
Author

Difference between Servlet and a Jsp traslated servlet

Manjusha Muraleedas
Ranch Hand

Joined: Jun 02, 2010
Posts: 52
I have been asked in an interview ,that, what is the difference between a plain servlet and a Jsp traslated servlet?
In another words, what a plain servlet can do that a jsp translated servlet can not...?

My thought on this qn is:

1. The jsp translated servlet can not use/specify doXXX() methods(may override using jsp declarations. but cannot use).

Please share your thoughts on this Question.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

A JSP is like a compiled servlet, but for view. I don't know where your enterviwer was trying to reach.

Next time, look into his eyes for a long time and say: "Servlets can not use EL!".

I believe that he will not ask your another question like that! =P


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
JSP are designed and optimized to create HTML - optimization includes implicit objects, EL, etc etc - all for HTML - ie text.
Servlets can handle the complete set of HTTP methods and serve any kind of resource.

Bill
Manjusha Muraleedas
Ranch Hand

Joined: Jun 02, 2010
Posts: 52
Hi,

He must be testing my confidence on Servlets and JSP... Confidence is the BIG thing that matters in an interview.

My thoughts was somewhat correct .But I didn't speak a word....

Thank you all... Thanks alot for the replies.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Servlet and a Jsp traslated servlet
 
Similar Threads
any difference between JspWriter.print() and write()
jsp vs servlet
What's the difference between servlet and jsp?
what's differenct between JspWriter.write() and JspWriter.print()?
jsp