Hi i trying to using my own classes in a jsp file and i cant just resolve the problem, i know there is some threads about it but still i cant get it to work.
i have this class Hej.java
public class Hej {
 String a;
 public Hej(String a){
        this.a = a;
 }
 public String hej() {
        return a;
 }
}
and here are my jsp file Newfile.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="Hej" %>
<html>
   <head>
   </head>
   <body>
      <%Hej a = new Hej(); %>
      <%=a.hej() %>
   </body>
</html>
my folders look like this
Projectname
           Java Resources
                         src
                            (default package)
                                             Hej.java
           WebContent
                     NewFile.jsp
 
    