Gzsccet: Assignment of Web Technlogies
Gzsccet: Assignment of Web Technlogies
Gzsccet: Assignment of Web Technlogies
ASSIGNMENT
OF WEB
TECHNLOGIES
Assignment No.—2
Submitted By- Submitted To-
Er.simardeep Kaur
1640
Uni Roll No.-1602800
CSE-A
6th sem(2k16)
Q1- Write JScode for finding HTML elments Dynamically?
Ans-
Q1. Explain JSDK?
Ans-JSDK (Java Servlet Development Kit) is a package containing all the classes and interfaces
needed to develop servlets. JSDK also contains a web server and servlet engine to test your
creations. The servlet engine provided in JSDK is a basic one(but free). There are many other
servlet engines much more robust and can be interfaced with most major web servers of the
market.
To install JSDK simply decompress the archive (using the tar command in Unix systems) or
doublie-click on the executable under Windows.
or in any directory. You must then update the path (PATH) and the path to the classes
(CLASSPATH).
To verify that the installation was performed correctly, simply start the servletrunner utility, the
servlet engine included in the JSDK, that is to say, a basic server running on port 8080. If JSDK
utility is correctly installed servletrunner should return the following lines:
servletrunner servletrunner starting with settings : port = 8080 backlog = 50 max handlers =
100 timeout = 5000 servletdir = ./examples document dir = ./examples servlet propfile =
./examples/servlet.properties
Step 1
Download and Install Tomcat
Step 2
We need to create an environment variable called "JAVA_HOME" and set it to our JDK installed
directory.
Step 3
The configuration files of the Apache Tomcat Server are located in the "conf" sub-directory of our
Tomcat installed directory, for example "E:\myserver\tomcat7.0.40\conf". There are 4 configuration
XML files:
1. context.xml file
2. tomcat-users.xml file
3. server.xml file
4. web.xml file
<param-value>true</param-value> like:
The default port number of Tomcat is 8080. Now we need to change the TCP port number for
Tomcat, since the same port number can be used by other servers like SQL Server. We may choose
any number between 1024 and 65535. We shall choose 9999 in this article.
In that we set reloadable="true" to the <Context> element to enable automatic reload after code
changes.
<Context reloadable="true">
......
</Context> Like
It is used to manage Tomcat by adding the highlighted lines, inside the <tomcat-users> elements.
Step 5
Executable programs and scripts are kept in the "bin" sub-directory of the Tomcat installed
directory, e.g., "E:\myserver\tomcat7.0.40\bin".