File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit form problem

 
D Wynn
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(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.
 
D Wynn
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's set to POST...
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you doing anything special in Javascript ?
Do you have an onClick handler on your submit button ?
 
D Wynn
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that there's no miss in your javascript first
 
D Wynn
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did that...don't forget it works when the results from the database are not very big...
 
Sarath Mohan
Ranch Hand
Posts: 213
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you generating HTML Form dyanamically. When the you have large dataset check the html source and verify it is generated correctly
 
Paul Clapham
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic