🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #698

request.getReader() or request.getParameter("")

#698
From: Kobus du Toit
Date: Thu, 20 Feb 2003 18:52
23 lines
2006 bytes
Hi

I would like to know what is the best way to send XML to a Java servlet from
Delphi.

We have a Delphi application that submits XML to a Java servlet.  If the
Delphi app submits the servlet using a post and adding the xml in the URL we
can use request.getParameter("qlxml") to read the XML, but if the Delphi app
send the XML in the content we have to use request.getReader() to read the
XML.

My point of view is that request.getParameter("qlxml") should be used to
retreive text from a post.
I think request.getReader() is usually used when a file is uploaded, I
always use the O'Reilly components to when uploading a file so not really
sure what you use when a file is uploaded

If we have to use request.getReader() to read the XML that they send in it
means to me they are uploading text and that just seems to me that they are
mixing the two different ways of submitting something to a servlet.  You
upload a file in the content and you post text, not upload text.

Kobus
Technical Details
Message-ID: <3e5523ca@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!news1.dtag.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,8b7494dc881eaec8,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-02-20 11:00:04 PST
From: "Kobus du Toit" <battlezone@iname.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: request.getReader() or request.getParameter("")
Date: Thu, 20 Feb 2003 20:52:53 +0200
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 155.239.118.76
Message-ID: <3e5523ca@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1045767114 155.239.118.76 (20 Feb 2003 10:51:54 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!news1.dtag.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail