• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP/Servlets

 
Akshi Goel
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can somebody tell me "When would you access a JSP directly from a browser without going thru a servlet initially?"
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Akshi,
We have a naming policy here at JavaRanch where all publicly displayed names take the form, "Firstname Lastname". Could you please change yours to bring it into line?
Thanks in advance and we hope that you enjoy your stay at the JavaRanch!

ersin
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't need to do any back-end processing at all, you can just access a JSP directly. OTOH, if you will be accessing a DB, you can have a JSP/HTML page call a servlet that does all the processing and passes the results back to the browser. You can search this forum for the MVC pattern or Model 2 architecture.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic