From c6f0673084466fac507104decd13fd6912b44697 Mon Sep 17 00:00:00 2001 From: Haresh Date: Fri, 28 Oct 2022 18:52:39 +0530 Subject: [PATCH] Experiments 3.3 and 3.4 --- 3.3 Create html validations page/build.xml | 71 + .../build/web/META-INF/MANIFEST.MF | 2 + .../build/web/META-INF/context.xml | 2 + .../WEB-INF/classes/.netbeans_automatic_build | 0 .../classes/.netbeans_update_resources | 0 .../web/WEB-INF/classes/LoginClass.class | Bin 0 -> 1726 bytes .../build/web/WEB-INF/web.xml | 24 + .../build/web/index.html | 16 + .../nbproject/ant-deploy.xml | 57 + .../nbproject/build-impl.xml | 1427 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 4 + .../nbproject/private/private.xml | 11 + .../nbproject/project.properties | 84 + .../nbproject/project.xml | 18 + .../src/conf/MANIFEST.MF | 2 + .../src/java/LoginClass.java | 26 + .../web/META-INF/context.xml | 2 + .../web/WEB-INF/web.xml | 24 + .../web/index.html | 16 + 3.4 Create login and error page/build.xml | 71 + .../build/web/META-INF/MANIFEST.MF | 2 + .../build/web/META-INF/context.xml | 2 + .../WEB-INF/classes/.netbeans_automatic_build | 0 .../classes/.netbeans_update_resources | 0 .../web/WEB-INF/classes/LoginClass.class | Bin 0 -> 1724 bytes .../web/WEB-INF/classes/UserProfile.class | Bin 0 -> 1595 bytes .../build/web/WEB-INF/web.xml | 35 + .../build/web/errorpage.html | 11 + .../build/web/index.html | 15 + .../nbproject/ant-deploy.xml | 57 + .../nbproject/build-impl.xml | 1427 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 4 + .../nbproject/private/private.xml | 13 + .../nbproject/project.properties | 84 + .../nbproject/project.xml | 18 + .../src/conf/MANIFEST.MF | 2 + .../src/java/LoginClass.java | 29 + .../src/java/UserProfile.java | 27 + .../web/META-INF/context.xml | 2 + .../web/WEB-INF/web.xml | 35 + .../web/errorpage.html | 11 + .../web/index.html | 15 + 44 files changed, 3662 insertions(+) create mode 100644 3.3 Create html validations page/build.xml create mode 100644 3.3 Create html validations page/build/web/META-INF/MANIFEST.MF create mode 100644 3.3 Create html validations page/build/web/META-INF/context.xml create mode 100644 3.3 Create html validations page/build/web/WEB-INF/classes/.netbeans_automatic_build create mode 100644 3.3 Create html validations page/build/web/WEB-INF/classes/.netbeans_update_resources create mode 100644 3.3 Create html validations page/build/web/WEB-INF/classes/LoginClass.class create mode 100644 3.3 Create html validations page/build/web/WEB-INF/web.xml create mode 100644 3.3 Create html validations page/build/web/index.html create mode 100644 3.3 Create html validations page/nbproject/ant-deploy.xml create mode 100644 3.3 Create html validations page/nbproject/build-impl.xml create mode 100644 3.3 Create html validations page/nbproject/genfiles.properties create mode 100644 3.3 Create html validations page/nbproject/private/private.properties create mode 100644 3.3 Create html validations page/nbproject/private/private.xml create mode 100644 3.3 Create html validations page/nbproject/project.properties create mode 100644 3.3 Create html validations page/nbproject/project.xml create mode 100644 3.3 Create html validations page/src/conf/MANIFEST.MF create mode 100644 3.3 Create html validations page/src/java/LoginClass.java create mode 100644 3.3 Create html validations page/web/META-INF/context.xml create mode 100644 3.3 Create html validations page/web/WEB-INF/web.xml create mode 100644 3.3 Create html validations page/web/index.html create mode 100644 3.4 Create login and error page/build.xml create mode 100644 3.4 Create login and error page/build/web/META-INF/MANIFEST.MF create mode 100644 3.4 Create login and error page/build/web/META-INF/context.xml create mode 100644 3.4 Create login and error page/build/web/WEB-INF/classes/.netbeans_automatic_build create mode 100644 3.4 Create login and error page/build/web/WEB-INF/classes/.netbeans_update_resources create mode 100644 3.4 Create login and error page/build/web/WEB-INF/classes/LoginClass.class create mode 100644 3.4 Create login and error page/build/web/WEB-INF/classes/UserProfile.class create mode 100644 3.4 Create login and error page/build/web/WEB-INF/web.xml create mode 100644 3.4 Create login and error page/build/web/errorpage.html create mode 100644 3.4 Create login and error page/build/web/index.html create mode 100644 3.4 Create login and error page/nbproject/ant-deploy.xml create mode 100644 3.4 Create login and error page/nbproject/build-impl.xml create mode 100644 3.4 Create login and error page/nbproject/genfiles.properties create mode 100644 3.4 Create login and error page/nbproject/private/private.properties create mode 100644 3.4 Create login and error page/nbproject/private/private.xml create mode 100644 3.4 Create login and error page/nbproject/project.properties create mode 100644 3.4 Create login and error page/nbproject/project.xml create mode 100644 3.4 Create login and error page/src/conf/MANIFEST.MF create mode 100644 3.4 Create login and error page/src/java/LoginClass.java create mode 100644 3.4 Create login and error page/src/java/UserProfile.java create mode 100644 3.4 Create login and error page/web/META-INF/context.xml create mode 100644 3.4 Create login and error page/web/WEB-INF/web.xml create mode 100644 3.4 Create login and error page/web/errorpage.html create mode 100644 3.4 Create login and error page/web/index.html 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 0000000000000000000000000000000000000000..155b4a635c5639151948686cd42adb0b06c9c6a7 GIT binary patch literal 1726 zcma)6T~icC6g>^Q+ru(|8A05{7>tS_;6_N)>>@!41d|mAtQbwIQp3=&V}_Y=K9s!Y zPvjT)>lWk<0}Zr*Dy zOx);38Ql`5i5~O{48I+DRmEZ8$4a1=2y=m-C_icb7;=jnX(gX_Uh!6ff2$qf^F9yic`l?alDm!1}+Qq-%67f zMRgrJaRYy7K8k`!Vw{p44SPFvy-gLBF@{b9Re{2EYjQ>}ubP;|6lvLEsQgWViT@=* z8?de+J~43(*C|L6lIY45}JIk*Otm9gcMvhu=b-DUpSLBLr3Y^0%Uorjb0LzaO$J<<0`4#*Y zFTa3zo|)%3YBNy4=N!%40rObM_P)R(L3mjFgiaXT3&$Js@bMmQ zOzh$2Gnh50Cl&eobH?w(_t;|WEwr+4Cp7PCd`JOFRt7!v%hkhYqZik?nt?^u{X91a z2d8;z5FWn)y>y=6p$m0pbO&ED^9r-==d8%{(>TLfiKj2Lt<1Tthn{_fMy64SyI9J& z*;vL3u>$VrcwaL@6NQ(gAth!dPDzv{ucX8f|G-PSAF||zw(UF$hfWEJ)jwfqYm>+& PM!kpojP`)54m|uD90jF# literal 0 HcmV?d00001 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 + + + + +
+ Username:

