Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
4.5 kB
2
Indexable
Never
<?xml version="1.0" encoding="UTF-8"?>
<element>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0">
  <servlet>
    <description></description>
    <display-name>StudentData</display-name>
    <servlet-name>StudentData</servlet-name>
    <servlet-class>com.wipro.StudentData</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>StudentData</servlet-name>
    <url-pattern>/StudentData</url-pattern>
  </servlet-mapping>
  <display-name>Arthawebapp</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <servlet>
    <description></description>
    <display-name>SudentServlet</display-name>
    <servlet-name>SudentServlet</servlet-name>
    <servlet-class>com.wipro.SudentServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>SudentServlet</servlet-name>
    <url-pattern>/SudentServlet</url-pattern>
  </servlet-mapping>
  <servlet>
    <description></description>
    <display-name>SubjectServlet</display-name>
    <servlet-name>SubjectServlet</servlet-name>
    <servlet-class>com.wipro.SubjectServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>SubjectServlet</servlet-name>
    <url-pattern>/SubjectServlet</url-pattern>
  </servlet-mapping>
</web-app>
</element>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>ARTHA WEB APP</title>
</head>
<body style="background-color:white;">
  <center><h1>Welcome to Artha Educational Institute</h1></center>
  </br>
  <center><h4>Please Choose The Option</h4></center>
  <center>
  <form action="studentpage.jsp" > 
        <input type="submit" value="Student Average" >
   </form>
   </br></br></br>
   <form action="subjectpage.jsp" > 
        <input type="submit" value="Subject Average" >
   </form>
   </br></br></br>
   <form action="StudentData"  method="get"> 
        <input type="submit" value="Display Data" >
   </form>
   </br></br></br>
   <form action="Logout.jsp"> 
        <input type="submit" value=" Exit " >
   </form>
   </center>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
 session.invalidate();
%>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
  function validate(){
	  var StuName = document.getElementById("name");
	  if(StuName.value == ""){
		  alert("Please Enter Student Name");
		  return false;
	  }else{
		  return true;
	  }
  }
</script>
</head>
<body style="background-color: white;">
<center><h1>Welcome To Artha Educational Institute</hl></center>
   </br></br>
   <h2>This page gives Student Average in All the subject</h2>
   </br></br>
   <form onSubmit="return Validate()" action="Student" method="get">
        Enter Student Name : <input id="name" name="name" type="text"> 
        <input type="submit" value="Student Average" >
   </form>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
  function validate(){
	  var SubName = document.getElementById("subject");
	  if(SubName.value == ""){
		  alert("Please Enter Subject Name");
		  return false;
	  }else{
		  return true;
	  }
  }
</script>
</head>
<body style="background-color: white;">
 <center><h1>Welcome To Artha Educational Institute</hl></center>
   </br></br>
   <h2>This page gives All Students Average in the given Subject</h2>
   </br></br>
   <form onSubmit="return Validate()" action="Subject" method="get">
        Enter Subject Name : <input id="subject" name="subject" type="text"> 
        <input type="submit" value="Subject Average" >
   </form>
</body>
</html>