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 7176157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:27:10+00:00 2026-05-28T16:27:10+00:00

I inherited 2 JSP projects (tomcat) in my eclipse with common code that is

  • 0

I inherited 2 JSP projects (tomcat) in my eclipse with common code that is duplicated.
I wanted to externalize the duplicate code to common library/project and reference it from both JSP project.

So I did the following:

I created a new Java project “JSP-Common” with the following package “com.mycompany.jsp.common”. There I create a class “ExternalClass” with a public “test()” method that returns a string.

in JSP1 project(one of the 2 JSP projects):

  1. I added the JSP-Common project to the build path projects tab

  2. I added to the jsp file in it the following import:

    <%@ page import = "com.mycompany.jsp.common.*" %>
    
  3. I added to the jsp file in the body somewhere

    <% ExternalClass ec=new ExternalClass(); %>
    

After building and publishing the project, I get a “ExternalClass cannot be resolved to a type” error on the line with the instantiation above in my page.

Am I missing something ? Help ?

I want to make it so when I build my JSP1 project it will automatically take the callses from the JSP-Common project.

  • 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-28T16:27:10+00:00Added an answer on May 28, 2026 at 4:27 pm

    You have to add JSP-Common project in Deployment Assembly: go to Deployment Assembly page under project properties. Hit Add and select “Project” option.

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

Sidebar

Related Questions

I inherited a project that uses SQL Server 200x, wherein a column that stores
I inherited a project that uses CoreData for a certain type of data storage.
We inherited some C# code as part of a project from another company which
I inherited a project from a colleague that left the company. While examining his
I inherited a project that includes the following crazy JavaScript. I assume this is
I inherited a database built with the idea that composite keys are much more
I inherited MYSQL database that has lots of tables with data like CREATE TABLE
I inherited a shell-script application that is a combination of kshell scripts, awk, and
I inherited a system that stores default values for some fields in some tables
Is it possible to use JSP sort of as a template without having code

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.