aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT: Please advise" Watch "URGENT: Please advise" New topic
Author

URGENT: Please advise

Veni Velkoor
Ranch Hand

Joined: Oct 17, 2001
Posts: 65
Hi,
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!
<SCRIPT LANGUAGE="JavaScript">
function newwin(){
win=window.open('start.html');
}
<!-- Hide this script from incompatible web browsers -->
</SCRIPT>
.
.
.
<INPUT TYPE="button" TITLE="Help" NAME="HLP" ID="HLP" VALUE="?" onClick="newwin();">
What am I doing wrong?
Thanks in advance
VV
Maky
Ranch Hand

Joined: Oct 10, 2001
Posts: 53
Instead of
win=window.open('start.html');
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
Mcky!
Thanks thats worked.
V.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT: Please advise