A
A
artshelom2017-04-10 21:15:31
Java
artshelom, 2017-04-10 21:15:31

How to solve the problem in rounding numbers in jsp??

When trying to round numbers, jsp gives the following error when run, and this is the code:

org.apache.jasper.JasperException: Unable to load class for JSP


<fmt:formatNumber value="${rezult.a/rezult.b}" maxFractionDigits="2"/>

(I'm throwing text into html tags because I didn't find jsp)
Both parameters are int.
When in value I substitute the number itself as a string, then everything starts to work. I don't understand what I'm doing wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-04-10
@artshelom

First, your uri is wrong.
Second, download the jstl-1.2.jar to the lib subdirectory of the Tomcat directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question