File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how work a servlet and how interact in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

how work a servlet and how interact in JSP

emma smith
Ranch Hand

Joined: Nov 29, 2012
Posts: 48
hi friends
I cannt understand that how work a servlet and how interact in JSP ? explain please
thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

The Oracle tutorial explains both in detail. Another good thing to search for when starting out is MVC (model view controller). MVC works by having the servlet go first and just use the JSP for display.

I get the impression this doesn't answer your question. Can you elaborate on what you want to know?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
emma smith
Ranch Hand

Joined: Nov 29, 2012
Posts: 48
Jeanne Boyarsky wrote:
I get the impression this doesn't answer your question. Can you elaborate on what you want to know?

i want to exactly know what do Servlets and JSPs do ? i know when we use HTML in java code then it is called Servlet and when we use java code in HTML then it is called JSP, but i dont understand what is the meaning of use HTML in java code or use java code in HTML ? what is the result and using of these? i think i dont know the concept of Sevlet and JSP!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

Oh! The point of them is usually to create a webpage with dynamic content or user interaction. Dynamic content is when you display different data to different users or the data comes from a database. User interaction is things like submitting forms.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

This seems to be another facet of this topic so please continue any discussion there.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how work a servlet and how interact in JSP