Download File
Download File Download File
68 5. AIM: Redo the previous task using JSP by converting the static web pages of assignments 2 into dynamic web pages. Create a database with user information and books information and books information. The books catalogue should be dynamically loaded from the database. Follow the MVC architecture while doing the website. PROCEDURE: 1) Create your own directory under tomcat/webapps (e.g. tr1) 2) Copy the html files in tr1 3) Copy the jsp files also into tr1 4) Start tomcat give the following command Catalina.bat run At install-dir/bin 5) at I.E give url as http://localhost:8081/tr1/main.html • Home page: Main.html: ONLINE BOOK STORAGE Welcome to online book storage. Press LOGIN if you are having id Otherwise press REGISTRATION LOGIN REGISTRATION HYDERABAD INISTITUTE OF TECHOLOGY AND MANAGEMENT
• Login page: Login.html: LOGIN ID : PASSWORD : 69 HYDERABAD INISTITUTE OF TECHOLOGY AND MANAGEMENT
- Page 17 and 18: 17 • Registration and user Login
- Page 19 and 20: 19 PASSWORD :
- Page 21 and 22: 21
- Page 23 and 24: 23 LOGIN ID : TITLE : NO.OF BOOKS
- Page 25 and 26: 25 } } LOGIN ID : PASSWORD : AMO
- Page 27 and 28: • Registration and user Login 27
- Page 29 and 30: • Books catalog 29 HYDERABAD INIS
- Page 31 and 32: • Payment by credit card 31 HYDER
- Page 33 and 34: 33 3. AIM: Create and Save an XML
- Page 35 and 36: 35 • User information page: Useri
- Page 37 and 38: Userinfo.xml: 1 abc def ghi jkl
- Page 39 and 40: Output: • Login page: 39 HYDERABA
- Page 41 and 42: 41 4. AIM: Install TOMCAT web serv
- Page 43 and 44: • Registration page: Reg.html: 43
- Page 45 and 46: Order.html: ID : PASSWORD : TIT
- Page 47 and 48: } } 47 pw.println(""); pw.println("
- Page 49 and 50: } } } else { 49 pw.println("press R
- Page 51 and 52: } } { } 51 resp.sendError(500,e.toS
- Page 53 and 54: } } 53 catch(Exception e) { resp.se
- Page 55 and 56: RETRY"); } } } } else { 55 } pw.pri
- Page 57 and 58: Output: • Home page: 57 HYDERABAD
- Page 59 and 60: • Login servlet: 59 HYDERABAD INI
- Page 61 and 62: • Reg servlet: • User profile p
- Page 63 and 64: • Books catalog page: 63 HYDERABA
- Page 65 and 66: 65 HYDERABAD INISTITUTE OF TECHOLOG
- Page 67: • Order servlet: 67 HYDERABAD INI
- Page 71 and 72: • User profile page: Profile.html
- Page 73 and 74: • Login JSP: Login.jsp: 73 HYD
- Page 75 and 76: • Profile JSP: Profile.jsp: 75
- Page 77 and 78: • Order servlet: Order.java: 77
- Page 79 and 80: • Home page: • Login page: 79 H
- Page 81 and 82: • Registration page: 81 HYDERABAD
- Page 83 and 84: • User profile page: 83 HYDERABAD
- Page 85 and 86: • Books catalog page: 85 HYDERABA
- Page 87 and 88: 87 HYDERABAD INISTITUTE OF TECHOLOG
- Page 89 and 90: • Order JSP: 89 HYDERABAD INISTIT
- Page 91 and 92: Step 2: 91 create a directory (work
- Page 93 and 94: Web.xml action org.apache.struts
- Page 95 and 96: a. Create a JavaBean which gives th
68<br />
5. AIM:<br />
Redo the previous task using JSP by converting the static web pages of<br />
assignments 2 into dynamic web pages. Create a database with user<br />
information and books information and books information. The books<br />
catalogue should be dynamically loaded from the database. Follow the MVC<br />
architecture while doing the website.<br />
PROCEDURE:<br />
1) Create your own directory under tomcat/webapps (e.g. tr1)<br />
2) Copy the html files in tr1<br />
3) Copy the jsp files also into tr1<br />
4) Start tomcat give the following command<br />
Catalina.bat run<br />
At install-dir/bin<br />
5) at I.E give url as http://localhost:8081/tr1/main.html<br />
• Home page:<br />
Main.html:<br />
<br />
<br />
<br />
ONLINE BOOK STORAGE<br />
<br />
Welcome to online book storage.<br />
Press LOGIN if you are having id<br />
Otherwise press REGISTRATION<br />
<br />
<br />
LOGIN<br />
REGISTRATION<br />
<br />
HYDERABAD INISTITUTE OF TECHOLOGY AND MANAGEMENT