diff --git a/3.3 Create html validations page/build.xml b/3.3 Create html validations page/build.xml
new file mode 100644
index 0000000..3e0de1d
--- /dev/null
+++ b/3.3 Create html validations page/build.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+ Builds, tests, and runs the project Exp_4_4.
+
+
+
diff --git a/3.3 Create html validations page/build/web/META-INF/MANIFEST.MF b/3.3 Create html validations page/build/web/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..59499bc
--- /dev/null
+++ b/3.3 Create html validations page/build/web/META-INF/MANIFEST.MF
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
diff --git a/3.3 Create html validations page/build/web/META-INF/context.xml b/3.3 Create html validations page/build/web/META-INF/context.xml
new file mode 100644
index 0000000..0763b32
--- /dev/null
+++ b/3.3 Create html validations page/build/web/META-INF/context.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/3.3 Create html validations page/build/web/WEB-INF/classes/.netbeans_automatic_build b/3.3 Create html validations page/build/web/WEB-INF/classes/.netbeans_automatic_build
new file mode 100644
index 0000000..e69de29
diff --git a/3.3 Create html validations page/build/web/WEB-INF/classes/.netbeans_update_resources b/3.3 Create html validations page/build/web/WEB-INF/classes/.netbeans_update_resources
new file mode 100644
index 0000000..e69de29
diff --git a/3.3 Create html validations page/build/web/WEB-INF/classes/LoginClass.class b/3.3 Create html validations page/build/web/WEB-INF/classes/LoginClass.class
new file mode 100644
index 0000000..155b4a6
Binary files /dev/null and b/3.3 Create html validations page/build/web/WEB-INF/classes/LoginClass.class differ
diff --git a/3.3 Create html validations page/build/web/WEB-INF/web.xml b/3.3 Create html validations page/build/web/WEB-INF/web.xml
new file mode 100644
index 0000000..093965c
--- /dev/null
+++ b/3.3 Create html validations page/build/web/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ LoginServlet
+ LoginClass
+
+
+ LoginServlet
+ /login
+
+
+
+
+ 30
+
+
+
+
diff --git a/3.3 Create html validations page/build/web/index.html b/3.3 Create html validations page/build/web/index.html
new file mode 100644
index 0000000..c2646e4
--- /dev/null
+++ b/3.3 Create html validations page/build/web/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+ Welcome
+
+
+
+
+
+
+
diff --git a/3.3 Create html validations page/nbproject/ant-deploy.xml b/3.3 Create html validations page/nbproject/ant-deploy.xml
new file mode 100644
index 0000000..c2349eb
--- /dev/null
+++ b/3.3 Create html validations page/nbproject/ant-deploy.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/3.3 Create html validations page/nbproject/build-impl.xml b/3.3 Create html validations page/nbproject/build-impl.xml
new file mode 100644
index 0000000..3a521d1
--- /dev/null
+++ b/3.3 Create html validations page/nbproject/build-impl.xml
@@ -0,0 +1,1427 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set src.dir
+ Must set test.src.dir
+ Must set build.dir
+ Must set build.web.dir
+ Must set build.generated.dir
+ Must set dist.dir
+ Must set build.classes.dir
+ Must set dist.javadoc.dir
+ Must set build.test.classes.dir
+ Must set build.test.results.dir
+ Must set build.classes.excludes
+ Must set dist.war
+
+
+
+
+
+
+
+
+
+The Java EE server classpath is not correctly set up - server home directory is missing.
+Either open the project in the IDE and assign the server or setup the server classpath manually.
+For example like this:
+ ant -Dj2ee.server.home=<app_server_installation_directory>
+
+
+The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
+Either open the project in the IDE and assign the server or setup the server classpath manually.
+For example like this:
+ ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
+or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No tests executed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+The libs.CopyLibs.classpath property is not set up.
+This property must point to
+org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
+of NetBeans IDE installation and is usually located at
+<netbeans_installation>/java<version>/ant/extra folder.
+Either open the project in the IDE and make sure CopyLibs library
+exists or setup the property manually. For example like this:
+ ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set JVM to use for profiling in profiler.info.jvm
+ Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.jsp.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select a file in the IDE or set jsp.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
+
+
+ Launching ${browse.url}
+
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+ Must set fix.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set test.includes
+
+
+
+ Some tests failed; see details above.
+
+
+
+ Must select some files in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+ Must select one file in the IDE or set test.class
+
+
+
+ Must select one file in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/3.3 Create html validations page/nbproject/genfiles.properties b/3.3 Create html validations page/nbproject/genfiles.properties
new file mode 100644
index 0000000..d4c7742
--- /dev/null
+++ b/3.3 Create html validations page/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=f967fe9f
+build.xml.script.CRC32=bda2110f
+build.xml.stylesheet.CRC32=1707db4f@1.89.0.1
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=f967fe9f
+nbproject/build-impl.xml.script.CRC32=22b59a54
+nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.89.0.1
diff --git a/3.3 Create html validations page/nbproject/private/private.properties b/3.3 Create html validations page/nbproject/private/private.properties
new file mode 100644
index 0000000..838b09e
--- /dev/null
+++ b/3.3 Create html validations page/nbproject/private/private.properties
@@ -0,0 +1,4 @@
+deploy.ant.properties.file=C:\\Users\\Kurade\\AppData\\Roaming\\NetBeans\\13\\tomcat90.properties
+j2ee.server.home=C:/Tomcat
+j2ee.server.instance=tomcat90:home=C:\\Tomcat
+user.properties.file=C:\\Users\\Kurade\\AppData\\Roaming\\NetBeans\\13\\build.properties
diff --git a/3.3 Create html validations page/nbproject/private/private.xml b/3.3 Create html validations page/nbproject/private/private.xml
new file mode 100644
index 0000000..ed2718c
--- /dev/null
+++ b/3.3 Create html validations page/nbproject/private/private.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ file:/D:/AJP/Exp_4_4/web/WEB-INF/web.xml
+ file:/D:/AJP/Exp_4_4/src/java/LoginClass.java
+ file:/D:/AJP/Exp_4_4/web/index.html
+
+
+
diff --git a/3.3 Create html validations page/nbproject/project.properties b/3.3 Create html validations page/nbproject/project.properties
new file mode 100644
index 0000000..3754f26
--- /dev/null
+++ b/3.3 Create html validations page/nbproject/project.properties
@@ -0,0 +1,84 @@
+annotation.processing.enabled=true
+annotation.processing.enabled.in.editor=true
+annotation.processing.processors.list=
+annotation.processing.run.all.processors=true
+annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
+build.classes.dir=${build.web.dir}/WEB-INF/classes
+build.classes.excludes=**/*.java,**/*.form
+build.dir=build
+build.generated.dir=${build.dir}/generated
+build.generated.sources.dir=${build.dir}/generated-sources
+build.test.classes.dir=${build.dir}/test/classes
+build.test.results.dir=${build.dir}/test/results
+build.web.dir=${build.dir}/web
+build.web.excludes=${build.classes.excludes}
+client.urlPart=
+compile.jsps=false
+conf.dir=${source.root}/conf
+debug.classpath=${build.classes.dir}:${javac.classpath}
+debug.test.classpath=\
+ ${run.test.classpath}
+display.browser=true
+# Files to be excluded from distribution war
+dist.archive.excludes=
+dist.dir=dist
+dist.ear.war=${dist.dir}/${war.ear.name}
+dist.javadoc.dir=${dist.dir}/javadoc
+dist.war=${dist.dir}/${war.name}
+endorsed.classpath=\
+ ${libs.javaee-endorsed-api-7.0.classpath}
+excludes=
+includes=**
+j2ee.compile.on.save=true
+j2ee.copy.static.files.on.save=true
+j2ee.deploy.on.save=true
+j2ee.platform=1.7-web
+j2ee.platform.classpath=${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-ssi.jar:${j2ee.server.home}/lib/catalina-storeconfig.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/catalina.jar:${j2ee.server.home}/lib/ecj-4.20.jar:${j2ee.server.home}/lib/el-api.jar:${j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:${j2ee.server.home}/lib/jaspic-api.jar:${j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/servlet-api.jar:${j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:${j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-cs.jar:${j2ee.server.home}/lib/tomcat-i18n-de.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:${j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:${j2ee.server.home}/lib/tomcat-i18n-ko.jar:${j2ee.server.home}/lib/tomcat-i18n-pt-BR.jar:${j2ee.server.home}/lib/tomcat-i18n-ru.jar:${j2ee.server.home}/lib/tomcat-i18n-zh-CN.jar:${j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-jni.jar:${j2ee.server.home}/lib/tomcat-util-scan.jar:${j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat-websocket.jar:${j2ee.server.home}/lib/websocket-api.jar
+j2ee.server.type=Tomcat
+jar.compress=false
+javac.classpath=
+# Space-separated list of extra javac options
+javac.compilerargs=
+javac.debug=true
+javac.deprecation=false
+javac.processorpath=\
+ ${javac.classpath}
+javac.source=1.7
+javac.target=1.7
+javac.test.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+javac.test.processorpath=\
+ ${javac.test.classpath}
+javadoc.additionalparam=
+javadoc.author=false
+javadoc.encoding=${source.encoding}
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.preview=true
+javadoc.private=false
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+lib.dir=${web.docbase.dir}/WEB-INF/lib
+no.dependencies=false
+persistence.xml.dir=${conf.dir}
+platform.active=default_platform
+resource.dir=setup
+run.test.classpath=\
+ ${javac.test.classpath}:\
+ ${build.test.classes.dir}
+# Space-separated list of JVM arguments used when running a class with a main method or a unit test
+# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
+runmain.jvmargs=
+source.encoding=UTF-8
+source.root=src
+src.dir=${source.root}/java
+test.src.dir=test
+war.content.additional=
+war.ear.name=${war.name}
+war.name=Exp_4_4.war
+web.docbase.dir=web
+webinf.dir=web/WEB-INF
diff --git a/3.3 Create html validations page/nbproject/project.xml b/3.3 Create html validations page/nbproject/project.xml
new file mode 100644
index 0000000..e7c6b5b
--- /dev/null
+++ b/3.3 Create html validations page/nbproject/project.xml
@@ -0,0 +1,18 @@
+
+
+ org.netbeans.modules.web.project
+
+
+ Exp_4_4
+ 1.6.5
+
+
+
+
+
+
+
+
+
+
+
diff --git a/3.3 Create html validations page/src/conf/MANIFEST.MF b/3.3 Create html validations page/src/conf/MANIFEST.MF
new file mode 100644
index 0000000..59499bc
--- /dev/null
+++ b/3.3 Create html validations page/src/conf/MANIFEST.MF
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
diff --git a/3.3 Create html validations page/src/java/LoginClass.java b/3.3 Create html validations page/src/java/LoginClass.java
new file mode 100644
index 0000000..83d041c
--- /dev/null
+++ b/3.3 Create html validations page/src/java/LoginClass.java
@@ -0,0 +1,26 @@
+import java.io.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+public class LoginClass extends HttpServlet{
+ protected void doPost(HttpServletRequest request,HttpServletResponse response)
+ throws ServletException, IOException{
+ response.setContentType("text/html;charset=UTF-8");
+ PrintWriter out=response.getWriter();
+
+ String result;
+ try{
+ String username=request.getParameter("username");
+ String password=request.getParameter("password");
+ if(username.equals("Haresh")&&password.equals("haresh@123")){
+ result="Login successful";
+ }
+ else{
+ result="Authentication Error";
+ }
+ out.println(""+result+"");
+ }
+ finally{
+ out.close();
+ }
+ }
+}
diff --git a/3.3 Create html validations page/web/META-INF/context.xml b/3.3 Create html validations page/web/META-INF/context.xml
new file mode 100644
index 0000000..0763b32
--- /dev/null
+++ b/3.3 Create html validations page/web/META-INF/context.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/3.3 Create html validations page/web/WEB-INF/web.xml b/3.3 Create html validations page/web/WEB-INF/web.xml
new file mode 100644
index 0000000..093965c
--- /dev/null
+++ b/3.3 Create html validations page/web/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ LoginServlet
+ LoginClass
+
+
+ LoginServlet
+ /login
+
+
+
+
+ 30
+
+
+
+
diff --git a/3.3 Create html validations page/web/index.html b/3.3 Create html validations page/web/index.html
new file mode 100644
index 0000000..c2646e4
--- /dev/null
+++ b/3.3 Create html validations page/web/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+ Welcome
+
+
+
+
+
+
+
diff --git a/3.4 Create login and error page/build.xml b/3.4 Create login and error page/build.xml
new file mode 100644
index 0000000..db987c3
--- /dev/null
+++ b/3.4 Create login and error page/build.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+ Builds, tests, and runs the project Exp45.
+
+
+
diff --git a/3.4 Create login and error page/build/web/META-INF/MANIFEST.MF b/3.4 Create login and error page/build/web/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..59499bc
--- /dev/null
+++ b/3.4 Create login and error page/build/web/META-INF/MANIFEST.MF
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
diff --git a/3.4 Create login and error page/build/web/META-INF/context.xml b/3.4 Create login and error page/build/web/META-INF/context.xml
new file mode 100644
index 0000000..2e70f7b
--- /dev/null
+++ b/3.4 Create login and error page/build/web/META-INF/context.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/3.4 Create login and error page/build/web/WEB-INF/classes/.netbeans_automatic_build b/3.4 Create login and error page/build/web/WEB-INF/classes/.netbeans_automatic_build
new file mode 100644
index 0000000..e69de29
diff --git a/3.4 Create login and error page/build/web/WEB-INF/classes/.netbeans_update_resources b/3.4 Create login and error page/build/web/WEB-INF/classes/.netbeans_update_resources
new file mode 100644
index 0000000..e69de29
diff --git a/3.4 Create login and error page/build/web/WEB-INF/classes/LoginClass.class b/3.4 Create login and error page/build/web/WEB-INF/classes/LoginClass.class
new file mode 100644
index 0000000..4ce3583
Binary files /dev/null and b/3.4 Create login and error page/build/web/WEB-INF/classes/LoginClass.class differ
diff --git a/3.4 Create login and error page/build/web/WEB-INF/classes/UserProfile.class b/3.4 Create login and error page/build/web/WEB-INF/classes/UserProfile.class
new file mode 100644
index 0000000..04792aa
Binary files /dev/null and b/3.4 Create login and error page/build/web/WEB-INF/classes/UserProfile.class differ
diff --git a/3.4 Create login and error page/build/web/WEB-INF/web.xml b/3.4 Create login and error page/build/web/WEB-INF/web.xml
new file mode 100644
index 0000000..f50526d
--- /dev/null
+++ b/3.4 Create login and error page/build/web/WEB-INF/web.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ LoginServlet
+ LoginClass
+
+
+
+ LoginServlet
+ /login
+
+
+
+ UserProfileServlet
+ UserProfile
+
+
+
+ UserProfileServlet
+ /WelcomeUser
+
+
+
+
+ 30
+
+
+
+
diff --git a/3.4 Create login and error page/build/web/errorpage.html b/3.4 Create login and error page/build/web/errorpage.html
new file mode 100644
index 0000000..5ef227a
--- /dev/null
+++ b/3.4 Create login and error page/build/web/errorpage.html
@@ -0,0 +1,11 @@
+
+
+
+ Error...!
+
+
+
+
+ Authentication Failure
+
+
diff --git a/3.4 Create login and error page/build/web/index.html b/3.4 Create login and error page/build/web/index.html
new file mode 100644
index 0000000..7a68f47
--- /dev/null
+++ b/3.4 Create login and error page/build/web/index.html
@@ -0,0 +1,15 @@
+
+
+
+ Experiment 4.5
+
+
+
+
+
+
+
diff --git a/3.4 Create login and error page/nbproject/ant-deploy.xml b/3.4 Create login and error page/nbproject/ant-deploy.xml
new file mode 100644
index 0000000..c2349eb
--- /dev/null
+++ b/3.4 Create login and error page/nbproject/ant-deploy.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/3.4 Create login and error page/nbproject/build-impl.xml b/3.4 Create login and error page/nbproject/build-impl.xml
new file mode 100644
index 0000000..3d19f35
--- /dev/null
+++ b/3.4 Create login and error page/nbproject/build-impl.xml
@@ -0,0 +1,1427 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set src.dir
+ Must set test.src.dir
+ Must set build.dir
+ Must set build.web.dir
+ Must set build.generated.dir
+ Must set dist.dir
+ Must set build.classes.dir
+ Must set dist.javadoc.dir
+ Must set build.test.classes.dir
+ Must set build.test.results.dir
+ Must set build.classes.excludes
+ Must set dist.war
+
+
+
+
+
+
+
+
+
+The Java EE server classpath is not correctly set up - server home directory is missing.
+Either open the project in the IDE and assign the server or setup the server classpath manually.
+For example like this:
+ ant -Dj2ee.server.home=<app_server_installation_directory>
+
+
+The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
+Either open the project in the IDE and assign the server or setup the server classpath manually.
+For example like this:
+ ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
+or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No tests executed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+The libs.CopyLibs.classpath property is not set up.
+This property must point to
+org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
+of NetBeans IDE installation and is usually located at
+<netbeans_installation>/java<version>/ant/extra folder.
+Either open the project in the IDE and make sure CopyLibs library
+exists or setup the property manually. For example like this:
+ ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set JVM to use for profiling in profiler.info.jvm
+ Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.jsp.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select a file in the IDE or set jsp.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
+
+
+ Launching ${browse.url}
+
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+ Must set fix.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set test.includes
+
+
+
+ Some tests failed; see details above.
+
+
+
+ Must select some files in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+ Must select one file in the IDE or set test.class
+
+
+
+ Must select one file in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/3.4 Create login and error page/nbproject/genfiles.properties b/3.4 Create login and error page/nbproject/genfiles.properties
new file mode 100644
index 0000000..276faf3
--- /dev/null
+++ b/3.4 Create login and error page/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=4e366902
+build.xml.script.CRC32=57832f0c
+build.xml.stylesheet.CRC32=1707db4f@1.89.0.1
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=4e366902
+nbproject/build-impl.xml.script.CRC32=294f5c23
+nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.89.0.1
diff --git a/3.4 Create login and error page/nbproject/private/private.properties b/3.4 Create login and error page/nbproject/private/private.properties
new file mode 100644
index 0000000..838b09e
--- /dev/null
+++ b/3.4 Create login and error page/nbproject/private/private.properties
@@ -0,0 +1,4 @@
+deploy.ant.properties.file=C:\\Users\\Kurade\\AppData\\Roaming\\NetBeans\\13\\tomcat90.properties
+j2ee.server.home=C:/Tomcat
+j2ee.server.instance=tomcat90:home=C:\\Tomcat
+user.properties.file=C:\\Users\\Kurade\\AppData\\Roaming\\NetBeans\\13\\build.properties
diff --git a/3.4 Create login and error page/nbproject/private/private.xml b/3.4 Create login and error page/nbproject/private/private.xml
new file mode 100644
index 0000000..6919199
--- /dev/null
+++ b/3.4 Create login and error page/nbproject/private/private.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ file:/D:/AJP/Exp45/web/index.html
+ file:/D:/AJP/Exp45/web/WEB-INF/web.xml
+ file:/D:/AJP/Exp45/src/java/UserProfile.java
+ file:/D:/AJP/Exp45/src/java/LoginClass.java
+ file:/D:/AJP/Exp45/web/errorpage.html
+
+
+
diff --git a/3.4 Create login and error page/nbproject/project.properties b/3.4 Create login and error page/nbproject/project.properties
new file mode 100644
index 0000000..a03129a
--- /dev/null
+++ b/3.4 Create login and error page/nbproject/project.properties
@@ -0,0 +1,84 @@
+annotation.processing.enabled=true
+annotation.processing.enabled.in.editor=true
+annotation.processing.processors.list=
+annotation.processing.run.all.processors=true
+annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
+build.classes.dir=${build.web.dir}/WEB-INF/classes
+build.classes.excludes=**/*.java,**/*.form
+build.dir=build
+build.generated.dir=${build.dir}/generated
+build.generated.sources.dir=${build.dir}/generated-sources
+build.test.classes.dir=${build.dir}/test/classes
+build.test.results.dir=${build.dir}/test/results
+build.web.dir=${build.dir}/web
+build.web.excludes=${build.classes.excludes}
+client.urlPart=
+compile.jsps=false
+conf.dir=${source.root}/conf
+debug.classpath=${build.classes.dir}:${javac.classpath}
+debug.test.classpath=\
+ ${run.test.classpath}
+display.browser=true
+# Files to be excluded from distribution war
+dist.archive.excludes=
+dist.dir=dist
+dist.ear.war=${dist.dir}/${war.ear.name}
+dist.javadoc.dir=${dist.dir}/javadoc
+dist.war=${dist.dir}/${war.name}
+endorsed.classpath=\
+ ${libs.javaee-endorsed-api-7.0.classpath}
+excludes=
+includes=**
+j2ee.compile.on.save=true
+j2ee.copy.static.files.on.save=true
+j2ee.deploy.on.save=true
+j2ee.platform=1.7-web
+j2ee.platform.classpath=${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-ssi.jar:${j2ee.server.home}/lib/catalina-storeconfig.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/catalina.jar:${j2ee.server.home}/lib/ecj-4.20.jar:${j2ee.server.home}/lib/el-api.jar:${j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:${j2ee.server.home}/lib/jaspic-api.jar:${j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/servlet-api.jar:${j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:${j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-cs.jar:${j2ee.server.home}/lib/tomcat-i18n-de.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:${j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:${j2ee.server.home}/lib/tomcat-i18n-ko.jar:${j2ee.server.home}/lib/tomcat-i18n-pt-BR.jar:${j2ee.server.home}/lib/tomcat-i18n-ru.jar:${j2ee.server.home}/lib/tomcat-i18n-zh-CN.jar:${j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-jni.jar:${j2ee.server.home}/lib/tomcat-util-scan.jar:${j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat-websocket.jar:${j2ee.server.home}/lib/websocket-api.jar
+j2ee.server.type=Tomcat
+jar.compress=false
+javac.classpath=
+# Space-separated list of extra javac options
+javac.compilerargs=
+javac.debug=true
+javac.deprecation=false
+javac.processorpath=\
+ ${javac.classpath}
+javac.source=1.7
+javac.target=1.7
+javac.test.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+javac.test.processorpath=\
+ ${javac.test.classpath}
+javadoc.additionalparam=
+javadoc.author=false
+javadoc.encoding=${source.encoding}
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.preview=true
+javadoc.private=false
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+lib.dir=${web.docbase.dir}/WEB-INF/lib
+no.dependencies=false
+persistence.xml.dir=${conf.dir}
+platform.active=default_platform
+resource.dir=setup
+run.test.classpath=\
+ ${javac.test.classpath}:\
+ ${build.test.classes.dir}
+# Space-separated list of JVM arguments used when running a class with a main method or a unit test
+# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
+runmain.jvmargs=
+source.encoding=UTF-8
+source.root=src
+src.dir=${source.root}/java
+test.src.dir=test
+war.content.additional=
+war.ear.name=${war.name}
+war.name=Exp45.war
+web.docbase.dir=web
+webinf.dir=web/WEB-INF
diff --git a/3.4 Create login and error page/nbproject/project.xml b/3.4 Create login and error page/nbproject/project.xml
new file mode 100644
index 0000000..e0d31b1
--- /dev/null
+++ b/3.4 Create login and error page/nbproject/project.xml
@@ -0,0 +1,18 @@
+
+
+ org.netbeans.modules.web.project
+
+
+ Exp45
+ 1.6.5
+
+
+
+
+
+
+
+
+
+
+
diff --git a/3.4 Create login and error page/src/conf/MANIFEST.MF b/3.4 Create login and error page/src/conf/MANIFEST.MF
new file mode 100644
index 0000000..59499bc
--- /dev/null
+++ b/3.4 Create login and error page/src/conf/MANIFEST.MF
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
diff --git a/3.4 Create login and error page/src/java/LoginClass.java b/3.4 Create login and error page/src/java/LoginClass.java
new file mode 100644
index 0000000..905a65c
--- /dev/null
+++ b/3.4 Create login and error page/src/java/LoginClass.java
@@ -0,0 +1,29 @@
+import java.io.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+public class LoginClass extends HttpServlet{
+ protected void doPost(HttpServletRequest request,HttpServletResponse response)
+ throws IOException,ServletException{
+ response.setContentType("text/html;charset=UTF-8");
+ PrintWriter out = response.getWriter();
+
+ try{
+ String username=request.getParameter("username");
+ String password=request.getParameter("password");
+
+ if(username.equals("Haresh")&&password.equals("Kurade@555")){
+ RequestDispatcher rd = request.getRequestDispatcher("/WelcomeUser");
+ rd.forward(request, response);
+ }
+ else{
+ RequestDispatcher rd = request.getRequestDispatcher("/errorpage.html");
+ rd.forward(request, response);
+ }
+ }
+ finally{
+ out.close();
+ }
+ }
+
+}
diff --git a/3.4 Create login and error page/src/java/UserProfile.java b/3.4 Create login and error page/src/java/UserProfile.java
new file mode 100644
index 0000000..b286169
--- /dev/null
+++ b/3.4 Create login and error page/src/java/UserProfile.java
@@ -0,0 +1,27 @@
+import java.io.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+public class UserProfile extends HttpServlet {
+ protected void doPost(HttpServletRequest request, HttpServletResponse response)
+ throws IOException,ServletException{
+ response.setContentType("text/html;charset=UTF-8");
+ PrintWriter out = response.getWriter();
+
+ try{
+ String username = request.getParameter("username");
+ String password = request.getParameter("password");
+
+ out.print("Welcome
");
+ out.print("
");
+ out.print("Your Information is....");
+ out.print("Username...."+username);
+ out.print("
");
+ out.print("Password...."+password);
+ }
+ finally{
+ out.close();
+ }
+ }
+}
+
diff --git a/3.4 Create login and error page/web/META-INF/context.xml b/3.4 Create login and error page/web/META-INF/context.xml
new file mode 100644
index 0000000..2e70f7b
--- /dev/null
+++ b/3.4 Create login and error page/web/META-INF/context.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/3.4 Create login and error page/web/WEB-INF/web.xml b/3.4 Create login and error page/web/WEB-INF/web.xml
new file mode 100644
index 0000000..f50526d
--- /dev/null
+++ b/3.4 Create login and error page/web/WEB-INF/web.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ LoginServlet
+ LoginClass
+
+
+
+ LoginServlet
+ /login
+
+
+
+ UserProfileServlet
+ UserProfile
+
+
+
+ UserProfileServlet
+ /WelcomeUser
+
+
+
+
+ 30
+
+
+
+
diff --git a/3.4 Create login and error page/web/errorpage.html b/3.4 Create login and error page/web/errorpage.html
new file mode 100644
index 0000000..5ef227a
--- /dev/null
+++ b/3.4 Create login and error page/web/errorpage.html
@@ -0,0 +1,11 @@
+
+
+
+ Error...!
+
+
+
+
+ Authentication Failure
+
+
diff --git a/3.4 Create login and error page/web/index.html b/3.4 Create login and error page/web/index.html
new file mode 100644
index 0000000..7a68f47
--- /dev/null
+++ b/3.4 Create login and error page/web/index.html
@@ -0,0 +1,15 @@
+
+
+
+ Experiment 4.5
+
+
+
+
+
+
+