On Mon, 7 Feb 2005 10:46:20 +, Nic Ferrier wrote:
>
>This looks like a correct HTTP conversation to me.
>
>Which bit do you think is wrong?
>
I assumed that rfc 2616 implied the necessity for
the presence of Content-Length whenever
Transfer-Encoding: chunked
is specified. Re-reading it has co
On Mon, 7 Feb 2005 14:28:17 +0530, Sasikumar Subramanian wrote:
>Hi Marco,
>
> I used oc4j container, which supports HTTP/1.1 protocol.
> I think this is not a problem in container.
> bcoz, I got the correct response when i send request to container
>thru TELNET in command prompt
On Tue, 1 Feb 2005 06:32:50 -0700, Sasikumar Subramanian wrote:
>Hi All,
>
> I write one servlet program with Chunked Transfer Encoding.
If you're using Tomcat you may be interested in [1].
Are you using another container? Does it allow http headers manipulation ?
[1] Remy Maucherat on
http
I'm in the process of setting up p3p[1] for testing purpouses.
Given that a standalone servlet container doesn't allow
a portable server wide configuration as described in [2], the less
intrusivive way that I'm thinking about is placing a filter
on every single webapp that adds a P3P header.
I'm in
Daniel Joshua wrote:
>Hi all,
>
>How do I use HttpServletResponse.setContentLength() to support persistent
>(keep-alive) HTTP connections (I heard this helps slightly speed up surfing,
>as the same connection is re-used)?
Restricting the argument to Tomcat: you (the servlet developer) aren't
enti
Folks, check the email headers before ranting:
1)Received: from TMISENC (pcp963730pcs.lwrnce01.in.comcast.net [68.58.94.196]) by
swjscmail1.java.sun.com (Postfix) with ESMTP id F40A092AD for
<[EMAIL PROTECTED]>; Wed, 20 Aug 2003 01:16:50 -0600 (MDT)
2)Received: from JJFWINXP (u
Single sign on ?
You can do the trick by putting the two machines on
the same domain[1].
Otherwise, have you had a look at liberty[2]
?
Marco
[1] http://wp.netscape.com/newsref/std/cookie_spec.html
[2] http://www.sourceid.org/wiki/Wiki.jsp
- Original Message -
From:
"Michael Weller" wrote..
[cut]
>And what if scripting is disabled?
[cut]
Is it unreasonable to force javascript on clients ?
I can't use my home banking account without enabling javascript.
Marco
___
To unsubscribe, send e
Definitively http://www.opensta.org/
Marco
- Original Message -
From: "randie ursal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 3:37 AM
Subject: Tool for HTTP Request Stress Test
> Hi,
>
>can anyone suggest an HTTP Stress Test tool.
>
>coz i wanna
If you launch Tomcat on a windows console with CTRL-BREAK you can list all running
threads.
Marco
- Original Message -
From: "Yedil Workeneh"
Sent: Wednesday, October 16, 2002 2:59 PM
Subject: debug Servlet
> Is there a way to identify what a runaway thread is doing?
>
> After starti
See inline:
- Original Message -
From: "Denis Kranjcec"
Subject: Re: can servlet know servers' ip?
> This is also from API documentation javax.servlet.ServletRequest
>
> java.lang.String getServerName()
> Returns the host name of the server that received the request.
>
Tomcat
Some months ago someone raised the issue of file permissions for servlets.
As I recall somebody argued that in ant is possible to specify file permissions.
Looking at the implementation I found that the funcionality was, at the time,
implemented
spawning a process.
AFAIK it's actually impossible
Tomcat 4 only: look for jcifs.
Any version of Tomcat in conjunction with IIS/Apache: look for getRemoteUser in
servlet spec.
Marco
- Original Message -
From: "ELMKIES Alexandre OF/DSI/EXT"
Subject: OS Authentification
> Hi,
>
> I've read some the 'Java Servlet Programming' (O'reilly)
Ethereal is the magic word ;-)
At least I found this packet sniffer easy to use and very useful when I was stuck with
no more ideas.
This way you see the entire conversation between servers an clients.
Marco
- Original Message -
Hi Marco,
I am sorry
How do u go about implementing pa
Just a quick check: by selecting, e.g. with a mouse, some text shown on NT's console
you can effectively block tomcat processing. If this isn't your situation turn to
packet sniffing.
Marco
- Original Message -
From: kaustubh
To: [EMAIL PROTECTED]
Sent: Tuesday, June 18, 2002 2:26 PM
Su
Right inside my hard disk I have a copy of PDFSPEC13.pdf.
Look for it on adobe's site.
BTW Adobe doesn't support dinamically created PDFs.
Marco
- Original Message -
From: "Kumar Sameer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 10:41 AM
Subject: using acr
You may want to check servlet-interest archives and servlets specification for
flushBuffer.
Marco
- Edited Message -
From: "Varley, Roger"
Subject: When does the response get written
> Is the browser guarenteed to complete the display of the output when
> I flush and close the respons
See inline:
- Original Message -
From: "Gert Grenander"
Sent: Monday, February 04, 2002 9:24 AM
Subject: Re: Deployment of servlets & database
> I found a good page about it:
> http://hsqldb.sourceforge.net/internet/hSql.html .
>
> This is a great solution. I'll dig into it and see if i
Have you considered Java as a platform for your DB ?
Hypersonic sql (there are others) comes to my mind as an ideal candidate.
Marco
- Original Message -
From: Gert Grenander
To: [EMAIL PROTECTED]
Sent: Monday, February 04, 2002 8:53 AM
Subject: Re: Deployment of servlets & database
Yo
Lira ? LIRA?? You aren't really referring to italian liras, aren't you ? ;-)
FYI: ITL is still in circulation (out of my pockets).
Marco
- Original Message -
From: "Steve Forbes"
Sent: Thursday, January 31, 2002 1:34 PM
Subject: Re: Urgent
> I would like to write a Java web application
AFAIK the best answer to date is
http://www.theserverside.com/patterns/thread.jsp?thread_id=9597.
Basically you respond immediately to the user (via flushBuffer) while still processing
the request in the
service method.
Ciao,
Marco
- Original Message -
From: Andrea
To: [EMAIL PROTECTED
12, 2001 2:35 PM
Subject: Re: Clarification.
> Did he mean "Data Access Object" in conjunction with a thread pool
> (maintained by the database)?
>
> Mark
>
> -Original Message-
> From: Marco Trevisan
> Sent: Wednesday, December 12, 2001 8:22 AM
>
> &
"Peter Huber" wrote:
> You might use 'Active Object' approach in conjunction with a thread
> pool.
Ehm, where can I find a thread pool in a servlet container ?
Or I need to manage one ?
Marco
___
To unsubscribe, send emai
I want to achieve a 'responsive' servlet and perform some heavy task without resolving
to threads.
As a definition for 'responsive' I take the visual hints the browser (IE in my case)
shows:
running logo stopped and download bar empty.
I resumed to the pattern described in
http://www.theservers
Are you opening the doc from a servlet ?
What's your intent ?
Marco
- Original Message -
From: "Ann Mary"
Subject: Problem reading word doc
> Hi Friends,
> I have a problem with reading a ms word application
> (97,2000), am calling a dll from java thru jni, but
> while calling it show
The first implementation of a number formatting library showed some inconsistencies.
Somehow, sometimes, the formatted number was simply wrong.
I never investigated why: it happened either with 1.2.2 and 1.3.
I always suspected that NumberFormat wasn't thread safe.
I simply replaced NumberFormat w
I've used serialization only with RMI. I've always payed attention
to wich version of the VM's where involved in the communication.
If you read the following excerpt from the serialization specifications:
---
6.3 Stream Protocol Versions
It was necessary to
I correct myself: I'm delighted to see even a Visual J# for .NET
now in beta :)
Marco
- Original Message -
From: "Marco Trevisan"
> Well, maybe on client side but on server side I'm delighted
> to see a MS jdbc driver for SQL 2k n
Well, maybe on client side but on server side I'm delighted
to see a MS jdbc driver for SQL 2k now in beta test.
Marco
- Original Message -
From: "Matt Penner"
> Don't expect too much support from MS on Java. Since they lost the suit
to Sun
> they have no interest in keeping Java aroun
Or Microsoft's own JVM wich i believe is much faster to start if you don't
need Swing.
Marco
- Original Message -
From: "Matt Penner"
> Unfortunately we'll probably have to force the users to download the
plug-in,
AFAIK cookies set by the server are handled by the
browser and applets connecting to a servlet use browser connections.
So cookies are automagically added to http requests
originating from applets.
Can you elaborate more on your statement? I'm already serching
the archive.
Marco
- Original M
Explorer? In
> localhost
> i'm using IE 5 and in the other machine i'm using IE6?
>
> May this be the problem? Have you experience this problem in IE? And i'm
> not
> calling the applet from javascript
>
> -Original Message-
> From: A mailing li
No, never had any such problem with Microsoft's JVM and any version of IE
from 5 to 6.
I argue it's the combinatione of Sun's JVM on IE6 that causes some
problems,
but I've never heard of any problem of this kind before. Maybe you can
switch to a
swing mailing list, like [EMAIL PROTECTED] , and s
>From previous posts I haven't determined if you're using the same
browser on the two machines.
In case you're using N6 (I've used only 6.1 preview), you may have
encountered a problem described in
http://www.kfki.hu/~cspeter/jvm-bugs/ns6jsace.html
Notice that this new security feature applies on
A ByteArrayOutputStream can be useful.
Marco
- Original Message -
From: "Hans Liebenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 3:02 PM
Subject: Buffering Response
> Hi,
>
> How do you buffer the response. I.e The response must only be sent to the
>
Back to basics: you have to study servlet lifecycle.
Move connection opening code into doGet
since you close it and never reopen.
Marco
- Original Message -
From: "andrew tollin"
> Thank you Marco,
>
> I have attempted to close the statement along with the connection within
the
> doG
Looks like the first time the servlet is invoked it works OK.
Subsequent invocations mess up the connection (never
worked on mysql but I'd close and reopen the connection
or better use a connection pooling package, maybe stmt
isn't being closed).
When you open via the address bar I suspect you get
>
> Now what happened to the second setHeader output in the included file?
> Should it be included or has it gone AWOL ?
>
>From JavaServer Pages Specification Version 1.2 -Proposed Final Draft 2
(PFD2)
JSP.4.4
-
An included page only ha
I'm curious, do you want to compile a web-app
because it's slow ?
If it's a generic app a search on google
surely brings you to the desired resource.
Marco
- Original Message -
From: sharad mohan
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 11:26 AM
Subject: How to make exe file of
"Mark Galbreath" wrote :
[cut]
> I would suggest,
> however, that you contact Adobe tech support and pose this question to
them,
> and then let us know its response, because there seems to be more and more
> PDF-servlet related questions being posted here.
[cut]
>From document 321592 of Adobe's S
We solved this kind of problems using GET (not POST) requests from browser
and precomputing the size of the pdf using a ByteArrayOutputStream
for PDF output.
Just tested for IE5+, I'm curious about N6.
Some IEs needed an SP, as you can find on Adobe's site.
Marco
- Original Message -
"
"Christopher K. St. John" wrote:
> In your original message, you mentioned 'static content
> served by servlets'. Did you mean content that is served
> by a servlet that you wrote, or content that's served by
> a servlet container's default file-server servlet?
>
Yes (experienced only for Tomcat
- Original Message -
"Christopher K. St. John" wrote:
[cut]
>
> An afternoon spent browsing the servlet spec would be a
> great investment. It's suprisingly clear and easy to read,
> with lots of background info and explanatory text. In this
> particular case you might check out:
>
[cut]
- Original Message -
"Michael Weller" <[EMAIL PROTECTED]> wrote:
[cut]
> since only files of the same webapplication would be sent by this servlet,
> ServletContext.getResource() and ServletContext.getResourceAsStream()
should
> help (see Servlet Spec 2.3 at 3.4 for further information)..
"Pierre-Yves Saumont" <[EMAIL PROTECTED]> wrote:
[snip]
> String path =
getServletConfig().getServletContext().getRealPath("/");
[snip]
quoting (edited) from 2.2 spec api javadoc (haven't lookend in 2.3):
-
public java.lang.String getRealPath(java.lang.Stri
"Pierre-Yves Saumont" <[EMAIL PROTECTED]> wrote:
> Or you might use your servlet to display the static file, using the extra
> path information.
>
Well, a web server like Apache isn't tuned just to accomplish this work?
Serving static files isn't an unnecessary burden to a JVM ?
> This technique
A very quick look at Chmod.class in ant.jar of
tomcat 3.2.1 distribution (reporting 1.3alpha in version.txt)
brought me to the following line (copied by hand):
protected boolean isValidOs() {
return System.getProperty("path.separator").equals(":") &&
(!System.getProperty("os.name").startsWith("M
A search in the list containing text in the message content-type
surely helps, you'll get a dozen of posts.
Marco
- Original Message -
From: "Achalkar, Sheetal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 10:46 AM
Subject: Content types.. any listing??
> Hel
Fetching from memory ... Done
try
escape(document.funcForm.x1.value)
instead.
Marco
- Original Message -
From: "Michael Weller" <[EMAIL PROTECTED]>
> function doLink() {
> parent.main.document.write(" document.funcForm.x1.value + \"&y1=\"+document.funcForm.y1.value + \">");
> }
[cut]
> The idea of putting application logic on the client side is fine if you
know in advance the type of environment your users will be viewing your
pages in (e.g., a macintosh-specific site, or an intranet). However,I
disagree whole-heartedly with using anything flashier (no pun intended :)
t
Hi David,
you can search the list for messages appeared in the last month
with subject containing UTF.
Regards,
Marco
[cut]
> How can I pass parameters values containing international characters to a
> servlet?
> For example a-umlaut (ä), beta (ß), etc.,
[cut]
___
Hi Gokul,
would you kindly specify wich containers auto-sense
the charset for request parameters ?
Regards,
Marco
[cut]
> >
> > so replace ur response.setContentType("text/html;
> > charset=UTF-8");
>
> This is not supported by the servlet API. The setting of the charset used
> for the response
Hi Tomas,
Just to be clearer, we are actually supporting IE 5.0/5.5 and all
experiments are conducted
on this client and test were conducted with Tomcat alone and in conjunction
with Apache (Linux/Win32).
Having said this, we found that after setting the charset with
setContentType
the browser st
Actually I found a solution for a subset of characters of our interest
with Tomcat 3.2.1.
We made a patch for the euro symbol by setting the character set with:
response.setContentType("text/html; charset=UTF-8");
and manually decoding from responses an "intermediate" 8859_1 codepage.
This is due
54 matches
Mail list logo