Publishing a JSP web application to Temple’s cis
linux2 web server
Start with a Web Application that NetBeans has already run properly (either in the lab or on your PC at home)
to publish a JSP web application to the web server, y
familiar with the folder structure of the project
as they are displayed in the NetBeans UI as well as
they are stored in the file system.
NetBeans project files are stored (on disk), right click on the file
(from NetBeans Projec
and select properties.
you created the web application in the computer lab, you’ll find your files stored here:
But from home, it will probably be under myDocuments as shown below.
Notice where the jsp pages are stored (from the NetBean
s UI, from the file system).
notice where the
as shown in the NetBeans IDE as well as in the file system.
to publish, we will need
compiled java class files
you can only
in the file system, not in
Now, we are ready to try to publish the web application
, so run secure ftp:
Menu option: File
the name of the temple web server,
enter your NetAccess Username, then click Connect.
Type in your NetAccess password.
On the left side of the sftp window (files on
your local PC), browse to
folder of your web application.
That’s where you’ll find a copy of
your JSP p
ages as well as the compiled
On the right side of the sftp window (shows files on your
account on the remote host), type
Or just type in
and browse down.
On the left side, welect th
e JSP pages (and any other files there) as well as the WEB
INF folder (which should have
your compiled java .class files in it). Drag these over to the web server (on the right).
If you see a file on the web server that does not have the proper permis
sions (shown under Attributes column),right
click on the file and change the attributes as shown below (everyone gets read privileges).
Although this is not needed for your web application to run properly, it is needed for me to check your java code,
so, also drag and drop the src folder (just under your project folder) over to the web server.
Test by entering your URL into a browser: