For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 3 voices, and was last updated 20 years, 11 months ago by
ftourand.
-
AuthorPosts
-
ftourandMemberThis message has not been recovered.
September 26, 2005 at 1:10 pm #238141
Riyad KallaMemberThis message has not been recovered.
September 27, 2005 at 11:50 pm #238240
ftourandMemberThis message has not been recovered.
September 28, 2005 at 3:25 am #238248
GregMemberThis message has not been recovered.
September 28, 2005 at 6:17 am #238255
ftourandMemberThis message has not been recovered.
September 28, 2005 at 8:35 am #238265
Riyad KallaMemberThis message has not been recovered.
September 29, 2005 at 11:15 pm #238429
Riyad KallaMember1) I unzipped both your projects and imported them into my workspace, they both built without any compiler errors.
2) I double checked the Project Properties > MyEclipse-Web settings on both projects, myEclipse-Test01 was fine, however Session 2 bis had spaces in the Web Context-root, so I changed this simply to: /session2
3) Now I opened the web.xml files of both your projects to make sure everything is setup correctly. Your test01 project has a welcome-file list mapping to “login.jsp”, however you do NOT have a single JSP file in the web root of that project, the only file you have is Systonomy.jpg. This project is empty, no matter if you deploy this project or not there is no JSP file to load, so that clears up that problem.
4) Now looking at your session2 web.xml you have a welcome file list mapping to ValidationPinServlet, I have no idea why, infact I don’t think it’s valid. By setting your welcome file list you are NOT redirecting people to this page, you are simply telling Tomcat to host up that a certain file if it finds it by default, in your case you specified a servelt, which doesn’t work.
5) You have mapped your servlets to their default locations, which as far as I can tell doesn’t work, I changed your VAlidat mapping to this:<servlet-mapping> <servlet-name>ValidatePinServlet</servlet-name> <url-pattern>/ValidatePinServlet</url-pattern> </servlet-mapping>And then changed your jSP to this:
<FORM ACTION="ValidatePinServlet" METHOD=POST> <TABLE BORDER=0 CELLPADDING=3> <TR> <TD>Numéro de compte :</TD> <TD><INPUT TYPE="TEXT" NAME="acctno" SIZE="16"></TD> </TR> <TR> <TD>Numéro de PIN :</TD> <TD><INPUT TYPE="PASSWORD" NAME="PIN" SIZE="4"> <INPUT TYPE="SUBMIT" VALUE="OK"> </TD> </TR> </TABLE> </FORM>Previously you were trying to map your FORM to “ValidatingPinServlet”, the name you used in the web.xml file, but the NAME you assign it is only used for resolving the servlet in the web.xml file, not it’s path like you need to do here in this form.
I will stop here, it seems to me you are getting started with web programming and just had a lot of things wrong that together were making this entire process seem broken, please try and read through the J2EE 1.4 tutorial and other resources, web development can really be a nightmare if you don’t get good resources to help you along the way.
September 30, 2005 at 2:09 am #238441
ftourandMemberThanks for your time.
I will follow your advises.
Regards
Frederic -
AuthorPosts
