Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: OT: Calling a Servlet from mod-Perl/Apache

by arturo (Vicar)
on Oct 29, 2003 at 20:48 UTC ( #303108=note: print w/replies, xml ) Need Help??

in reply to OT: Calling a Servlet from mod-Perl/Apache

I'm not sure I get the problem. One interpretation is you have something (a static page, CGI / hander generated output) that contains a link to a URL which is in turn handled by a Java servlet ... somewhere else. In which case, a link to the URL handled by that servlet should be sufficient. Another interpretation is that you have the code for a Java servlet that you'd like to be able to execute when someone accesses a specific URL on your site.

Apache httpd can't do this on its own. Java servlets must run inside a servlet container, such as Tomcat. Now, what you can do is set up a servlet container, and set Apache httpd to run "in front of" the servlet container, and to set up Apache to pass requests for certain URLs onto the servlet container. How to do that with Tomcat is documented on the Tomcat site (op cit.); other servlet containers do it in different ways. But a discussion of setting up Tomcat and Apache really is a topic for another site.


If not P, what? Q maybe?
"Sidney Morgenbesser"

  • Comment on Re: OT: Calling a Servlet from mod-Perl/Apache

Replies are listed 'Best First'.
Re: Re: OT: Calling a Servlet from mod-Perl/Apache
by coreolyn (Parson) on Oct 30, 2003 at 16:44 UTC

    Sorry for the confusion.

    We're moving a static form from an IIE site on which is a submit button that calls an existing servlet. We're trying to eliminate the IIE site. I think vet's LWP call is what we're looking for. I was actually asking the question for a friend and the more I think about it, the more I'm realizing that I'm going to have to dig into the issue farther and see for myself the exact configuration he's attempting.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://303108]
[1nickt]: FTR I agree with you about "design." Just not sure about the trajectory of evolution. THere are a lot of dead-ends in the evolutionary paths. I suspect homo sapiens is just one of them.
[james28909]: thanks for the vid holli, i do like it. thanks for sharing :)
[holli]: gives me goosebumps every time I watch it
holli gotta grab some groceries before dawn. l8ters
[erix]: s/dawn/dusk/
[erix]: (you're welcome :P)
[james28909]: you know, i had a thought a few mnths back. what if this universe were just a puzzle, waiting for life to figure it out!
[james28909]: what if one day we are able to grab the curtain that is "spacetime" and pull it back to reveal <insert imagination here> pulling at levers and ropes xD
[holli]: like dorothy?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2017-12-15 14:39 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (433 votes). Check out past polls.