Results 1 to 6 of 6

Thread: JSP filetype

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    JSP filetype

    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

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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.

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    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:
    Code:
    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"
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    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.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    So Apache was irrelevant, wasn't it?

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width