Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

User defined class problem

 
Jayson Trinidad
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day to all of you. I am using a user defined class in my JSP page containing this code:



I can successfully import the class, but the problem is when I use the getJ method, it shows the error:




Please help guys. thanks
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see anything wrong with it, other than your class name should not begin with a lower-case letter (by convention only, that's not causing your problem). I would guess that the object located at runtime is not based on the source code you're looking at. Perhaps it hasn't been rebuilt, or if it has, the current version is not copied into your application when deployed?

Another possibility is that you have an old version of the class sitting somewhere it shouldn't be?

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what you are given information is not enough. do you mean you define an local inner class in your jsp which is poor practice . please ellaborate .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!