File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes onsubmit doesn't work with Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "onsubmit doesn Watch "onsubmit doesn New topic
Author

onsubmit doesn't work with Tomcat

Kristof Camelbeke
Ranch Hand

Joined: Nov 28, 2001
Posts: 97
Hello,
I have created a jsp which uses javascript :

When I run it under a Weblogic server the validation of CheckForm works... But when I run it under Tomcat it doesn't do any validation at all !! Has anybody a clue what could be the problem... Thanks !
Kristof
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

If the page is being correctly sent to the browser, there's got to be some other variable at work here. Client-side JavaScript is handled completely by the browser and is orthogonal to the server that delivered the page.
First step should be to make sure that identical HTML is begin sent to the browser by each server. If they are the same, then the choice of server cannot be the problem.
hth,
bear
P.S. Be especially sure to check the format of the <form> tag. Since it is being generated by a custom tag, it could be suspect.
[ March 03, 2003: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: onsubmit doesn't work with Tomcat
 
Threads others viewed
alert problem
JSP Forms Text box
XSLT not working in Safari Browser :(((
consult and doubt Javascript Best Practices number 5
javascript doesn't work in onsubmit in html:form
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture