What Is Spring Boot
What Is Spring Boot
It provides an easier and faster way to set up, configure, and run
both simple and web-based applications.
What is JavaScript
JavaScript (js) is a light-weight object-oriented programming
language which is used by several websites for scripting the
webpages.
Features of JavaScript
All popular web browsers support JavaScript as they provide built-
in execution environments.
JavaScript follows the syntax and structure of the C programming
language. Thus, it is a structured programming language.
It is a light-weighted and interpreted language.
It is a case-sensitive language.
<script>
function validateform(){
var name=document.myform.name.value;
var password=document.myform.password.value;
if (name==null || name==""){
alert("Name can't be blank");
return false;
}else if(password.length<6){
alert("Password must be at least 6 characters long.");
return false;
}
}
</script>
<body>
<form name="myform" method="post" action="abc.jsp" onsubmit="return valid
ateform()" >
Name: <input type="text" name="name"><br/>
Password: <input type="password" name="password"><br/>
<input type="submit" value="register">
</form>
1. <script>
2. function validate(){
3. var num=document.myform.num.value;
4. if (isNaN(num)){
5. document.getElementById("numloc").innerHTML="Enter Numeric value only";
6. return false;
7. }else{
8. return true;
9. }
10. }
11. </script>
12. <form name="myform" onsubmit="return validate()" >
13. Number: <input type="text" name="num"><span id="numloc"></span><br/>
14. <input type="submit" value="submit">
15. </form>
JSP directives
The jsp directives are messages that tells the web container how to translate a JSP
page into the corresponding servlet.
o page directive
o include directive
o taglib directive