jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes URGENT: Please advise Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT: Please advise" Watch "URGENT: Please advise" New topic

URGENT: Please advise

Veni Velkoor
Ranch Hand

Joined: Oct 17, 2001
Posts: 65
I have a JSP page which has a help button on it. On clicking the button, I want to pop up another small window that contains some HTML text and am having problems doing that. I get the following error
Error 500
An error has occured while processing request:http://veni:8080/servlet/start.html
Message: Server caught unhandled exception from servlet [invoker]: Servlet [start.html]: Could not find required servlet class - start.html.class
I think it is trying to compile the HTML as JSP too, I tried renaming my start.html to start.jsp eventhough there is no jsp code in it still no luck. Attached below is my code...please advise!
function newwin(){
<!-- Hide this script from incompatible web browsers -->
<INPUT TYPE="button" TITLE="Help" NAME="HLP" ID="HLP" VALUE="?" onClick="newwin();">
What am I doing wrong?
Thanks in advance
Ranch Hand

Joined: Oct 10, 2001
Posts: 53
Instead of
put win=window.open('http://veni:8080/start.html');
Put your .html file outside the web-inf/classes folder and link it with an absolute url, rather than a relative url and try !
Veni Velkoor
Ranch Hand

Joined: Oct 17, 2001
Posts: 65
Thanks thats worked.
I agree. Here's the link: http://aspose.com/file-tools
subject: URGENT: Please advise
It's not a secret anymore!