Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6781695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:39:16+00:00 2026-05-26T16:39:16+00:00

<%@page import=org.apache.commons.httpclient.HttpClient %> leads to: The import org.apache.commons.httpclient cannot be resolved I am using

  • 0
<%@page import="org.apache.commons.httpclient.HttpClient"  %>

leads to: “The import org.apache.commons.httpclient cannot be resolved”

I am using STS (springframework) to add JSP files, there are 2 jsp files in same directory of a same project use the same import statement as above. One of them is okay, another get error, this kills. Why I get the error? STS restart, maven clean, …, and what’s more can I do?

The dependency was added by hand as the follows, the framework is initialed by spring Roo.

<dependency>
  <groupId>org.apache.httpcomponents</groupId>
  <artifactId>httpclient</artifactId>
  <version>4.0-beta2</version>
</dependency>

By the way, I found this information from apache.org: “The Commons HttpClient project is now end of life, and is no longer being developed. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules, which offer better performance and more flexibility. ” But after checking their sample codes, they use same import statement as mine, shown above.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:39:17+00:00Added an answer on May 26, 2026 at 4:39 pm

    By the way, I found this information from apache.org: “The Commons HttpClient project is now end of life, and is no longer being developed.”

    Indeed, that was known as HttpClient 3.x.


    “It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules, which offer better performance and more flexibility.”

    Indeed, that is known as HttpClient 4.x and is available at this home page.


    But after checking their sample codes, they use same import statement as mine, shown above.

    According to your Maven declatation, you’re using HttpClient 4.x, so you should check the sample codes of HttpClient 4.x. You’ll see that it says among others:

    import org.apache.http.client.HttpClient;
    

    Here’s the HttpCient 4.x javadoc. Note that you’re referencing an early beta version in your Maven dependency. I’d suggest to pick a more recent and stable one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got the following error: > org.apache.jasper.JasperException: An > exception occurred processing JSP page
I'm having trouble with a custom tag:- org.apache.jasper.JasperException: /custom_tags.jsp(1,0) Unable to find setter method
I tried running this jsp program in tomcat5.5 in netbeans 6.1 <%@ page import=java.io.*
I have a page where a user can import data to the site. either
I have a import directive in my inline .aspx page (no code-behind). Getting an
This page from Adobe says to add a wmode parameter and set its value
I'm writing a web application using python JSON-RPC implementation - http://json-rpc.org/wiki/python-json-rpc on server side
I'm getting the following error when I try to run a jsp page with
Trying to use Apache POI in a Eclipse JSP project. The POI jar is
I have a short jsp page that tries to establish the connection to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.