Total Pageviews

Saturday, September 27, 2008

JNTU III Year B.Tech. IT II-Sem-webtechnologieslab syllabus

JNTU 2007-08 III Year II Sem B.Tech. IT - Web Technologies Lab



JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITYHYDERABADIII Year B.Tech. IT II-Sem T P C0 3 2
WEB TECHNOLOGIES LABObjective :To create a fully functional website with mvc architecture. To Develop an online Book store using we can sell books (Ex amazon .com).Hardware and Software required :1. A working computer system with either Windows or Linux2. A web browser either IE or firefox3. Tomcat web server and Apache web server4. XML editor like Altova Xml-spy [www.Altova.com/XMLSpy – free ] , Stylusstudio , etc.,5. A database either Mysql or Oracle6. JVM(Java virtual machine) must be installed on your system7. BDK(Bean development kit) must be also be installedWeek-1:Design the following static web pages required for an online book store web site.1) HOME PAGE:The static home page must contain three frames.Top frame : Logo and the college name and links to Home page, Login page, Registration page, Catalogue page and Cart page (the description of these pages will be given below).Left frame : At least four links for navigation, which will display the catalogue of respective links.For e.g.: When you click the link “CSE” the catalogue for CSE Books should be displayed in the Right frame.Right frame: The pages to the links in the left frame must be loaded here. Initially this page contains description of the web site.2) LOGIN PAGE:Login : Password:3) CATOLOGUE PAGE:The catalogue page should contain the details of all the books available in the web site in a table.The details should contain the following:1. Snap shot of Cover Page.2. Author Name.3. Publisher.4. Price.5. Add to cart button.Note: Week 2 contains the remaining pages and their description.Week-2: 4) CART PAGE:The cart page contains the details about the books which are added to the cart.The cart page should look like this:5) REGISTRATION PAGE:Create a “registration form “with the following fields 1) Name (Text field) 2) Password (password field)3) E-mail id (text field)4) Phone number (text field)5) Sex (radio button)6) Date of birth (3 select boxes)7) Languages known (check boxes – English, Telugu, Hindi, Tamil)8) Address (text area)WEEK 3:VALIDATION:Write JavaScript to validate the following fields of the above registration page.1. Name (Name should contains alphabets and the length should not be less than 6 characters).2. Password (Password should not be less than 6 characters length).3. E-mail id (should not contain any invalid and must follow the standard pattern name@domain.com)4. Phone number (Phone number should contain 10 digits only).Note : You can also validate the login page with these parameters.Week-4:Design a web page using CSS (Cascading Style Sheets) which includes the following:1) Use different font, styles:In the style definition you define how each selector should work (font, color etc.).2) Set a background image for both the page and single elements on the page.3) Control the repetition of the image with the background-repeat property. 4) Define styles for links as A:linkA:visitedA:activeA:hover5) Work with layers:6) Add a customized cursor:Week-5:Write an XML file which will display the Book information which includes the following: 1) Title of the book2) Author Name3) ISBN number4) Publisher name5) Edition6) PriceWrite a Document Type Definition (DTD) to validate the above XML file.Display the XML file as follows.The contents should be displayed in a table. The header of the table should be in color GREY. And the Author names column should be displayed in one color and should be capitalized and in bold. Use your own colors for remaining columns.Use XML schemas XSL and CSS for the above purpose.Note: Give at least for 4 books. It should be valid syntactically.Hint: You can use some xml editors like XML-spyWeek-6:VISUAL BEANS:Create a simple visual bean with a area filled with a color.The shape of the area depends on the property shape. If it is set to true then the shape of the area is Square and it is Circle, if it is false.The color of the area should be changed dynamically for every mouse click. The color should also be changed if we change the color in the “property window “.Week-7:1) Install TOMCAT web server and APACHE.While installation assign port number 4040 to TOMCAT and 8080 to APACHE. Make sure that these ports are available i.e., no other process is using this port.2) Access the above developed static web pages for books web site, using these servers by putting the web pages developed in week-1 and week-2 in the document root.Week-8:User Authentication : Assume four users user1,user2,user3 and user4 having the passwords pwd1,pwd2,pwd3 and pwd4 respectively. Write a servelet for doing the following.1. Create a Cookie and add these four user id’s and passwords to this Cookie.2. Read the user id and passwords entered in the Login form (week1) and authenticate with the values (user id and passwords ) available in the cookies.If he is a valid user(i.e., user-name and password match) you should welcome him by name(user-name) else you should display “ You are not an authenticated user “. Use init-parameters to do this. Store the user-names and passwords in the webinf.xml and access them in the servlet by using the getInitParameters() method.Week-9:Install a database(Mysql or Oracle).Create a table which should contain at least the following fields: name, password, email-id, phone number(these should hold the data from the registration form).Practice 'JDBC' connectivity. Write a java program/servlet/JSP to connect to that database and extract data from the tables and display them. Experiment with various SQL queries.Insert the details of the users who register with the web site, whenever a new user clicks the submit button in the registration page (week2).

Featured Post

ORACLE ADVANCED REPLIATION

Oracle Advanced Replication is one of several oracle database replication technologies that supports bidirectional replication, multiple m...