View Full Version : first jsp page.
05-03-2008, 03:08 PM
Im trying to create a JSP page which validates a form so that it only submits if the first of the two student number fields is numeric, 8 digits long and that the two copies of the student number are the same. Then either displays a mailto: link to the supplied email address if the form parameters are valid or an error message describing the error. This is the first time ive tried this and was wondering if you could tell me whether this looks correct or perhaps give me some pointers?
05-03-2008, 09:54 PM
did you deploy it and test it with a few testcases? like for example what happens when you submit the form without filling in the either of the student numbers?
05-04-2008, 03:56 PM
i tested this, but whenever it submits (with all of the correct information) i get the jsp code printed in internet explorer. i dont know if this has anything to do with it but i dont have dreamweaver on this pc so ive simply copy and pasted the code into notepad and then saved it as a jsp file?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.