• Post Reply Bookmark Topic Watch Topic
  • New Topic

No Property Error

 
Steve Dyke
Ranch Hand
Posts: 1716
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting an error:

JspTranslate: jsp.error.beans.noproperty.

This is my class:


[/code]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you created an instance of your bean?

The 'type' attribute of useBean will not automatically instanciate an object.
For that, you need to use the 'class' attribute.

Out of curiosity, why are you using the older xml bean syntax instead of JSTL and EL?
 
Steve Dyke
Ranch Hand
Posts: 1716
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought I was using JSTL. I am using the tag library on my workbench labeled JSP.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He meant, why are you using <jsp:getProperty> instead of the more modern JSTL and EL equivalents?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Steve Dyke:
I thought I was using JSTL. I am using the tag library on my workbench labeled JSP.

I don't know what a workbench is.
Part of an IDE, I assume?

The <jsp: .../> namespace is not part of the JSTL.
It is a core part of JSP and has been around for a long time.
The newer JSP Expression Language (EL) has made it all but obsolete.

If you haven't yet, you might want to pick up a current book on Servlets and JSP, and work all the way through it. I know there is a recent edition of "Core Servlets and JSP". I've also heard great things about "Head First Servlets and JSP". The gains in productivity you will get once you're done will more than offset the time it took to read it.

A lot has changed in JSP 2.0 so make sure you get a book that is current.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!