+ Password:

+ +
+ + 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 + + + + +
+ Username:

+ Password:

+ +
+ + 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 0000000000000000000000000000000000000000..4ce3583007d94e743671a8d5a976c531a5c276d3 GIT binary patch literal 1724 zcmah}T~`xV6x}ypGlaq52-v7qDT>4Z)7C~UQHn(Eo?i$rTy*1hMRdp`HsbN_kw=U)KsVK0ps;u;bLl1K?$e`&w6 zk1bz%uUay&nnBRDHn>zGg+S_&({X}jf%sf*PlqmWIgrQ7vfV1ynzrZ5;PGyCec|CK z(iqiX7#PC^f!Y6$T$X;Tg{tCg)1Z*J|0FhE)kXr_(6r_Eh+B z0~cWmj5K7h?>T|=Sk7E7GIv~ShqnETqK*jxy~oZvc3X~O3YRr}W+00z0=GX^++k1p zfq=n8JGRFFVXoN^RW@9#j%!TawSE7{_3ApV6UGhOlYTReo0!({g@GB|5*Q!slZNuJ zXSe(T6t)ju%34s&{iI`7ApN4}*>$;6C=_(eu}W)SwrXx$?y_6e>0JYP%nMAg{4xWw zm#2>3wS!tyL00%^8)r-yax0Ev5tfE84Sa>K1#X;&aL8Uj`^EK+Y_Be`5+yu~-ltdJ zsTe}|f!l~89KMck1TvQNJlE^m4Y{c3m&ScO(D2Z}w~ES_LNL#>Kpm&b$7>A zG${}EH~1ZWq|srs(~bpV3c2Y4Xog^B8Rjqp3BDK2UEt0@h~cCmK^RCUMf)G+ryJ^5 z%7?-25rWC6i1Y9>=2#`LYrk&V-4IC)Tki)Ie%;lk=N?74r`L{avKu&j6g2$!-iq;_ zZJ*v~s0=+>eJY*WaLyIC=hfu8qsEyzo7kcv2&S>bCs6%jAU%-c`iLisyWpO@`v=6E z@cJ=VbxkFfxf*@>JFM`Oz!QAWAaoXMh(o9DaNg8TFcQQ32{Hm(dGpcWbgpvEc_y#!^9>gu#ZXlXHmx$dS}t*-o@3h z;WE9S(0>(A3B>-Xl*JG9Tq6WC%yo@YQZS eso}ncoBaO^b6vxxj&0thXuX3ny{kOMu=^jPWW9?3 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..04792aa350e9a1018319b103c47d4d30c802cf31 GIT binary patch literal 1595 zcma)6-**#56#gc^W}9wl*|wA@Vi73`ZMvW$*o2@|DwR+|63XFmn+(lDva`-kpdS1G z_{>W=)pPXSKT5o_o0bAf-G@6r?wxPG@7}xf*WbVW0pLrt^GG4hk+G3Qj^XT6@42_* zMnXOB3+?u_4&6IsTFC}OuIdNAt}&#GrA-SK!<-g7CUVfPbb6kOgud~xy;ip1%APW~5GSw|rvv83FKbAu^zaBi1YT#*K2J?QjOdm&yobP7t*3j>Fh03Fdw1p*- z^l+3CbH;2h+i-E2D(!`#2)YdA|D|#STrm(|*wk8Ik!CHEdNIr#l;vm@EqqM`8l%J{ z1mmT2`NZ#2Lu6KEmxjr@ABc_NU`wdBw`CkoU3R?wrl)+f z9&KiH&yN@;>PIjLGS`(2X=>U`$AkBtjnQjy7{icnQImGWT3o-WBb8V-dBQoY&^u(l6sYjXk*(6o zrIFE?z4Qv~W$eB|*0^aCHL~_-eiPr)DueHEi$LfwyNNV7?d>i(d>>;eEbU{GVPnym z-p6bTE15;-<7AdCJD=>~)3WnnEC?F00JVvJ_y9h#tDe-b53k?fPW3J3QvjTUC; z{2U}s)9E?v(D(~Q8|^j9L;+2TSS97>aR+B;mL<NNppI951LapXC@M2zFEMc12Dr?7zr0W@iqLhB##Igh&l literal 0 HcmV?d00001 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 + + + + +
+ Username:

+ Password:

+ +
+ + 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 + + + + +
+ Username:

+ Password:

+ +
+ +