java.lang.NumberFormatException: null with error status 500

I faced issue with submitting data from html to servlet Can’t This is my html file <input type="radio" id="add" …

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….

Spring MVC – JSP files for various controllers to be more generic

I have a java spring MVC project with various controllers. These controllers have the functionality to add, edit, delete configurations. The JSP files for these various controllers are almost same (…

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: webapps |—-ROOT |—-public …

How to retrieve parameter values of window.open() in a new jsp page (inside scriptlet)

I’ve a javascript through which I’m passing some values to a new jsp using window.open() window.open(“view.jsp?uname=”+objid+”&pass=”+ses,””,”heightP0 ,widthP0&…

is there any way to fetch data from many to many tables using spring without infinite json format?

user entity @Id@GeneratedValue(strategy = GenerationType.AUTO) Integer id; // … more properties @ManyToMany(cascade = {CascadeType.ALL}) @JoinTable(name = “User_Boards”, joinColumns = {@…

SQL query is only returning one entry, when it should be returning several

I am creating a book tagging system and I am trying to call all the books with the same tag. My query is only turning up the first book, and not any of the following books with the same tag. Here is …

How do I access values from forms on different JSP pages in the same controller in Spring MVC?

I am trying to make a Book Management project where I have three buttons on the home.jsp page. Each button redirects to a separate page and each of these pages has a form. I have one Controller class …

Spark-Java framework, Jetty and JSP files

Go easy please, I’m rather new to the whole web development thing and I’m a little perplexed. I have the Spark framework installed from Maven, which has Jetty as its underlying web/application server,…

Convert Base64 into PDF without converting it into an Image in JAVA

I’ve done converting PNG to PDF using itext. How can i convert BASE64 into a PDF File, how can i achieve this. //b64Image contains base64code from html2canvas, this code is for converting base64 to …