Thanks Philippe,

its Kate's class, not John's:)

The values are fed to the bean via a call to a database.
..and there is lots of them...so I want to keep all that code in the servlet
and associated java classes on the server, not in the jsps.

:))

Kate



-----Original Message-----
From: Philippe Bertramo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 8 November 2000 16:16
To: [EMAIL PROTECTED]
Subject: Re: When is a bean not a bean


John,
Admitting that your class is YourClass and is in the classpath,
why don't you use

<%

YourClass yourObject = new YourClass ();

yourObject.setValue1(value1);
yourObject.setValue2(value2);

yourObject=null;

%>

Excuse me if I this is not the appropriate answer, I'm just waking up.
Philippe

= = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Philippe Bertramo
World Customs Organization
Brussels - Belgium


-----Original Message-----
From: <John Thomas> [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 08:55
To: [EMAIL PROTECTED]
Subject: Re: When is a bean not a bean


Hi,
     <<<<<One needs to purchase Enterprise JRun to use EJB.
My bean is nothing but a class with get/sets.
I do not need to implement transactions/dealocking et al.

So I want to use JRun Professional.
Call the <usebean> tag
...and you get an error message saying that you need to purchase the
Enterprise edition.

Enterprise JRun is about 5K more expensive than Professional JRunI
have been using >>>>



     Isn't it possible to configure tomcat to run under IIS, instead
of JRUN, usebean works perfectly in tomcat.

Regards
John.







Kate Hocking <[EMAIL PROTECTED]>@java.sun.com> on 11/08/2000
11:34:02 AM

Please respond to "A mailing list for discussion about Sun
      Microsystem's Java Servlet API Technology."
      <[EMAIL PROTECTED]>

Sent by:  "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>


To:   [EMAIL PROTECTED]
cc:
Subject:  Re: When is a bean not a bean


> Can any one tell me how to access an object's values (a class
instance
with
> get/sets called "test") that I pass to a jsp from a servlet?
>
> ...*without using the <usebean> tag

You can add the bean to the HttpServletRequest before forwarding to
the JSP.
You can then retrieve the bean from the Request object and use the
getXXX
Methods on the bean. This will not be a generic solution and you need
to
know which getXXX methods are there to hardcode in the JSP. You can
make it
generic by using reflection, but I believe that will will degrade the
performance a lot.


yes, i understand that part.
But how to instantiate the object in the jsp without using
<jsp:usebean id="test" class="testClass" scope="session" />


??





> Trouble is, I am bound by IIS and JRun....and there is a 5k
pricetage for
> accessing the bean.

Can you please explain what do you mean by a 5k pricetag for accessing
the
bean.


One needs to purchase Enterprise JRun to use EJB.
My bean is nothing but a class with get/sets.
I do not need to implement transactions/dealocking et al.

So I want to use JRun Professional.
Call the <usebean> tag
...and you get an error message saying that you need to purchase the
Enterprise edition.

Enterprise JRun is about 5K more expensive than Professional JRun.

:(

Kate


___________________________________________________________________________

To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
____________________________________________________________________________

________________________________________

IMPORTANT:  This email is intended only for the use of the individual
or
entity named above and may contain information that is confidential
and
privileged. The views expressed in this e-mail are those of the author
and
not of the company unless otherwise clearly indicated.  When addressed
to
our clients, any information or quotes contained in this e-mail are
subject
to the terms and conditions relevant at that time to the matter being
addressed.  If you are not the intended recipient and have received
this
e-mail in error, please notify us immediately by return email or
telephone
+61 8 93235555 and delete the e-mail and any attachments without using
or
disclosing the contents in any way.  If you are not the intended
recipient
any dissemination, distribution or copying of this e-mail is strictly
prohibited. Before opening or using attachments, check them for
viruses and
defects.  Our liability is limited to re-supplying any affected
attachments.

___________________________________________________________________________

To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
____________________________________________________________________________
________________________________________

IMPORTANT:  This email is intended only for the use of the individual or
entity named above and may contain information that is confidential and
privileged. The views expressed in this e-mail are those of the author and
not of the company unless otherwise clearly indicated.  When addressed to
our clients, any information or quotes contained in this e-mail are subject
to the terms and conditions relevant at that time to the matter being
addressed.  If you are not the intended recipient and have received this
e-mail in error, please notify us immediately by return email or telephone
+61 8 93235555 and delete the e-mail and any attachments without using or
disclosing the contents in any way.  If you are not the intended recipient
any dissemination, distribution or copying of this e-mail is strictly
prohibited. Before opening or using attachments, check them for viruses and
defects.  Our liability is limited to re-supplying any affected attachments.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to