Skip to content

Tag: servlets

Undertow: Using existing Servlet instance

I am trying to replace in an existing application the embedded web server with Undertow as the old does not work correctly in some cases. The embedded web server is used to server a few simple servlets. My main problem is that I can’t find a way to register an existing HttpServlet instance in Undertow. …

Servlet encoding woes in Open Liberty

I have a simple test servlet that should output a non ASCII character (right single quotation mark – ’). In Tomcat, it works, but in Liberty I get junk. Is this a bug in Liberty, am I doing it wrong, or a config issue? and the web.xml From Tomcat the response is (courtesy of Fiddler): The body hex is: E…

Jetty 11 Doesn’t Detect Jakarta Servlets

This is a follow up to this question. I don’t think it’s a duplicate because the accepted answer indicates that Jetty 11 doesn’t work with javax servlets, but I’m asking why Jetty 11 doesn’t work with jakarta servlets. I have an example project here that uses Jetty 9 to deploy a …

Reading Excel File Column in Java

I have a sample of Excel data that needs to be read and store in the database. Example: I have tried to use Apache POI in reading data by row. But how do I get the Name and the amount from the column at the same time? Something like this Any help would be appreciated. Thanks Answer Result: