0% found this document useful (0 votes)
2 views

JAVAWorkshop Notes

Uploaded by

arpitajagdale1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

JAVAWorkshop Notes

Uploaded by

arpitajagdale1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

JSP

Java server pages


It is run on server side with the help of tomacat server including output as html
format
how to accept the input from user in jsp
jsp is combination of html and java which renders the text and display
it is a process of create online web base application with java and other supported
lang.
alternative lang of jsp Asp(active server pages)
core features of JSP
Simplicity
Portability
Reusability
Integration
Advantages of JSP
Separation of concerns
Scalability
Performance
Easy to maintain

MySQL Driver
2tier
3 tier
Result Set
Prepare Statement

MySQL Data Connector(.jar file)


Database and table creations
Port Number of MySQL, tomcat, versions.
Connectivity with the real time MySQL database table.
Take the input from the user(Scanner Class): insert, deletion operation.
Table Concepts(insert, update, delete, select)
Servlet.
Multiple java Versions Handling
Handling set path with multiple java versions
Tomcat Installation.
Multiple ways to run Tomcat server:-
Download Tomcat driver of 9th version
double click on a startup.bat file in a BIN folder.
Incase this batch file is not able to run?
then
1. just check check your java class path in environmental variables(Check for
multiple delete multiple java path keep only path of java).

2.just open the windows power Shell and run as Administrator.


start your startup.bat file from different Location.

3.Just rename your Tomcat Folder with Single Word(Ex: Sample)

4.if Catalina Class path is not set?


sol:
just download the latest version of tomcat with 10 or 11

5.Nor Jdk not JRE is not set in your system:-


Same as powershell Solution(right click and select as run Administrator).

6.How to run Servlet Programs(Exixting)


localhost:8080/your folder name/url mapping string that is in web.xml file

(just keep latest version of JDK only)

XML(Extensible Markable Language):-


1. it is a combination of HTML(Advance) and Advance Script.

****2.How to Build the Class file for our servlet Program:-


javac -cp .;"lib\servlet-api.jar" Class_Name.(it generate a class file)

***JSP Folder structure***


MYJSP
WEB-INF
web.xml file
index.jsp

***Servlet Folder structure***


MYJSP
WEB-INF
Classes -->> .class file
web.xml file

How to execute the jsp program:-


-->localhost:8080/jsp folder name/index_name

You might also like