Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: first jsp page.

  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    first jsp page.

    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?
    Last edited by itgetsharder10; 05-04-2008 at 06:42 PM.

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    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?
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

    thanks again.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •