Yes, this is possible.

<jsp:useBean id="anyName" class="org.alexmeyer.AnyClass"
type="org.alexmeyer.AnyInterface" />

You can imagine this like:
AnyClass anyClass = (AnyInterface)new AnyClass();

Is this that what you mean???

Greetings Alex

 +-----------------+
 | Alexander Meyer |
 +-----------------+--------------------------------+
 | Sponackerweg 54                                  |
 | 63808 Haibach                                    |
 |                                                  |
 | Tel. 0 60 21 / 61 05 35                          |
 | E-Mail [EMAIL PROTECTED]                        |
 | Homepage http://www.alexmeyer.org                |
 |                                                  |
 | Zertifikate:                                     |
 | Brainbench Certified Master Java Server Pages    |
 | (JSP 1.1) Developer                              |
 | Brainbench Certified Master PHP 4 Developer      |
 | Brainbench Certified Master JavaScript Developer |
 | Brainbench Certified Master HTML 3.2 Developer   |
 | Brainbench Certified Java 2 Developer            |
 | Brainbench Certified XML Developer               |
 | Brainbench Certified HTML 4 Developer            |
 | Brainbench Certified WWW Concepts Architect      |
 +--------------------------------------------------+


> -----Ursprungliche Nachricht-----
> Von: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]Im Auftrag von
> Ravi
> Gesendet: Donnerstag, 8. Marz 2001 07:25
> An: [EMAIL PROTECTED]
> Betreff: Re: Interfaces with JSP's
>
>
> Kevin
>
> the same question is Well explained in jguru.com jsp Faq's
> so why can't u have a look at it?
>
> ravi
>
>
> Kevin Kolle wrote:
>
> > I'm not sure if this is the correct mailing list for a JSP
> question, if not,
> > let me know.
> >
> > Is there a way to use an Interface called from within a JSP
> page with the
> > usebean tag? For example, I would like all gets and sets to go thru an
> > interface, then on the server side, the implementing class
> would take care
> > of the actual logic.
> >
> > Can I use interfaces with JSP's or does the class have to be a
> normal bean
> > class with getters and setters?
> >
> > ______________________________________________
> > FREE Personalized Email at Mail.com
> > Sign up at http://www.mail.com/?sr=signup
> >
> >
> __________________________________________________________________
> _________
> > 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

Reply via email to