Re: Tomcat - disable servlet access

From: asaguden (asaguden_at_lycos.com)
Date: 03/05/05

  • Next message: jimjim: "question concerning downcast"
    Date: 5 Mar 2005 12:02:19 -0800
    
    

    Daniel, thank you.

    After your post I reread the hosting support info regarding jsp.
    <quote>
    ...as JSP angine Tomcat is used, connected through AJP13 connector
       and mod_jk to Apache...
    </unquote>

    I finally get it.
    It is not Tomcat that refuses to deliver servlets,
    those requests are filtered in Apache somehow. Can i 'fake' a servlet
    as jsp and get away with it?
    That is - can I write a servlet that does not get filtered?

    I am thankful for all input.

    Daniel Tryba wrote:
    > asaguden <asaguden@lycos.com> wrote:
    > > Thank you for a reply.
    > > (i dont know what TOFU is..)
    >
    > Top Over Full Underquote.
    >
    > > Well asking the provider I could do - but for now my pride holding
    me
    > > back...
    >
    > :)
    >
    > > The thing is I do use jsp - for presentation. I would like to / and
    do
    > > use servlets
    > [snip]
    > > Then releasing to production - the problems arises, it is just a
    > > pain... And since I have th same version of Tomcat againt the same
    > > version of mysql locally as prod, the need for testing in prod is
    > > minimal..
    >
    > You aren't answering the important question: is a browser accessing a
    > jsp making a direct connection to tomcat?
    >
    > I ask this since you haven't made clear what happens when you try to
    > access a servlet! The simplest way for a provider to block access to
    > servlets is to simply filter those requests (trivial with a proxy or
    > something like mod-jk), but that leaves full control to jsp


  • Next message: jimjim: "question concerning downcast"

    Relevant Pages

    • Re: Servlets, Threads & Co.
      ... Werden diese Methoden von Tomcat nur von einen Thread aufgerufen oder muss man hier auf die Synchron. ... Gilt die Antwort nur für Servlets oder ist bei JSP und bei der Tag-lib das gleiche zu beachten? ... Eine JSP ist nach dem kompilieren beim ausführen sowieso eigentlich ein Servlet, also unterliegt es den selben Regeln. ...
      (de.comp.lang.java)
    • Re: setting up a servlet on unix/tomcat..
      ... >> dynamic content by Tomcat. ... > Oscar, thank you very much for your help.. ... > me they have other clients running servlets fine.. ... getting a jsp and servlets running using the first URL and report the ...
      (comp.lang.java.help)
    • Re: jsp for IIS
      ... I suggest a setup similar to that ive used for learning. ... This has worked well for jsp pages, servlets and beans. ... > containers like Tomcat or Jetty. ...
      (comp.lang.java)
    • Re: Starting with JSP files
      ... I think it is generally much more difficult to write web applications for tomcat without using JSP. ... Generally, best way to go is to use MVC framework like struts and write Model / Controller as java classes and servlets and Views as JSP, with JSTL - tag libraries (mostly without <% ... ... I think after little practice it is as easy as PHP. ...
      (comp.lang.java.help)
    • Re: how can I put jsp files with html files
      ... >> connector. ... >> the JSP pages are in the Tomcat directory. ... It's a fairly standard configuration, ...
      (comp.lang.java.programmer)