• 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

servelts and jsp

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends
I'm m=new to JSP and I have used JSP with java Neans can anyone pls tell me how can I work on servelts with JSp ..
is there any tutorial available on web
any help wld be great thanks regards
Preeti
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are some links:
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://www.jspinsider.com/
http://www.jspin.com/
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
JSP is an embeded script written in HTML with the file name saved as < filename.jsp >. It is nothing but
JSP = HTML + Servlet.
Only thing u have to remember is that all the servlet codes should be inside the JSP tags. And u dont have to include all the servlet packages like HttpServletRequest etc. They are all included by default. So u can strait away start coding serlvet.
For u to have a small idea... try this out
Test.jsp
<html>
<% out.println("Hi from JSP "); %>
</html>
Hope this will start u a little.
Arun
Sun Certified Programmer for Java2 Platform
 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSP is a little more complicated than that.
JSPs are HTML pages which include Java code thich is embedded within scriptlet tags <% %>
When a JSP is first accessed it is compiled into a Java Servlet ...
My favourite things about JSPs are.
1. It helps you seperate presentation from logic.
2. you don't have to write endless out.print("<HTML>"); statements.
3. Certain important objects are implicitly included in JSPs such as request and session. There is no need to explicitly instantiate / retrieve these objects.
I generally use JSPs as a presenation layer, I use Javabeans to hold presentation data and servlets for logic ... this is basically what the Model 2 architecture is all about and in my opinion makes the best use of all three technolgies.
 
reply
    Bookmark Topic Watch Topic
  • New Topic