PDA

Click to See Complete Forum and Search --> : JSP filetype


alex_read
Nov 17th, 2004, 09:26 AM
Hi all!!!

I've got apache tomecat installed (alongside of IIS on the same server, for reasons I won't go into)! and when I try & click a link which goes to a *.JSP file, I get the box asking me which application I'd like to run this filetype with - what shall I choose please?

Thanks,
Alex

mendhak
Nov 17th, 2004, 09:55 AM
Erm, I'm no JSPer, but your web server is supposed to be handling the .JSP files. You'll need to configure your web server for that.

Don't ask me how though... CornedBee might know. :)

visualAd
Nov 17th, 2004, 10:09 AM
You need to pass the jsp script onto the JSP interpreter. Again I don't program in JSP but you would edit the httpd.conf file adding the following settings:

AddType application/x-httpd-jsp-script .jsp

ScriptAlias /jsp/ "C:/path/to/jsp/interpreter/directory/"
Action application/x-httpd-jsp-script "/jsp/jsp_interpreter.exe"

alex_read
Nov 17th, 2004, 10:26 AM
Ok, that was a lot harder thank it should've been!!! It's ok thanks people - I needed an ISAPI redirect dll to configure IIS to allow the jsp pages to be executed.

mendhak
Nov 17th, 2004, 11:56 PM
So Apache was irrelevant, wasn't it? :D

CornedBee
Nov 18th, 2004, 04:50 AM
Well, you have methods.

First, you can contact Tomcat directly. It should take requests on port 8080 by default.

Second, and better in a production environment, you can redirect IIS requests to Tomcat. The tricky part about this is configuring Tomcat so that it uses the same web directory as IIS.

Third, and best, is not to use IIS but Apache and using mod_jk or mod_jk2 for the redirect. I believe this to be a good deal faster.

Again I don't program in JSP but you would edit the httpd.conf file adding the following settings
JSP works quite differently from other server-side scripts, though.