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

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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 04

Total Marks: 20

 

Semester: Fall 2016

 

 

 

Web Design and Development -CS506

Due Date: February 1, 2017

 

Instructions:

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.

Objectives:

 

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.

 

BEST OF LUCK

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 8433

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

Code ko copy kar , notepad py save krwaye .html extension k sath phir run hga

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

CS506 

Attachments:

form ban gya ha baki ka jo kam ha please koi wo smjha dy k kaisy or kia krna ha ?? .xml extention ki file banani ha kia??

kia me dreamviewer me bana sakti hn ye javaservlet wali file??

yes dreamviewer text editor hen code likh skte ap us me. 

diamond sir can u plz explain how to do it.... in simple words

ksi be software pe bana skti hia aap bs ban janne k bad, compile kar k zarorr dekhye in order to see k koi exception or error toh nhi arah.



Web applications with Java - Tutorial 02 - Servlet + Basic HTML Form

https://www.youtube.com/watch?v=KUkzMsbZetA

insight of dopost 

 String fname = request.getParameter("fname");

 String lastName = request.getParameter("lastname");

 String gender = request.getParameter("gender");

 String email = request.getParameter("email");

 String courses = request.getParameter("course");

 if(name != null ) out.println("<h2> Hello, "+fname+"</h2>");

  same as above just check each variable for null. and then print.

<web=app>

         <welcome-file-list>

                               <welcome-file>Form.html</welcome-file>

         </welcome-file-list>

        <servlet>

                         <servlet-name>NAME</servlet-name>

                         <servlet-class>StudentServlet</servlet-class>

       </servlet>

        <servlet-mapping>

                                 <servlet-name>NAME</servlet-name>

                                 <url-pattern>/StudentServlet</url-pattern>

        </servlet-mapping>

</web-app>

url pattern can be differ according to your form action="./url"

RSS

Latest Activity

+ ! ! dAd's anGeL ❤️ liked + ! ! dAd's anGeL ❤️'s discussion -_-
22 minutes ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ ! ! ! ! ! ! maho+++ posted a discussion
3 hours ago
+ ! ! ! ! ! ! Sm!Le updated their profile
3 hours ago
+ Տɑíɾɑ Ƙհɑղ + replied to Asad's discussion ربا سچیا تُوں تے آکھیا سی
3 hours ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ IUUOƆƎUT + replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ liked + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
3 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
3 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
3 hours ago

Today Top Members 

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

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

.