You cannot run a web page in the task scheduler. You need to run an executable program, like cscript.exe or cmd.exe, or java.exe, or perl.exe, or any other .exe. These are typically command line programs. You can run a GUI program but they normally expect to interact with a user who will "click on OK to continue" and don't always work well when run as a task.
Now, you can run a script to invoke a web page. Powershell has Invoke-webrequest.
You would need to write a .ps1 script to call the page, The program is Powershell.exe and the argument is the full path to the .ps1 script file. Note that the .jsp page will execute in the memory of whatever server hosts the web site. That is not necessarily the same machine that is running the task. It could be, but the Powershell script is not going to magically invoke a remote jsp on the local machine that runs the task.
https://www.tutorialspoint.com/jsp/jsp_architecture.htm
A jsp page expects to be invoked within the context of an HTTP request between a client and a server. A Task Scheduler task is essentially a command line environment. They are not the same.
Based on the name, if the .jsp purges Tomcat logs from the remote web server, then a Powershell .ps1 which does an Invoke-WebRequest should work for you. I would expect the page to require authentication, so you will need to add in credentials on the call.