aspose file tools*
The moose likes Servlets and the fly likes submit form problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "submit form problem" Watch "submit form problem" New topic
Author

submit form problem

D Wynn
Ranch Hand

Joined: May 03, 2004
Posts: 38
Hello--
Here's the problem...I have a servlet that makes a call to the database and displays the data (flight route info)...well the route numbers that are returned from the database are links the user can click on to get more detail information about the routes or the user has the option of using check boxes to select multipliable routes to see detail info about many different routes...to see more than one route, after selecting them with the check boxes the user has to hit the Submit button to get the detail info...here's my problem...the Submit button works fine if there is only a couple of routes on the page but if there are alot of routes (more the 20 - 30) the Submit button does not work...it does nothing it does not even try to process...but I have javascript to validate my screen and it works but thats it. I'm lost!!! I've tried everything I could think of with no luck...anybody have any ideas??

Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

(there's a HTML/Javascript forum)

Is your form's method set to GET ?
If it is GET, I think that you are limited to 255 bytes.
Set your form's method to POST.


[My Blog]
All roads lead to JavaRanch
D Wynn
Ranch Hand

Joined: May 03, 2004
Posts: 38
It's set to POST...
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Are you doing anything special in Javascript ?
Do you have an onClick handler on your submit button ?
D Wynn
Ranch Hand

Joined: May 03, 2004
Posts: 38
Yeah...onclick of the Submit button I validate my form...and all I'm doing there is making sure the user has a check box selected...
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Make sure that there's no miss in your javascript first
D Wynn
Ranch Hand

Joined: May 03, 2004
Posts: 38
did that...don't forget it works when the results from the database are not very big...
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
Are you generating HTML Form dyanamically. When the you have large dataset check the html source and verify it is generated correctly


Sarath Mohan
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18657
    
    8

Originally posted by D Wynn:
did that...don't forget it works when the results from the database are not very big...
So what gets sent to your servlet when there are a lot of routes? Anything? All or partial data? Or does the servlet not even get called?

And just to be clear: this servlet is the one that's supposed to be called when you click on Submit, right? Not the one that's generating the HTML that includes the Submit button? Or does the one servlet do both tasks?
 
Don't get me started about those stupid light bulbs.
 
subject: submit form problem