You are on page 1of 2

 ARCHITECTING APPLICATIONS FOR THE

WEB

 Create an application to demonstrate Custom Validator using Struts.

o Demonstrate password validator which makes the following validation


on the password field.

o It must contain a letter either in Uppercase, or lowercase.

o It must contain digits between 0 and 9.

o It must contain at least one special character like-! @ # $ etc.

 Create a Page that accepts username, password, phone number and Email id.

 Page also should contain a Submit button.

Validate the fields when Submit button is clicked.

 Finally create a properties file that will contain the error message for the
specified key attributes.

Create a new NetBeans project in Java called “YourName_WebArchitecting_1905” e.g.


“Nyanjui_ WebArchitecting _1905” and create your solution there. Once you finish ZIP
(not RAR) the project folder and send it to me on n.arthur@edulink.ac.ke by Friday 13th
Nov. 2020.
 WEB COMPONENT DEVELOPMENT

 Create an application to demonstrate MultipartConfig Annotation as follows:

o Write a Servlet code in the application that uploads the file on the
server.

o Write code for corresponding web.xml file for configuring the Servlet.

o To provide file information to the server while uploading its content, use
annotation.

o Use fileSizeThreshold and maxFileSize attribute to specify size of the


files and to specify the maximum file limit allowed to upload the file on
the server.

Create a new NetBeans project in Java called “YourName_WebComponent_1905” e.g.


“Nyanjui_ WebComponent _1905” and create your solution there. Once you finish ZIP
(not RAR) the project folder and send it to me on n.arthur@edulink.ac.ke by Friday 13th
Nov. 2020.

Note that work created using other Proprietary IDEs requires me to install them and
get the required licences that is why we insist you use what is freely and easily
available.

You might also like