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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "error while submitting an http web request" Watch "error while submitting an http web request" New topic
Author

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
Rancher

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
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

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: http://aspose.com/file-tools
 
subject: error while submitting an http web request
 
Similar Threads
string getting converted to ASCII
Https post
Simple Question - AJAX and JAVA, Is It Possible?
HTTPS Post Request through the URL
How to programatically submit a html form?