hi, I got some problems with connecting my Java .class files to my jsp page.
this is what I have:
1 class named Test.class
it looks like this:
1 JSP file like this:
it seems I cant find out where I should place the files, how I should orgenize the folder etc, have tried many diffrent options. after reading a bit it looks like I should place the .class file in a WEB-INF folder, but I use my universetys servers, and I cant find a folder with this name.
if anyone got some tips on how to solve this I would be greatful
this is what I have:
1 class named Test.class
it looks like this:
Code:
public class Test {
public static String printTest() {
return "endelig virker det";
}
}
Code:
<%@page import="tried many things here*" %>
<html>
<head>
</head>
<body>
<%
out.println("test");
out.println(Test.printTest());
%>
</body
</html>
if anyone got some tips on how to solve this I would be greatful
Comment