Skip to content
Advertisement

Tag: jsp

How can I send an email from a JSP? I have an error

I am trying to send an email from a JSP using gmail, I tested my code in a normal Java Application (not web) and it works well, but I have this problem java.lang.NoSuchMethodError: sun.security.ssl.Handshaker.setApplicationProtocols([Ljava/lang/String;)V when I run the JSP, here is my code By the way, I am using jdk 1.8.0_251 and Payara server 5.194 (I tried by using glassfish

Tomcat. ClassNotFoundException on importing class

I am writing my training project on Tomcat based java servlets and jsp’s using Visual Studio Code. Now I am working on logging. My project structure looks like this: Class AccessFilter.java realizes logging system. Here is code of AccessFilter.java: Code of Log.java: package FamilyTask.lib; Command for compile servlet/filter classes: Command for compile simple classes: Compilation ends without errors, but on

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:

Advertisement