hi guys,I am new to
JSP technology.I try to insert
java bean tags in JSP page.
the code is given below.
public class Book
{
private
string title;
public Book()
{}
public string getTitle()
{
return title;
}
public void setTitle(string title)
{
this.title=title;
}
}
I saved this file as Book.java in web-inf/classes.
and my jsp code is given below.
<html>
<body>
<jsp:useBean id="myBook" class="Book" />
<jsp:setProperty name="myBook" property="title" value="Beginning JSP" />
<jsp:getproperty name="myBook" property="value" />
</body>
</html>
I got an error saying that unable to compile class file for JSP.
do i have to configure the web.xml file?
can anybody please help me with an answer?