Programs 1 Develop static pages (using Only HTML) of an online ...
Programs 1 Develop static pages (using Only HTML) of an online ...
Programs 1 Develop static pages (using Only HTML) of an online ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
6. Install TOMCAT web server. Convert the <strong>static</strong> web<strong>pages</strong> <strong>of</strong> assignments 2 into dynamic<br />
web<strong>pages</strong> <strong>using</strong> servlets <strong>an</strong>d cookies. Hint: Users information (user id, password, credit card<br />
number) would be stored in web.xml. Each user should have a separate Shopping Cart.<br />
PROCEDURE:<br />
First install the tomcat into the system.<br />
Then make a subdirectly(eg., tr) in the \tomcat\webapps.<br />
Under tr create WEB-INF directory <strong>an</strong>d also place the html files in this tr directory only.<br />
Next under WEB-INF create two subclasses lib,classes <strong>an</strong>d web.xml<br />
Next place all the class files under the classes <strong>an</strong>d jar files(servlet-api.jar,classes12.jar etc…) under lib<br />
subdirectories.<br />
After this start tomcat by giving the following comm<strong>an</strong>d at the instll_dir>tomcat>bin<br />
Catalina.bat run<br />
At the I.E(web browser) give the url as http;//localhost:8080//tr/htmlfile or servlet url pattern<br />
Portno 8080 is assigned for the tomcat.<br />
Web.xml<br />
<br />
<br />
<br />
Servlet 2.4 Examples<br />
<br />
Servlet 2.4 Examples.<br />
<br />
<br />
reg<br />
reg<br />
<br />
<br />
login<br />
login<br />
<br />
<br />
pr<strong>of</strong>ile<br />
pr<strong>of</strong>ile<br />
<br />
<br />
catalog<br />
catalog<br />
<br />
order<br />
order<br />
<br />
<br />
catalog<br />
catalog<br />
25<br />
25