Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The value for the useBean class attribute genp.GenPass is invalid.  RSS feed

 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean id="gp" scope="application" class="genp.GeneratePassword"/>

I have to call a method from the class GeneratePassword,in my jsp page. I got the following error.

Help expected!!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is genp.GeneratePassword?
Is it a package (genp) and a class (GeneratePassword) or is GeneratePassword a method of a class named genp?
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean id="gp" scope="application" class="genp.GenPass"/>

The error was "The value for the useBean class attribute genp.GenPass is invalid."

genp is a package with the class GenPass.

where is this package genp to be placed?

How to resolve the error?

Any help would be appreciated.Thank you.
[ April 05, 2008: Message edited by: Sudipto Shekhar ]
 
Pedro Erencia
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where is this package genp to be placed?


assuming you are not doing a jar of your app:

$TOMCAT_HOME/webapps/my-webapp/WEB-INF/classes/genp/GenPass.class

How are you deploying your app ? Eclipse WTP ? ant script ? manually ?
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pedro Erencia:


$TOMCAT_HOME/webapps/my-webapp/WEB-INF/classes/genp/GenPass.class

How are you deploying your app ? Eclipse WTP ? ant script ? manually ?


Manually.

The package is placed as indicated by you. But there is no change.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ronni",
Please check your private messages.
-DOM
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't matter how he's deploying it.

This is the right location:
$TOMCAT_HOME/webapps/my-webapp/WEB-INF/classes/genp/GenPass.class


Also, GenPass needs follow some of the JavaBean conventions.
Mainly, it needs to have a zero argument constructor.
If moving to the correct location doesn't fix this, post the code to GenPass.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!