Blogger Text

My Aim to Provide you quality contents, Tips & Tricks, Software, Microsoft Office, Graphic Editing (Adobe PhotoShop, After Affects, Illustrator, inDesign) Corel Draw, Corel Video Studio, Cyberlink PowerDirector, Power ActionCinema, Tutorials about Blogging and VU Assignments, Quizes & GDB Solutions and Much More... at regular Basis
                                     ***    Kindly Subscribe our Official YouTube Channel "INFOPALACESS OFFICIAL-Tuts: in this channel we upload Programming (C,C++,C# JAVA, PHP), Web Development, Graphics Editing and Microsoft Office Step by Step Tutorials from bigginer to Advance Level. We also provide free online courses at our YouTube Channel. ***   Graded Assignments/Quizes and GDB will start in Next Week. Solution ideas of All assignments, Quizes and GDB will be available here. If you have any problem regarding this then you can contact us.

CS506 Assignment No 2 Solution Due Date 31-01-2019


Assignment No. 02
Semester: Fall 2018
CS506 – Web Design and Development

Total Marks: 20

Due Date: 31/01/2019

Learning Objective:

You should be familiar with following topics to solve this assignment:

  • Dynamic Page Creation.
  • Servlets
  • HttpServletRequest, HttpServletResponse and Web.xml
  • Database Connectivity

Uploading instructions:

  • Your assignment should be in .zip /.rar format.
  • Save your assignment with your ID (e.g. bc000000000.rar).
  • No assignment will be accepted through email.

Rules for Marking:

It should be clear that your assignment will not get any credit if:

·        The assignment is submitted after due date.
·        The submitted assignment does not open, execute or file is corrupted.
·        Your assignment is copied from internet, handouts or from any other student
      (Strict disciplinary action will be taken in this case).

Assignment

Question:     (20 Marks)

You are required to create a Servlet based web application to display study schemes of various study programs by keeping the following requirements in your mind.

Develop an html page (index.html) which will contain a form having two text fields and a drop down menu as given below.


index.html
  

Now, create a new database in MS Access and add a table in the database as shown below.



StudyScheme Table in MS Access

The name of database should be same as your own VU ID (like BC0000000) and the name of table should be StudyScheme. Now, populate this table by adding study schemes’ data of at least two study programs i.e. BS(Computer Science) and BS(Information Technology) as shown in above image. You may take this data from the following links.


Now, write a Servlet (StudySchemeServlet.java) that will receive the information submitted from client side (index.html), fetch the study scheme of selected program from database and display it at client side along with Name and ID of the student as shown below.



Output Generated by StudySchemeServlet.java



Important Regarding Development:

If you are using JDK1.8 or above then you’ll have to use ucanaccess driver to connect to MS Access database. In this case, I'll suggest you to view the following tutorial.


Following links will be helpful in creating new database in MS Access.


Important Regarding Submission:

After completing your code, compile your code and deploy this application using web application server. Now, run your application on web browser and take the screenshots of both input (index.html) and output generated by Servlet. Now, you are required to submit following files in compressed (.zip or .rar) format on VULMS.

1. index.html
2. web.xml
3. StudySchemeServlet.java
4  Database file
5. input.jpg
6. result.jpg

NOTE:  Do not put any query on MDB about this assignment, if you have any query then email at cs506@vu.edu.pk. If any student found cheating from any other student or from online forums then he/she will be awarded ZERO right away and strict disciplinary action will be taken against the student. Furthermore, if any student submitted code in word file (.doc/.docx or any other text format) then he/she will not get any credit of the assignment. And, write your own VU ID wherever BC00000000 is mentioned in assignment file.



Deadline: Your assignment must be uploaded/submitted on or before 31st January 2019.

























































































































Solution will uploaded here very soon and Solution video can be found at this YouTube Channel Click Here to Get CS506

Solution 

Steps invold to solve and submit the assignment

WATCH THE VIDEO BELOW TO SOLVE THIS 



1- Create a new project in netbeans or tomcat and paste the java code from given file.
2- Now create a folder as Study Scheme  in Tomcat/netbeans installation fodler webapp. and copy index.html file and paste in side studyscheme folder
3- Copy and paste web.xml file in clasess folder inside in to web Apps
4- Open Index.html and fil the form with your name and id then take screen shot and save it as jpg file
5-  then take another screenshot of result
6. then create a folder with your id and paste all files in that folder and then create rar or zip file that's it.
<form action="http://localhost:8080/StudyScheme/vuservlet">

Download Files:

1-  Download Index.html File
2-  Download Web.xml File
3-  Download Access Database
4-  Downlaod Javaservelet files

NOTE: MAKE CHANGES IN THIS ASSIGMENT TO AVOID ZERO MARKING AND ALSO COPY ALL FILES IN TO NEW FOLDER CREATED WITH YOUR STUDENT ID AND THEN CREATE A RAR OR ZIP FILE TO SUBMIT.  ONE THING MORE TAKE SCREEN SHOTS AS TELL IN VIDEO 



Post a Comment

6 Comments

  1. Replies
    1. Links are working anyways I will update links tomorrow

      Delete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Your java code is not included and picture of code is half not complete.

    ReplyDelete