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

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: 8426

.

+ 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

Mehboob Ali Cheema left a comment for areeba khan
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
Profile IconPreçîõûš and Fari Malik joined + M.Tariq Malik's group
1 hour ago
Preçîõûš joined + M.Tariq Malik's group
1 hour ago
Preçîõûš joined + M.Tariq Malik's group
1 hour ago
Preçîõûš joined + M.Tariq Malik's group
1 hour ago
Preçîõûš replied to +¢αяєℓєѕѕ gιяℓ's discussion CS408 - Human Computer Interaction Assignment No.1 Semester: Fall 2019 in the group CS408 Human Computer Interaction
2 hours ago
Preçîõûš replied to +¢αяєℓєѕѕ gιяℓ's discussion CS408 - Human Computer Interaction Assignment No.1 Semester: Fall 2019 in the group CS408 Human Computer Interaction
2 hours ago
Preçîõûš replied to +¢αяєℓєѕѕ gιяℓ's discussion CS408 - Human Computer Interaction Assignment No.1 Semester: Fall 2019 in the group CS408 Human Computer Interaction
2 hours ago
Preçîõûš joined + M.Tariq Malik's group
2 hours ago
Nissa commented on + M.Tariq Malik's group EDU430 ICT in Education
2 hours ago
Fahad liked + M.Tariq Malik's group CS206 Introduction to Network Design & Analysis
3 hours ago
Fahad liked + M.Tariq Malik's group CS205 Information Security
3 hours ago
Fahad joined + M.Tariq Malik's group
3 hours ago
Fahad joined + M.Tariq Malik's group
3 hours ago

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

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