Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New Servlet, Has a One Errors on it

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Midani (aka Michele)

What do you mean by "erroring"?

WP
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Eclipse, click on the red X with the right-button, select Quick-Fix ..

What does it tell you?

WP
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome!

WP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic