• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP tutorial

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I'm sorta new to JSP and somewhat familiar to Java. I've read some documentations on servlets and have tried some simple examples on a Tomcat server. After working out the examples, I get confused with JSP. For instance, when do I use JSP and when do I use servlet? I would like to find out if there are some tutorials for JSP.

Thanks.
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi John,

Typically you use JSPs for any presentation you need to do and servlets and beans for the processing/logic. Try and keep as much logic out of your JSPs as possible and keep presentation out of your servlets.

Standard methods of achieving those goals, which you might like to look at once you've got used to the JSP and servlet basics, are the JSTL (JSP Standard Tag Library) and MVC frameworks like Struts. Another recent development is JavaServer Faces (JSF).

You might benefit from looking at Sun's JSP Tutorial and Servlet Tutorial.

Jules
[ August 28, 2004: Message edited by: Julian Kennedy ]
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic