Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your company still has internal tools built on JSP and custom tag libraries from the 2000s that work and are rarely changed, but few engineers know the technology. How would you decide what to do with them?

I would decide tool by tool, weighing risk against value: risk means unpatched containers and libraries, a forced Jakarta migration and the cost of finding someone who can fix it, while value means how many people use it, how critical it is and how often it changes. The options are to keep and patch with minimal change, wrap it behind single sign-on and network controls, migrate it to a modern stack, or retire it and buy a SaaS product, chosen on business value and risk rather than fashion, and whatever we choose, each tool gets documentation and a named owner.

Why this question is asked

Every large company has a back room of internal tools: a JSP application that approves expenses, a custom tag library that renders inventory reports, an admin console for a product launched in 2006. They work, nobody touches them, and the two engineers who understood them left years ago. The danger is not that they are old; it is that nobody notices them until a security audit or a container upgrade forces a crisis. Interviewers ask senior candidates this because it tests judgement: avoiding both neglect and the expensive rewrite nobody needed. In this answer, we will look at how to assess risk and value, walk through the four options and what each costs, show how to decide with an example portfolio, and finish with ownership, which matters whatever we decide.

1Start With an Inventory

Before deciding anything, we need a list. For each tool we record what it does, who uses it, which server and container version it runs on (often an old Tomcat or WebLogic), which libraries it bundles, where its data lives, and who last changed it. Access logs give real usage numbers, which are often surprising: a tool everyone calls critical may have four users a month, and a forgotten one may be used by the whole finance department at quarter end.

This step alone often reveals tools that nobody uses at all. Those are the cheapest decisions we will ever make.

2Assessing Risk

Risk has three parts. First, security exposure: is the container still receiving patches, and do bundled libraries have known vulnerabilities? A Tomcat 7 or an old JSTL and commons-fileupload jar is a real attack surface, especially if the tool is reachable from the whole corporate network. Second, forced change: moving off javax to Jakarta EE, a datacentre closing, or a Java version reaching end of support can force migration on someone else's schedule. Third, people: if the tool breaks, how long does it take to find someone who can read scriptlets, custom tag handlers and TLD files? If the honest answer is weeks, that is a business continuity risk.

3Assessing Value

Value is about the business, not the code. How many people use the tool, and what happens if it is down for a day? Is it on a critical path, such as payroll, compliance reporting or customer refunds, or is it a convenience? And how often does it need changes? A tool that changes once a year can live on old technology far more cheaply than one whose rules change every month, because every change is where the scarcity of skills costs money.

Example portfolio of legacy JSP tools
ToolRiskValueDecision
Expense approvalsHigh: Tomcat 7, open networkHigh: 3,000 usersMigrate, or replace with SaaS
Warehouse label printerMediumHigh, rarely changesKeep, patch, wrap behind SSO
Old campaign adminMediumNone: 0 logins in a yearRetire
Lab schedulingLow: internal, patchedLow, stableKeep with minimal changes
Decisions follow the combination of risk and value, not the age of the code.

4The Four Options and What Each Costs

Keep and patch means upgrading the container and libraries just enough to stay supported, possibly including a javax to jakarta migration done with tools, and otherwise leaving the code alone. It is the cheapest option for stable, low-change tools, but it does not remove the skills risk.

Wrap means reducing exposure without changing the application: put it behind the company's single sign-on proxy so only authenticated employees reach it, restrict network access to the groups who need it, and add a web application firewall. This is fast, often days, and is a good first step for any risky tool while a longer decision is made.

Migrate means rebuilding on the current stack, such as Spring Boot with Thymeleaf or a small front end. It makes sense for high-value tools that change often, where modern skills and tests will pay back. It is also the most expensive option and has the most delivery risk, so we migrate in pieces where we can.

Retire and replace means turning the tool off, perhaps exporting its data, or replacing it with a SaaS product that does the job, such as a commercial expense or scheduling system. Commodity functions rarely justify custom code today.

5Avoiding Fashion-Driven Rewrites

The tempting mistake is to rewrite everything in the newest framework because JSP looks embarrassing. A rewrite of a stable tool spends months of engineering to deliver the same features, with new bugs, and often loses undocumented rules that the old code handled. So the test I apply is: what risk does this reduce, or what value does this add, and is that worth the cost compared with patching and wrapping? If the answer is only that the code is old, the rewrite waits.

Step throughDeciding for one legacy tool
  1. Anyone using it?Check a year of access logs
    YesAssess risk and valueNoRetire and archive data
  2. Commodity function?Expenses, scheduling, wiki
    YesConsider SaaS replacementNoContinue
  3. High risk exposure?Unpatched, wide network access
    YesWrap now behind SSO and network rulesNoContinue
  4. Changes often and high value?Monthly rule changes
    YesPlan an incremental migrationNoKeep and patch minimally
  5. Document and assign an ownerEvery outcome

5 steps in order. Play them, or step through them one at a time.

6Ownership Whatever We Decide

The real cause of the problem was not JSP; it was that these tools became orphaned. So every tool that survives gets a named owning team, a short runbook (how to deploy it, where its data is, how to restart it), a dependency list checked by the same vulnerability scanning as everything else, and a review date. Retired tools get a record of what was turned off and where the data went. Once that is done, the portfolio stops being a surprise and becomes ordinary maintenance.

7Follow-up questions

How do you fund work on tools that the business does not ask about?

By presenting it as risk reduction with numbers: the vulnerabilities found, the number of users, and the cost of an outage or a breach. A short list of decisions with costs, such as wrap three tools this quarter for two engineer-weeks, is much easier to approve than a general modernisation programme.

What if the business owner insists on keeping a risky tool unchanged?

Then we make the risk visible and agreed: document the exposure, apply the cheap controls such as SSO and network restriction, and have the business owner sign off on the remaining risk with a review date. Decisions about risk belong with the people who own the business process, but they should be made knowingly.

How do you keep the knowledge from disappearing again?

Pair the owning team on one small change per tool, write the runbook as they go, and make sure at least two people have deployed it. Knowledge stays alive when it is used, so even a yearly patch exercise keeps it fresh.

8Conclusion

In this answer, we saw that old JSP tools should be judged by risk, meaning security exposure, forced migrations and scarce skills, and by value, meaning users, criticality and rate of change. The options are to keep and patch, wrap behind SSO and network controls, migrate, or retire and replace with SaaS, chosen per tool on business grounds rather than fashion. Whatever the choice, documenting each tool and assigning an owner stops it from becoming orphaned again.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start with an inventory: what each tool does, who uses it according to the access logs, what container and libraries it runs on, and who can change it.

Then, if they want more

Then I would score each one on risk and value. Risk is unpatched containers and old jars, upcoming forced changes like the Jakarta namespace move, and how long it would take us to find someone who can fix scriptlets and custom tags. Value is how many users, how critical the process is, and how often it changes.

That gives four kinds of decisions. Tools nobody uses get retired. Commodity tools like expenses or scheduling may be replaced with a SaaS product. Risky but stable tools get wrapped behind single sign-on and network restrictions quickly, and patched with minimal change. Only tools that are high value and change often justify a migration to the current stack, done incrementally.

I would push back on rewriting things just because JSP looks old, because a rewrite of a stable tool costs months and often loses hidden rules. And whatever we decide, every surviving tool gets a named owner, a runbook and vulnerability scanning, because the root problem was that they were orphaned, not that they were JSP.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Jakarta EE specifications
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company still has internal tools built on JSP and custom tag libraries from the...": https://scrivio-interview-library.netlify.app/java/servlets/7efb23c8e5/