Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No getter method for property username of bean User

 
Jeroen Van Londersele
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi y'all,
I have this problem with a bean I create from a cookie:
jsp:

class-code:

Now, when I try to write the property username for bean User, i get a "No getter method for property username of bean User" error, although I've clearly programmed it.
The .class file is in the WEB-INF/classes/app folder, so I guess it's in the right place. Also, the cookie is placed perfectly, not that that would matter because it would skip the whole block anyway if it wouldn't exist (which it does).
I'm kind of new to Struts, so perhaps I'm overlooking something obvious, but can anyone help me?
Thanks in advance.
[ April 07, 2004: Message edited by: Jeroen Van Londersele ]
[ April 07, 2004: Message edited by: Jeroen Van Londersele ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic