🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16156

HttpURLConnection problem

#16156
From: Hui Kwok Leong
Date: Tue, 23 Mar 1999 00:00
28 lines
1395 bytes
Hi all,

I got a problem.  I use Java stand-alone application to create some
SWING components.  Later on submit, i want to connect to a Java servlet
and send my data to it.  I am using HttpServletRequest at the server
side and HttpURLConnection at the client side.

My problem is i write into the output stream of the client side by
getting the URLConnection objects getOutputStream() with the following
syntax

<input type=submit name=field001 value=aaa>

But at the server side the getParameter() is not getting any parameters
i am sending and the InputStream at the server side receives nothing.

I think i need to know the exact HTML format in which i need to write
into the output stream of the client

Can someone help me on this regard.

Thanks in advance

Lakshmanan N S

PS : I am able to get the results from the servlet if i access it
through HTML webpage.
Technical Details
Message-ID: <36F707B6.3E1FFF0F@krdl.org.sg>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e5331d7941e40c76,start
X-Google-Attributes: gidf74b3,public
From: Hui Kwok Leong <klhui@krdl.org.sg>
Subject: HttpURLConnection problem
Date: 1999/03/23
Message-ID: <36F707B6.3E1FFF0F@krdl.org.sg>
X-Deja-AN: 457823467
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Kent Ridge Digital Lab
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language