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
posted
0
You seem to have alot of confusion about JavaScript.
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
posted
0
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
posted
0
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.