my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes Why Two Forms Post Differently Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Why Two Forms Post Differently" Watch "Why Two Forms Post Differently" New topic
Author

Why Two Forms Post Differently

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1254
I have two forms. One is used to initally add data the other to Update data. Both use the same code to post to the servlet however the add servlet will crash if the parameter sent has more than approx 1500 characters while the update servlet will work when the parameter characters is in excess of 6500 characters(does not seem to have a limit).

The add form:


The update form:


My add sevlet code:


My update Servlet code:
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56224
    
  13

document.adddetailform.metdod="post";


What is a metdod?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1254
It's an alternate spelling for method. Javascript is supposed to know that! I looked at this for at least three hours yesterday and never looked or even thought about a mis-spelled word in the code. I will be glad when I get through with this project. I am going stir crazy. I have executed the app almost 1100 times in the past two weeks, testing, adjusting, etc.

Thanks again.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56224
    
  13

I call it the "What's that semi-colon doing therre?" syndrome.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Why Two Forms Post Differently
 
Similar Threads
Does getParameterValues have a Limit
Using a Session Attribute in another Servlet
Open File in New Browse Window
How to Detect a File not Found
Checking for none existing Attribute