wood burning stoves*
The moose likes Servlets and the fly likes New Servlet, Has a One Errors on it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "New Servlet, Has a One Errors on it" Watch "New Servlet, Has a One Errors on it" New topic
Author

New Servlet, Has a One Errors on it

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
Hello I have a servlet with a couple of errors:

It is erroring out at:

InputStream in = ClientHttpRequest.post( new java.net.URL(targetURL), params );

I do now know what to do. -- Thanks, Midani


William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Midani (aka Michele)

What do you mean by "erroring"?

WP
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
In my Eclipse Galileo, it has a little X with a lightbult on this item in the left hand margin and when I hover above it is says:

ClientHttpRequest cannot be resolved.

Is this because it has to be named as an imported item on the servlet?

I am unsure. Can you help me interpret this error?

I would like to compile it and test it.



William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

In Eclipse, click on the red X with the right-button, select Quick-Fix ..

What does it tell you?

WP
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
it said import that item.

Thanks!

Got it!!!

That was super easy compared to most of my postings!!!

Have a nice day!!!

Midani
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

You're welcome!

WP
 
jQuery in Action, 2nd edition
 
subject: New Servlet, Has a One Errors on it