aspose file tools*
The moose likes JSP and the fly likes error while submitting an http web request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "error while submitting an http web request" Watch "error while submitting an http web request" New topic

error while submitting an http web request

Anil Karamchandan
Ranch Hand

Joined: Sep 12, 2009
Posts: 47
I am trying to send a web request via http, below is my code and the error, I am not sure why there is an error on the outputstreamwriter. it seems i am doign the correct thing.

Can any one please help

Lester Burnham

Joined: Oct 14, 2008
Posts: 1337
Isn't the error message pretty clear? The code throws an IOException, and the method neither catches it, nor declares that it throws it. That's a no-no.

By the way, keeping Java code in JSPs is really bad design. 10 years ago that might have been acceptable, but not today. That's what servlets and backing beans are for.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60050

JSPs like this make me want to cry.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: error while submitting an http web request
Similar Threads
string getting converted to ASCII
Simple Question - AJAX and JAVA, Is It Possible?
How to programatically submit a html form?
Https post
HTTPS Post Request through the URL