-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
André Warnier wrote:
> From a front-end Apache, I am issuing a request to Tomcat, with the only
> purpose of getting back a small string (a user-id).
> I would imagine that for Tomcat generating a whole response (headers +
> body) is heavier th
> From: André Warnier [mailto:a...@ice-sa.com]
> Subject: Re: HelloWorld servlet, or just about
>
> I would basically need only a response with
>
> HTTP status line
> MyHeader: johnsmith
So take the code I posted, rip out all the HTML stuff, and just send the text
of
André Warnier wrote:
peter_f...@blm.gov wrote:
Actually this is very easy; when you want to pass the request down the
chain (i.e. into the servlet) you call the chain.doFilter() method. When
you *don't* want the request passed on, your filter just sets up the
response (status, header, etc.) and
peter_f...@blm.gov wrote:
Actually this is very easy; when you want to pass the request down the
chain (i.e. into the servlet) you call the chain.doFilter() method. When
you *don't* want the request passed on, your filter just sets up the
response (status, header, etc.) and returns.
Thanks, th
André Warnier wrote:
[...]
Ok, let me explain why I asked these simplistic questions, not that you
would think me gaga.
I use a non-conventional database application, which wants a user-id as
the content of a HTTP request header. Say
DBUID: johnsmith
To provide an SSO solution for that appl
> From: André Warnier [mailto:a...@ice-sa.com]
> Subject: Re: HelloWorld servlet, or just about
>
> I'm sorry, but that does not match the specs AT ALL.
> I specifically asked that the response should be
> plain text, and just the userid.
Hmmm... I think you're start
I'm sorry, but that does not match the specs AT ALL.
I specifically asked that the response should be plain text, and just
the userid.
t.
;-)
Thanks, Chuck.
Caldarale, Charles R wrote:
From: André Warnier [mailto:a...@ice-sa.com]
Subject: HelloWorld servlet, or just about
Bette
> From: André Warnier [mailto:a...@ice-sa.com]
> Subject: HelloWorld servlet, or just about
>
> Better yet (but I don't want to abuse your patience), just paste the
> code right here below :
package myPackage;
import java.io.IOException;
import java.io.PrintWriter;
import jav
Actually this is very easy; when you want to pass the request down the
chain (i.e. into the servlet) you call the chain.doFilter() method. When
you *don't* want the request passed on, your filter just sets up the
response (status, header, etc.) and returns.
André Warnier wrote on 12/19/2008 02:50
Ken Bowen wrote:
Of course, Google is your friend:
Results 1 - 10 of about 237,000 for hello world servlet. (0.23
seconds)
:-)
Yeah, I got that too.
That's the problem though : which one to choose ?
Never mind, and apologies, I think I'll use the first one :
package test;
import java.
On Fri, Dec 19, 2008 at 10:35 PM, André Warnier wrote:
> Dear experts,
>
> I love Tomcat, and I find all the people on this list kind, helpful, in
> short marvelous.
>
> I have dabbled in servlet filters before, but I never wrote an actual
> servlet. And now I need to write the tiniest of one.
>
Of course, Google is your friend:
Results 1 - 10 of about 237,000 for hello world servlet. (0.23
seconds)
:-)
On Dec 19, 2008, at 4:35 PM, André Warnier wrote:
Dear experts,
I love Tomcat, and I find all the people on this list kind, helpful,
in short marvelous.
I have dabbled in s
Dear experts,
I love Tomcat, and I find all the people on this list kind, helpful, in
short marvelous.
I have dabbled in servlet filters before, but I never wrote an actual
servlet. And now I need to write the tiniest of one.
It just needs to return, as plain text, not "Hello World", but t
13 matches
Mail list logo