Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

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

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 “” files. You can zip both files together and upload on VULMS.




Views: 8643


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 



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

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