Re: Why am I getting a Javascript file instead of my servlet ?
Sounds like you may have a: script language=JavaScript src=filename.js statement in your returned HTML code.. and the .js file can not be found... hope that helps. Cj James Adams wrote: I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especially since the Javascript is working as it should. I should instead be forwarded to the servlet which will handle the form parameters. Can anyone suggest ways to find out what is going wrong ? Thanks in advance for any suggestions... -James -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Why am I getting a Javascript file instead of my servlet ?
I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especially since the Javascript is working as it should. I should instead be forwarded to the servlet which will handle the form parameters. Can anyone suggest ways to find out what is going wrong ? Thanks in advance for any suggestions... -James -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Why am I getting a Javascript file instead of my servlet ?
First suggestion: Eliminate the JavaScript. Our developers (myself included) have had plenty of problems with variables named action resetting the URL that the form posts to. Also, try posting to different things - a non-existent HTML file to start with and check what URL is requested. This should help you track down whether its client side or server side that is messing things up. Randy -Original Message- From: James Adams [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:55 PM To: [EMAIL PROTECTED] Subject: Why am I getting a Javascript file instead of my servlet ? I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especially since the Javascript is working as it should. I should instead be forwarded to the servlet which will handle the form parameters. Can anyone suggest ways to find out what is going wrong ? Thanks in advance for any suggestions... -James -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Why am I getting a Javascript file instead of my servlet ?
First suggestion: Eliminate the JavaScript. Our developers (myself included) have had plenty of problems with variables named action resetting the URL that the form posts to. JavaScript itself isn't too bad. It's very useful to add interaction to a page. Just don't try having a JavaScript variable named item when using Internet Explorer. -- D. Jay Newman ! // The worst possible legal hashCode [EMAIL PROTECTED]! public int hashCode() { return 42;} http://www.sprucegrove.com/~jay/ !-- _Effective Java_ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Why am I getting a Javascript file instead of my servlet ?
-Original Message- From: D. Jay Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:03 PM To: [EMAIL PROTECTED] Subject: Re: Why am I getting a Javascript file instead of my servlet ? First suggestion: Eliminate the JavaScript. Our developers (myself included) have had plenty of problems with variables named action resetting the URL that the form posts to. JavaScript itself isn't too bad. It's very useful to add interaction to a page. I wasn't saying JavaScript was bad or should be gotten rid of - I was suggesting dumping all of the JavaScript as a first step to figuring out where the problem is (division of one large problem into areas to limit the amount of code to be examined). -- D. Jay Newman ! // The worst possible legal hashCode [EMAIL PROTECTED]! public int hashCode() { return 42;} http://www.sprucegrove.com/~jay/ !-- _Effective Java_ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Why am I getting a Javascript file instead of my servlet ?
I wasn't saying JavaScript was bad or should be gotten rid of - I was suggesting dumping all of the JavaScript as a first step to figuring out where the problem is (division of one large problem into areas to limit the amount of code to be examined). Very true. -- D. Jay Newman ! // The worst possible legal hashCode [EMAIL PROTECTED]! public int hashCode() { return 42;} http://www.sprucegrove.com/~jay/ !-- _Effective Java_ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Why am I getting a Javascript file instead of my servlet ?
From my experience you might be facing this problem with Netscape browser. If you try the same with explorer you may not face this problem. This is only one possibility I know. There may be some other reasons which I cannot guess. Ok, lets c if you can access your page through IE( thought IE says that there are errors in page) and not through Netscape, that means in the result page you have a wrong path to your javascript file. Its always possible when you use a relative path in your servlet or jsp output page and use servlet to get that page. I would rather use %=request.getContextPath()%/javascriptDirectory/myjsfile.js instead of some thing like ../../javascriptDirectory/myjsfile.js hope this helps, Raj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James Adams Sent: Wednesday, November 14, 2001 10:55 AM To: [EMAIL PROTECTED] Subject: Why am I getting a Javascript file instead of my servlet ? I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especially since the Javascript is working as it should. I should instead be forwarded to the servlet which will handle the form parameters. Can anyone suggest ways to find out what is going wrong ? Thanks in advance for any suggestions... -James -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]