Hi I am new at this whole Java and JSP thing. I've just setup my Tomcat server and Eclipse software. I am in the process of creating my first Javabeans and Java/JSP webapp. It's the usual "Hello World" app. Easy as it might be, it's not working.
error i'm getting --------------------------------------------- org.apache.jasper.compile r.CompileException: /test.jsp(1,0) useBean (helloBean): Either class or type attribute must be specified:
______________________________________________ If someone could please take a look at this I would greatly appreciate it. And then maybe I can start doing some real programming. Thanks.
> import java.io.*; > > public class HelloWorldBean extends Object implements > Serializable{ > > private static String message="Hello World"; > > /** Returns the message. @return String **/ > public String getMessage() { > return message; > } > > /** Sets the message. @param message The message to > set **/ > public void setMessage(String message) { > this.message = message; > } > } > >
I've replace my code with the above that you wrote. But now i'm getting this error.
____________________________________________________ org.apache.jasper. compiler.ParseException: /test.jsp(1,72) Attribute has no value ____________________________________________________
Do you think it is the placement of my .java files and .class files? I'm still not sure what to do.