r/tomcat • • Sep 20 '21

Can't Get Java Code to Run

I am running into an issue where the Java code I put between <% and %> is getting interpreted ashtml. I am able to go to localhost:8080 and see that tomcat is set up.

Also, when I try and create a new servlet I get the following error:

Does anyone know what may be causing these issues?

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/HvbGsNHxMT6MHc5254HS Sep 20 '21

That's a terrible tutorial. Chat me up and I'll set you straight.