dcsimg
<jsp:usebean vs. brute force call
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   D_Frazier
Posted On:   Monday, October 29, 2001 01:02 PM

I have a class that looks like this: public class personFind { /** * for holding static items of person * REMEMBER that to get to the methods of person, use "super.method()." * This class extends base class "person." */ public static class resPerson extends person { //notice: Constructor is in class person String sXrefPidm = ""; String sXrefRelation = ""; boolean bXref = false; /** * return cross referenced Pidm numbers */ public String getXrefPidm() { return sXrefPidm;} /** * return the cross referenced relation code */ public Stri   More>>


I have a class that looks like this:



			
public class personFind
{
/**
* for holding static items of person
* REMEMBER that to get to the methods of person, use "super.method()."
* This class extends base class "person."
*/
public static class resPerson extends person
{ //notice: Constructor is in class person
String sXrefPidm = "";
String sXrefRelation = "";
boolean bXref = false;
/**
* return cross referenced Pidm numbers
*/
public String getXrefPidm() { return sXrefPidm;}
/**
* return the cross referenced relation code
*/
public String getXrefRelation() { return sXrefRelation;}
// and so on
}
public void personFind(){}

//other methods
}




Using the following I can access all of the methods and properties:


			
<'@ page import="personFind.*">
...
personFind resPer = new personFind();


But, I want to forward the properties to other servlets in my application so I thought re-structuring as follows would work:



but if I use <'jsp:useBean ...>


			
<'jsp:useBean id="myPerson" scope="session" class="personFind.resPerson">
<'% //initialize access to property bean
myPerson.resPerson();
%'>
<'/jsp:useBean>

I get "inner class not found" or "class not found" (in class personFind).



Any help would be grateful. I am assuming this is an "I-D-TEN-T" error on my part.
Would someone please 'tactfully' point this out if so...

-Dane

   <<Less
About | Sitemap | Contact