This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit form problem

 
D Wynn
Ranch Hand
Posts: 38
  • 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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's set to POST...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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
  • 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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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
  • 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
  • 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: 20771
30
Eclipse IDE Firefox Browser MySQL Database
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic