Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp + javabean path

Sam Anjos
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting an error on my <jsp:usebean> tag when i try to compile it.-cannot resolve symbol-
my jsp directory path is the following:
my bean directory path is the following:
my bean compiles ok;
public class User{

protected String lastName;
protected String firstName;

public String getLastName(){
return lastName;

public void setLastName (String lname){
this.lastName = lname;
public String getFirstName(){
return firstName;
public void setFirstName (String firstName){
this.firstName = firstName;
and this is the jsp;
<%@ page language="java" contentType="text/html" %>
<head><title>JSP Page</title></head>
<H1>this is a text </H1>
<jsp:useBean id="input" class="User" />
<%--<jsp:getProperty name="user" property="getFirstName()" />--%>
I was able to compile it if i move it under the examples directory in Tomcat, but i don't want it there. I'm also using NetBeans as an IDE.
Any help would be appreciated.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic