Java Server Pages - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Java Server Pages

Description:

Creates .java files. Method. doPost() doGet() How to do you create a JSP? ... page contentType='text/html; charset=iso-8859-1' language='java' import='java.sql. ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 8
Provided by: CCN4
Category:
Tags: files | iso | java | pages | server

less

Transcript and Presenter's Notes

Title: Java Server Pages


1
Java Server Pages
  • MSTU 5031

2
How it all works
  • JSP
  • Tomcat compiles creates a servlet
  • Creates .java files
  • Method
  • doPost()
  • doGet()

3
  • How to do you create a JSP?
  • Necessary Elements
  • Reading data from form elements

4
Using Java HTML Together
  • Import any java classes you need
  • lt_at_gt
  • Directive
  • lt_at_ page contentType"text/html
    charsetiso-8859-1" language"java"
    import"java.sql." errorPage"" gt
  • ltgt
  • Scriptlet tag
  • ltString name request.getParameter(name)gt
  • ltgt
  • Expression
  • Your name is ltnamegt !

5
  • Form action
  • Form method
  • getParameter()
  • getParameterName()
  • getParameterValue()
  • Enumeration

6
Errors
  • 404
  • File does not exist or permissions are not set
    correctly
  • 505
  • Compilation error
  • Logs

7
Next Week
  • Assignment 1 due
  • Lab
  • Work on assignment 1
  • Make sure your environment is working
Write a Comment
User Comments (0)
About PowerShow.com