.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

Assignment No. 04

Total Marks: 20


Semester: Fall 2016




Web Design and Development -CS506

Due Date: February 1, 2017



Please read the following instructions carefully before submitting assignment:


  • You should submit your assignment before or on due date on VULMS.


  • Your assignment should be your own work in your own words. It should not be copied from internet, handouts or books.
  • Assignment sent via Email will not be replied and accepted in any case.


  • If the submitted assignment does not open or file is corrupt, it will not be marked and awarded Zero marks.



To build knowledge about how to develop basic dynamic web application in Java EE To write first Servlet in Java and communicate with Client using HTTP


Install, configure and use Apache Tomcat Server in Java Web Application


For any query about the assignment, contact at CS506@vu.edu.pk

Question:                                                                                                                                   Marks 20

You are required to develop an HTML page using Microsoft Notepad that will work as a client to interact with Java Servlet. The HTML page will be a Student Registration From containing basic HTML controls. The sample is as follows;



























One Server side, you need to write Java Servlet named as “StudentServlet” which will dynamically respond to previously developed HTML form.


Your servlet should check all HTML controls (i.e. text fields, radio buttons, drop down lists etc.) for non-empty values and display a response message to user like;

Congrats Registration Successful !

Thanks Mr. Ali Ahmad


(where Ali is the name of user)


Note: You need to install, configure, environment setup and test following softwares in your machine;


  1. Java SE
  2. Java Servlet Libraries (servlet-api.jar and jsp-api.jar) OR Apache Tomcat Web Server


You are also required to submit both HTML form and “StudentServlet.java” files. You can zip both files together and upload on VULMS.




This Content Originally Published by a member of VU Students.

Views: 8249

See Your Saved Posts Timeline


Replies to This Discussion

thanks buddy.

ni bro es e gusy wali kia bat hai mai tou khud seekh raha hu mane assignment bna li hui hai mai apka solution netbeans se open krna chahta tha mane gusa nai kia mai sekhna chahta hu bsss.

hmm achi bat he. :) carry on.

bai gussa tu ni kia na meri bat ka?

thnaq sir for every thing tc

CS506 Assignment 4

sb ko 404 ka error arha hai wo esi waja se arha

html form action field ma ju URL diya jata hai usually aap wo url web xml k url pattern se lo ge. matlab action field and url pattern ka url aap logo ne same e lkhna hai

<form action="./studentservlet">



<url-pattern>/studentservlet</url-pattern>       ma ne shortly lekha hai. i hope aap logo ko idea ho gya hoga k kaise karna hai ab

sirf .html aur .java files zip krni ha na assignment ma

haan je.

complete solution


complete solution hai ye k ni means wrong toh ni hai kuch is main

CS 506 assignment 4 95 % solution By Pukhtoon 



Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Latest Activity

Member of The Month

1. ٹمبکٹو

---, Pakistan

© 2017   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service