Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have jsp file that get first name, last name and phone number from the user. I want to make all of them Required field

I have jsp file that get first name, last name and phone number from the user. I want to make all of them Required field and if the field is empty, alert with the field name. for example if they don't provide the phone number, create alert with that say insert phone number.

This is my jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

pageEncoding="ISO-8859-1"%>

"ISO-8859-1">

Insert title here

"center">

Employee Register Form

"<%= request.getContextPath() %>/register" method="post">

First Name "text" name="firstName" />
Last Name "text" name="lastName" />
Phone Number "text" name="phoneNumber" />

"submit" value="Submit" />

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions