Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I use JSPs with ServletUnit?

JSPs
0
Posted

Can I use JSPs with ServletUnit?

0

Absolutely! But since you are now emulating the servlet environment, you will need to make sure that you have access to the relevant classes. By default, ServletUnit is configured to use Jasper, the JSP engine which is part of Tomcat. You will therefore need the Jasper jar in your classpath, along with any on which it depends. Once you have done that, your JSPs should run, just as they would in Tomcat.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123