Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-03-2008, 02:08 PM   PM User | #1
itgetsharder10
New to the CF scene

 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
itgetsharder10 is an unknown quantity at this point
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 05:42 PM..
itgetsharder10 is offline   Reply With Quote
Old 05-03-2008, 08:54 PM   PM User | #2
shyam
Senior Coder

 
shyam's Avatar
 
Join Date: Jul 2005
Posts: 1,563
Thanks: 2
Thanked 163 Times in 160 Posts
shyam will become famous soon enough
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
shyam is offline   Reply With Quote
Old 05-04-2008, 02:56 PM   PM User | #3
itgetsharder10
New to the CF scene

 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
itgetsharder10 is an unknown quantity at this point
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.
itgetsharder10 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:53 PM.


Advertisement
Log in to turn off these ads.