aspose file tools*
The moose likes JSP and the fly likes window.showModalWindow problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "window.showModalWindow problem" Watch "window.showModalWindow problem" New topic
Author

window.showModalWindow problem

Veshnu Ramakrishnan
Ranch Hand

Joined: Sep 27, 2005
Posts: 44
Hi
I have a code in my jsp page which would open a modal window.

window.showModalWindow("/jsps/something.jsp");
The path of the page is correct. If i run this code the modal window shows the jsp code instead of compiled html. it treats as a text file. but i have set the content-type of the file to be "text/html". It works in my development box which is a windows machine. but not in my production box with is a sun machine. can anyone help me in this.


Veshnu<br />SCBCD<br />SCWCD<br />SCJP
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
You seem to have alot of confusion about JavaScript.

1) JavaScript has nothing to do with Java or JSP

2) JavaScript runs on the client not the server.

3) It's possible your webserver is misconfigured. But I have some doubts that you are looking at the right thing here.
Veshnu Ramakrishnan
Ranch Hand

Joined: Sep 27, 2005
Posts: 44
I know what javascript and jsps are. But i just don't know how a jsp file is sent across wire without compilation and generation of HTML. It is considered as a text file. There are two machines both of same configuration with same build. but this happens only in one machine.
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Originally posted by Veshnu Ramakrishnan:
I know what javascript and jsps are. But i just don't know how a jsp file is sent across wire without compilation and generation of HTML. It is considered as a text file. There are two machines both of same configuration with same build. but this happens only in one machine.


But this has nothing to with JavaScript whatsoever! Surely you would know that.

This is a webserver issue. Namely it is serving a request for your jsp page by sending the raw source rather than sending it along to the JSP engine.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Moving to JSP since it is a server problem...

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

What happens if you type the URL to the JSP directly in the browser? Does it get served correctly?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: window.showModalWindow problem