julio,
When using Beans in JSPs you have to use the fully
qualified ( package and class )class name of the bean.
Because when the JSP is compiled into a Servlet
the following JSP useBean tag ...
<jsp:useBean id="myBean" class="ua.beans.MyBean" scope="session" />
gets compiled into servlet with the following code..
myBean = (ua.beans.MyBean)
java.beans.Beans.instantiate(getClass().getClassLoader(),
"ua.beans.MyBean");
so if the fully qualified class name of the Bean is not
used then the java.beans.Beana.instantiate() method
will not be able to correctly refer to the class ( bean )
that you want to use.
Hope that helps,
Jorge
On Tue, 20 Nov 2001 00:03:10 -0000, Pro_JavaServer_Pages wrote:
-----------------------------------------------
When replying to the digest, please quote only
relevant material, and edit the subject line to
reflect the message you are replying to.
-----------------------------------------------
PRO_JSP Digest for Monday, November 19, 2001.
1. Re: How to set Tomcat classpath for jsp Beans ---
2. Re: How to set Tomcat classpath for jsp Beans ---
3. Re: How to set Tomcat classpath for jsp Beans ---
4. jspSmartUpload
----------------------------------------------------------------------
Subject: Re: How to set Tomcat classpath for jsp Beans ---
From: "robinson p m" <robinson_pm@r...>
Date: 19 Nov 2001 05:57:42 -0000
X-Message-Number: 1
=0D=0Ahi,=0D=0AWithout getting in to details , i would say that=0D=0Ayou
ha
ve to put your compiled servlets in to =0D=0AWEB-INF/classes forder. No
nee
d of making a jar file.=0D=0Athen use jsp:useBean....=0D=0Ahope this
helps.
=0D=0A=0D=0A=0D=0AOn Sun, 18 Nov 2001 Julio Oliveira wrote :=0D=0A> > =0D
=0A> > Hi man's =0D=0A> > =0D=0A> > Sorry but i have a problem..=0D=0A> >
=0D=0A> > do you now about this, or now a place where i have=0D=0A> >
to=0D
=0A> > pay for a service at the internet and i can't have=0D=0A> > the=0D
=0A> > answer of this....=0D=0A> > =0D=0A> > Thanks in advanced....=0D=0A>
> =0D=0A> > If you have time this is the problem................=0D=0A> >
=0D=0A> > I have a page with several comboBox that I have to=0D=0A> > take
from a dinamic sql......=0D=0A> > =0D=0A> >=0D=0A>
************************
********************************-=0D=0A>
**********************************
**********************-=0D=0A> *******=0D=0A> > =0D=0A> > If i compile the
servlet all is good i put the=0D=0A> > .class=0D=0A> > at the
web-inf\class
es.=0D=0A> > =0D=0A> > The problem is when i have the .jsp and <jsp =0D
=0A> > use:bean class=3D"MyClass" =0D=0A> > =0D=0A> > I don't know
where
to put it , i do a jar and put at=0D=0A> > the jre of java and nothing
hap
pen,=0D=0A> > =0D=0A> > I'm doing a e-commerce jsp 1-> servlet -> Bean
=0D=0A> > 1->=0D=0A> > Bean 2 -- (this have the data)=0D=0A> > =0D=0A> >
An
d i have to take the data from Bean 2 at the jsp =0D=0A> > 2=0D=0A> > -
fi
nal how is dispatcher from the servlet=0D=0A> > =0D=0A> > The servlet take
the request from the jsp 1 ( a=0D=0A> > botton submit )=0D=0A> > =0D=0A>
>
Instance the first bean 1 how instanciate another=0D=0A> > bean=0D=0A> >
3
how is the connection bean=0D=0A> > =0D=0A> > after the bean 1 whit the
co
nnection call the=0D=0A> > database=0D=0A> > and take the data, and put it
in Bean 2 ( a Vector=0D=0A> > with several items)=0D=0A> > =0D=0A> > The
p
roblem.=0D=0A> > =0D=0A> > 1. when i came back to the servet i put the
=0D=0A> > vector=0D=0A> > in the session setAttribute but i do the=0D=0A>
> removeAllElements and nothing hapens =0D=0A> > next time the Vector have
the new items more the=0D=0A> > others.=0D=0A> > =0D=0A> > 2. I have a
d
ispatcher from servlet to a jsp2 how=0D=0A> > is to take the Vector and
see
it at the browser,=0D=0A> > (now=0D=0A> > i get it with the
getAttribute)
=0D=0A> > =0D=0A> > 3. the problem if at the jsp2 i put the
useBean=0D
=0A> > --> the class is not see for it (but is alive)=0D=0A> > =0D=0A> >
*
** the jsp2 is here=0D=0A> > =0D=0A> > <html>=0D=0A> > <head>=0D=0A> >
=0D
=0A> > =0D=0A> > <title> Simulaci=F3n 1 </title>=0D=0A> > </head>=0D=0A> >
=0D=0A> > <body>=0D=0A> > =0D=0A> > calendar=0D=0A> > =0D=0A> > =0D=0A> >
<
jsp:useBean id=3D'hora' scope =3D 'session' class=3D=0D=0A> >
'dates.JspCal
endar2' type=3D'dates.JspCalendar2' /> =0D=0A> > =0D=0A> > =0D=0A> >
=0D=0A
> > <jsp:useBean id=3D'comBean' scope =3D 'session' class=3D=0D=0A> >
'Comb
oBeans' /> =0D=0A> > =0D=0A> > // nothing happens with this line =0D=0A>
> =0D=0A> > // where i have to put the ComboBeans for it work=0D=0A> >
=0D
=0A> > // Can=B4t i take the instance of the servlet=0D=0A> >
(comBean)=0D
=0A> > and take the control of the Beanssss=0D=0A> > =0D=0A> > =0D=0A> >
=0D=0A> > =0D=0A> > Hoy es : <jsp:getProperty name=3D"hora"=0D=0A> >
pro
perty=3D"dayOfMonth" />=0D=0A> > =0D=0A> > La hora es :
<jsp:getProperty
name=3D"hora"=0D=0A> > property=3D"time" />=0D=0A> > =0D=0A> > =0D=0A> >
=0D=0A> > <% =0D=0A> > =0D=0A> > =0D=0A> > =0D=0A> > =0D=0A> > String
val
ue2 =3D=0D=0A> > session.getAttribute("comboVector").toString();=0D=0A> >
=0D=0A> > out.println("valor recuperado del grabado en=0D=0A> >
cargoComb
o2 Nivel 2 " );=0D=0A> > out.println( value2 );=0D=0A> > =0D=0A> >
%>=0D
=0A> > =0D=0A> > =0D=0A> > </body>=0D=0A> > </html>=0D=0A> > =0D=0A> >
=0D
=0A> >=0D=0A>
********************************************************-=0D
=0A> ********************************************************-=0D=0A>
*****
************=0D=0A> > =0D=0A> > =3D=3D=3D=3D=3D=0D=0A> > Julio
Oliveira=0D
=0A> > Oliveira_julio@y...=0D=0A> > =0D=0A> > Club de Usuarios de
Java
de Argentina=0D=0A> > Subscribite en :=0D=0A> > =0D=0A> >
mailto:AUBA-JBui
lder-subscribe@y...=0D=0A> > =0D=0A> > Conectate a Internet
GRAT
IS con Yahoo! Conexi=F3n: =0D=0A> > http://conexion.yahoo.com.ar=0D=0A> >
=0D=0A> > ---=0D=0A> > =0D=0A> > Your message: (INMAIL-ID:45047)=0D=0A> >
=0D=0A> > Return-Path: <oliveira_julio@y...>=0D=0A> > Received: from
w
eb10701.mail.yahoo.com=0D=0A> > ([216.136.130.209]) by mail.p2p.wrox.com
wi
th SMTP=0D=0A> > (ListManager WIN32 version 4.2); Sat, 17 Nov 2001=0D=0A>
>
20:25:20 -0000=0D=0A> > Message-ID:=0D=0A> >
<20011117201625.39069.qmail@w...
eb10701.mail.yahoo.com>=0D=0A> > Received: from [200.32.115.129] by=0D=0A>
> web10701.mail.yahoo.com via HTTP; Sat, 17 Nov 2001=0D=0A> > 17:16:25
ART
=0D=0A> > Date: Sat, 17 Nov 2001 17:16:25 -0300 (ART)=0D=0A> > From:
=3D?is
o-8859-1?q?Julio=3D20Oliveira?=3D=0D=0A> >
<oliveira_julio@y...>=0D=0A
> > Subject: How to set Tomcat classpath for jsp Beans=0D=0A> > To: java
e
-commerce wrox=0D=0A> > <java_ecommerce@p...>,=0D=0A> > java
howt
o wrox <java_howto@p...>,=0D=0A> > pro jsp wrox
<pro_jsp@p...
.com>, Servlets=0D=0A> > <servlets@p...>=0D=0A> > MIME-Version:
1.0
=0D=0A> > Content-Type: text/plain; charset=3Diso-8859-1=0D=0A> >
Content-T
ransfer-Encoding: 8bit=0D=0A> > =0D=0A> > Hi man's =0D=0A> > =0D=0A> >
Sorr
y but i have a problem..=0D=0A> > =0D=0A> > do you now about this, or now
a
place where i have=0D=0A> > to=0D=0A> > pay for a service at the internet
and i can't have=0D=0A> > the=0D=0A> > answer of this....=0D=0A> > =0D=0A>
> Thanks in advanced....=0D=0A> > =0D=0A> > If you have time this is the
pr
oblem................=0D=0A> > =0D=0A> > I have a page with several
comboBo
x that I have to=0D=0A> > take from a dinamic sql......=0D=0A> > =0D=0A>
>
=0D=0A> ********************************************************-=0D=0A>
**
******************************************************-=0D=0A> *******=0D
=0A> > =0D=0A> > If i compile the servlet all is good i put the=0D=0A> >
.c
lass=0D=0A> > at the web-inf\classes.=0D=0A> > =0D=0A> > The problem is
whe
n i have the .jsp and <jsp =0D=0A> > use:bean class=3D"MyClass"
=0D=0A
> > =0D=0A> > I don't know where to put it , i do a jar and put at=0D=0A>
>
the jre of java and nothing happen,=0D=0A> > =0D=0A> > I'm doing a
e-comme
rce jsp 1-> servlet -> Bean =0D=0A> > 1->=0D=0A> > Bean 2 -- (this have
t
he data)=0D=0A> > =0D=0A> > And i have to take the data from Bean 2 at
the
jsp =0D=0A> > 2=0D=0A> > - final how is dispatcher from the
servlet=0D=0A>
> =0D=0A> > The servlet take the request from the jsp 1 ( a=0D=0A> >
bott
on submit )=0D=0A> > =0D=0A> > Instance the first bean 1 how instanciate
an
other=0D=0A> > bean=0D=0A> > 3 how is the connection bean=0D=0A> > =0D=0A>
> after the bean 1 whit the connection call the=0D=0A> > database=0D=0A> >
and take the data, and put it in Bean 2 ( a Vector=0D=0A> > with several
i
tems)=0D=0A> > =0D=0A> > The problem.=0D=0A> > =0D=0A> > 1. when i came
back to the servet i put the=0D=0A> > vector=0D=0A> > in the session
setAt
tribute but i do the=0D=0A> > removeAllElements and nothing hapens =0D=0A>
> next time the Vector have the new items more the=0D=0A> > others.=0D=0A>
> =0D=0A> > 2. I have a dispatcher from servlet to a jsp2 how=0D=0A> >
i
s to take the Vector and see it at the browser,=0D=0A> > (now=0D=0A> > i
ge
t it with the getAttribute)=0D=0A> > =0D=0A> > 3. the problem if at the
jsp2 i put the useBean=0D=0A> > --> the class is not see for it (but is
a
live)=0D=0A> > =0D=0A> > *** the jsp2 is here=0D=0A> > =0D=0A> >
<html>=0D
=0A> > <head>=0D=0A> > =0D=0A> > =0D=0A> > <title> Simulaci=F3n 1
</title>
=0D=0A> > </head>=0D=0A> > =0D=0A> > <body>=0D=0A> > =0D=0A> >
calendar=0D
=0A> > =0D=0A> > =0D=0A> > <jsp:useBean id=3D'hora' scope =3D 'session'
cla
ss=3D=0D=0A> > 'dates.JspCalendar2' type=3D'dates.JspCalendar2' /> =0D=0A>
> =0D=0A> > =0D=0A> > =0D=0A> > <jsp:useBean id=3D'comBean' scope =3D
'sess
ion' class=3D=0D=0A> > 'ComboBeans' /> =0D=0A> > =0D=0A> > // nothing
hap
pens with this line =0D=0A> > =0D=0A> > // where i have to put the
ComboBea
ns for it work=0D=0A> > =0D=0A> > // Can=B4t i take the instance of the
se
rvlet=0D=0A> > (comBean)=0D=0A> > and take the control of the Beanssss=0D
=0A> > =0D=0A> > =0D=0A> > =0D=0A> > =0D=0A> > Hoy es :
<jsp:getProperty
name=3D"hora"=0D=0A> > property=3D"dayOfMonth" />=0D=0A> > =0D=0A> > La
h
ora es : <jsp:getProperty name=3D"hora"=0D=0A> > property=3D"time"
/>=0D
=0A> > =0D=0A> > =0D=0A> > =0D=0A> > <% =0D=0A> > =0D=0A> > =0D=0A> > =0D
=0A> > =0D=0A> > String value2 =3D=0D=0A> >
session.getAttribute("comboVe
ctor").toString();=0D=0A> > =0D=0A> > out.println("valor recuperado del
g
rabado en=0D=0A> > cargoCombo2 Nivel 2 " );=0D=0A> > out.println(
value2
);=0D=0A> > =0D=0A> > %>=0D=0A> > =0D=0A> > =0D=0A> > </body>=0D=0A> >
</h
tml>=0D=0A> > =0D=0A> > =0D=0A> >=0D=0A>
**********************************
**********************-=0D=0A>
********************************************
************-=0D=0A> *****************=0D=0A> > =0D=0A> > =3D=3D=3D=3D=3D
=0D=0A> > Julio Oliveira=0D=0A> > Oliveira_julio@y...=0D=0A> >
=0D=0A>
> Club de Usuarios de Java de Argentina=0D=0A> > Subscribite en :=0D=0A>
>
=0D=0A> > mailto:AUBA-JBuilder-subscribe@y...=0D=0A> > =0D=0A>
> Conectate a Internet GRATIS con Yahoo! Conexi=F3n: =0D=0A> >
http://conex
ion.yahoo.com.ar=0D=0A> > =0D=0A> =0D=0A> =3D=3D=3D=3D=3D=0D=0A> Julio
Oli
veira=0D=0A> Oliveira_julio@y...=0D=0A> =0D=0A> Club de Usuarios de
Ja
va de Argentina=0D=0A> Subscribite en :=0D=0A> =0D=0A>
mailto:AUBA-JBuilder
-subscribe@y...=0D=0A> =0D=0A> Conectate a Internet GRATIS con
Y
ahoo! Conexi=F3n: =0D=0A> http://conexion.yahoo.com.ar=0D=0A> =0D=0A> ---
=0D=0A> Do you need true END-TO-END (e2e) Java Messaging (JMS)? =0D=0A>
So
ftwired=0D=0A> offers industry's ONLY complete 100% JMS messaging =0D=0A>
s
olutions for your=0D=0A> needs TODAY.=0D=0A> Visit
http://adtracking.wrox.c
om/track.asp?x=3Dp2p%2Fe%2Fj-=0D=0A>
ava%2Dsoftwired&url=3Dwww.softwired-in
c.com NOW and find=0D=0A> out more!=0D=0A> Our unique product range
include
s: iBus//Mobile =0D=0A> (wireless data),=0D=0A> iBus//MessageBus (IP
Multic
ast), iBus//MessageServer =0D=0A> (store and forward)=0D=0A> and much
more!
=0D=0A> ---=0D=0A> You are currently subscribed to pro_jsp as: =0D=0A>
robi
nson_pm@r...=0D=0A> To unsubscribe send a blank email to =0D=0A>
$subst('Email.Unsub')=0D=0A> =0D=0A> =0D=0A =0A
----------------------------------------------------------------------
Subject: Re: How to set Tomcat classpath for jsp Beans ---
From: =?iso-8859-1?q?Julio=20Oliveira?= <oliveira_julio@y...>
Date: Mon, 19 Nov 2001 05:48:06 -0300 (ART)
X-Message-Number: 2
Hi man
I do that i put all servelt there and don't have
problem.
The problem is with the jsp:beans
Whit this all is good
<jsp:useBean id='hora' scope = 'page' class
'dates.JspCalendar' type='dates.JspCalendar' />
But if I put
<jsp:useBean id='' scope = 'session' class= 'myBean'
/>
it don't take the beans myBean......
thanks for all
julio oliveira
buenos aires - Argentina
--- robinson p m <robinson_pm@r...>
escribi?: >
>
> hi,
> Without getting in to details , i would say that
> you have to put your compiled servlets in to
> WEB-INF/classes forder. No need of making a jar
> file.
> then use jsp:useBean....
> hope this helps.
>
>
> On Sun, 18 Nov 2001 Julio Oliveira wrote :
> > >
> > > Hi man's
> > >
> > > Sorry but i have a problem..
> > >
> > > do you now about this, or now a place where i
> have
> > > to
> > > pay for a service at the internet and i can't
> have
> > > the
> > > answer of this....
> > >
> > > Thanks in advanced....
> > >
> > > If you have time this is the
> problem................
> > >
> > > I have a page with several comboBox that I have
> to
> > > take from a dinamic sql......
> > >
> > >
> >
>
********************************************************-
> >
>
********************************************************-
> > *******
> > >
> > > If i compile the servlet all is good i put the
> > > .class
> > > at the web-inf\classes.
> > >
> > > The problem is when i have the .jsp and <jsp
> > > use:bean class="MyClass"
> > >
> > > I don't know where to put it , i do a jar and
> put at
> > > the jre of java and nothing happen,
> > >
> > > I'm doing a e-commerce jsp 1-> servlet -> Bean
>
> > > 1->
> > > Bean 2 -- (this have the data)
> > >
> > > And i have to take the data from Bean 2 at the
> jsp
> > > 2
> > > - final how is dispatcher from the servlet
> > >
> > > The servlet take the request from the jsp 1 ( a
> > > botton submit )
> > >
> > > Instance the first bean 1 how instanciate
> another
> > > bean
> > > 3 how is the connection bean
> > >
> > > after the bean 1 whit the connection call the
> > > database
> > > and take the data, and put it in Bean 2 ( a
> Vector
> > > with several items)
> > >
> > > The problem.
> > >
> > > 1. when i came back to the servet i put the
> > > vector
> > > in the session setAttribute but i do the
> > > removeAllElements and nothing hapens
> > > next time the Vector have the new items more the
> > > others.
> > >
> > > 2. I have a dispatcher from servlet to a jsp2
> how
> > > is to take the Vector and see it at the browser,
> > > (now
> > > i get it with the getAttribute)
> > >
> > > 3. the problem if at the jsp2 i put the
> useBean
> > > --> the class is not see for it (but is alive)
> > >
> > > *** the jsp2 is here
> > >
> > > <html>
> > > <head>
> > >
> > >
> > > <title> Simulaci?n 1 </title>
> > > </head>
> > >
> > > <body>
> > >
> > > calendar
> > >
> > >
> > > <jsp:useBean id='hora' scope = 'session' class
> > > 'dates.JspCalendar2' type='dates.JspCalendar2'
> />
> > >
> > >
> > >
> > > <jsp:useBean id='comBean' scope = 'session'
> class
> > > 'ComboBeans' />
> > >
> > > // nothing happens with this line
> > >
> > > // where i have to put the ComboBeans for it
> work
> > >
> > > // Can?t i take the instance of the servlet
> > > (comBean)
> > > and take the control of the Beanssss
> > >
> > >
> > >
> > >
> > > Hoy es : <jsp:getProperty name="hora"
> > > property="dayOfMonth" />
> > >
> > > La hora es : <jsp:getProperty name="hora"
> > > property="time" />
> > >
> > >
> > >
> > > <%
> > >
> > >
> > >
> > >
> > > String value2
> > > session.getAttribute("comboVector").toString();
> > >
> > > out.println("valor recuperado del grabado en
> > > cargoCombo2 Nivel 2 " );
> > > out.println( value2 );
> > >
> > > %>
> > >
> > >
> > > </body>
> > > </html>
> > >
> > >
> > >
> >
>
********************************************************-
> >
>
********************************************************-
> > *****************
> > >
> > > =====
> > > Julio Oliveira
> > > Oliveira_julio@y...
> > >
> > > Club de Usuarios de Java de Argentina
> > > Subscribite en :
> > >
> > > mailto:AUBA-JBuilder-subscribe@y...
> > >
> > > Conectate a Internet GRATIS con Yahoo! Conexi?n:
>
> > > http://conexion.yahoo.com.ar
> > >
> > > ---
> > >
> > > Your message: (INMAIL-ID:45047)
> > >
> > > Return-Path: <oliveira_julio@y...>
> > > Received: from web10701.mail.yahoo.com
> > > ([216.136.130.209]) by mail.p2p.wrox.com with
> SMTP
> > > (ListManager WIN32 version 4.2); Sat, 17 Nov
> 2001
> > > 20:25:20 -0000
> > > Message-ID:
> > >
> <20011117201625.39069.qmail@w...>
> > > Received: from [200.32.115.129] by
> > > web10701.mail.yahoo.com via HTTP; Sat, 17 Nov
> 2001
> > > 17:16:25 ART
> > > Date: Sat, 17 Nov 2001 17:16:25 -0300 (ART)
> > > From: =?iso-8859-1?q?Julio=20Oliveira?
> > > <oliveira_julio@y...>
> > > Subject: How to set Tomcat classpath for jsp
> Beans
>
=== message truncated ===
=====
Julio Oliveira
Oliveira_julio@y...
Club de Usuarios de Java de Argentina
Subscribite en :
mailto:AUBA-JBuilder-subscribe@y...
Conectate a Internet GRATIS con Yahoo! Conexi?n:
http://conexion.yahoo.com.ar
----------------------------------------------------------------------
Subject: Re: How to set Tomcat classpath for jsp Beans ---
From: imtiaz hussain <imtiaz_uet@y...>
Date: Mon, 19 Nov 2001 01:39:53 -0800 (PST)
X-Message-Number: 3
--0-618770244-1006162793=:26265
Content-Type: text/plain; charset=us-ascii
Julio
do not worry about u r problem,at this time i m very busy but surely i
will rite u
any other time
good bye
Julio Oliveira <oliveira_julio@y...> wrote: Hi man
I do that i put all servelt there and don't have
problem.
The problem is with the jsp:beans
Whit this all is good
'dates.JspCalendar' type='dates.JspCalendar' />
But if I put
/>
it don't take the beans myBean......
thanks for all
julio oliveira
buenos aires - Argentina
--- robinson p m
escribi?: >
>
> hi,
> Without getting in to details , i would say that
> you have to put your compiled servlets in to
> WEB-INF/classes forder. No need of making a jar
> file.
> then use jsp:useBean....
> hope this helps.
>
>
> On Sun, 18 Nov 2001 Julio Oliveira wrote :
> > >
> > > Hi man's
> > >
> > > Sorry but i have a problem..
> > >
> > > do you now about this, or now a place where i
> have
> > > to
> > > pay for a service at the internet and i can't
> have
> > > the
> > > answer of this....
> > >
> > > Thanks in advanced....
> > >
> > > If you have time this is the
> problem................
> > >
> > > I have a page with several comboBox that I have
> to
> > > take from a dinamic sql......
> > >
> > >
> >
>
********************************************************-
> >
>
********************************************************-
> > *******
> > >
> > > If i compile the servlet all is good i put the
> > > .class
> > > at the web-inf\classes.
> > >
> > > The problem is when i have the .jsp and > > > use:bean
class="MyClass"
> > >
> > > I don't know where to put it , i do a jar and
> put at
> > > the jre of java and nothing happen,
> > >
> > > I'm doing a e-commerce jsp 1-> servlet -> Bean
>
> > > 1->
> > > Bean 2 -- (this have the data)
> > >
> > > And i have to take the data from Bean 2 at the
> jsp
> > > 2
> > > - final how is dispatcher from the servlet
> > >
> > > The servlet take the request from the jsp 1 ( a
> > > botton submit )
> > >
> > > Instance the first bean 1 how instanciate
> another
> > > bean
> > > 3 how is the connection bean
> > >
> > > after the bean 1 whit the connection call the
> > > database
> > > and take the data, and put it in Bean 2 ( a
> Vector
> > > with several items)
> > >
> > > The problem.
> > >
> > > 1. when i came back to the servet i put the
> > > vector
> > > in the session setAttribute but i do the
> > > removeAllElements and nothing hapens
> > > next time the Vector have the new items more the
> > > others.
> > >
> > > 2. I have a dispatcher from servlet to a jsp2
> how
> > > is to take the Vector and see it at the browser,
> > > (now
> > > i get it with the getAttribute)
> > >
> > > 3. the problem if at the jsp2 i put the
> useBean
> > > --> the class is not see for it (but is alive)
> > >
> > > *** the jsp2 is here
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > calendar
> > >
> > >
> > > > > > 'dates.JspCalendar2' type='dates.JspCalendar2'
> />
> > >
> > >
> > >
> > > > class
> > > 'ComboBeans' />
> > >
> > > // nothing happens with this line
> > >
> > > // where i have to put the ComboBeans for it
> work
> > >
> > > // Can?t i take the instance of the servlet
> > > (comBean)
> > > and take the control of the Beanssss
> > >
> > >
> > >
> > >
> > > Hoy es : > > > property="dayOfMonth" />
> > >
> > > La hora es : > > > property="time" />
> > >
> > >
> > >
> > > > > >
> > >
> > >
> > >
> > > String value2
> > > session.getAttribute("comboVector").toString();
> > >
> > > out.println("valor recuperado del grabado en
> > > cargoCombo2 Nivel 2 " );
> > > out.println( value2 );
> > >
> > > %>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
********************************************************-
> >
>
********************************************************-
> > *****************
> > >
> > > =====
> > > Julio Oliveira
> > > Oliveira_julio@y...
> > >
> > > Club de Usuarios de Java de Argentina
> > > Subscribite en :
> > >
> > > mailto:AUBA-JBuilder-subscribe@y...
> > >
> > > Conectate a Internet GRATIS con Yahoo! Conexi?n:
>
> > > http://conexion.yahoo.com.ar
> > >
> > > ---
> > >
> > > Your message: (INMAIL-ID:45047)
> > >
> > > Return-Path:
> > > Received: from web10701.mail.yahoo.com
> > > ([216.136.130.209]) by mail.p2p.wrox.com with
> SMTP
> > > (ListManager WIN32 version 4.2); Sat, 17 Nov
> 2001
> > > 20:25:20 -0000
> > > Message-ID:
> > >
> <20011117201625.39069.qmail@w...>
> > > Received: from [200.32.115.129] by
> > > web10701.mail.yahoo.com via HTTP; Sat, 17 Nov
> 2001
> > > 17:16:25 ART
> > > Date: Sat, 17 Nov 2001 17:16:25 -0300 (ART)
> > > From: =?iso-8859-1?q?Julio=20Oliveira?
> > >
> > > Subject: How to set Tomcat classpath for jsp
> Beans
>
=== message truncated ===
=====
Julio Oliveira
Oliveira_julio@y...
Club de Usuarios de Java de Argentina
Subscribite en :
mailto:AUBA-JBuilder-subscribe@y...
Conectate a Internet GRATIS con Yahoo! Conexi?n:
http://conexion.yahoo.com.ar
---
Do you need true END-TO-END (e2e) Java Messaging (JMS)? Softwired
offers industry's ONLY complete 100% JMS messaging solutions for your
needs TODAY.
Visit
http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fjava%2Dsoftwired&url=www.softwired-inc.com
NOW and find
out more!
Our unique product range includes: iBus//Mobile (wireless data),
iBus//MessageBus (IP Multicast), iBus//MessageServer (store and forward)
and much more!
---------------------------------
Do You Yahoo!?
Find the one for you at Yahoo! Personals.
--0-618770244-1006162793=:26265
Content-Type: text/html; charset=us-ascii
<P> Julio
<P>do not worry about u r problem,at this time i m very busy but surely i
will rite u
<P>any other time
<P>good bye
<P> <B><I>Julio Oliveira <oliveira_julio@y...></I></B>
wrote:
<BLOCKQUOTE style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px;
PADDING-LEFT: 5px">Hi man<BR>I do that i put all servelt there and don't
have<BR>problem.<BR><BR>The problem is with the jsp:beans <BR><BR>Whit this
all is good<BR><BR><?XML:NAMESPACE PREFIX = JSP /><JSP:USEBEAN class="<br"
id=hora scope="page">'dates.JspCalendar' type='dates.JspCalendar' />
<BR><BR>But if I put <BR><BR><JSP:USEBEAN class=myBean id="" scope="session"
<br>/> <BR><BR>it don't take the beans myBean......<BR><BR>thanks for
all<BR><BR>julio oliveira<BR>buenos aires - Argentina<BR><BR><BR>---
robinson p m <ROBINSON_PM@R...><BR>escribi?: > <BR>>
<BR>> hi,<BR>> Without getting in to details , i would say
that<BR>> you have to put your compiled servlets in to <BR>>
WEB-INF/classes forder. No need of making a jar<BR>> file.<BR>> then
use jsp:useBean....<BR>> hope this helps.<BR>> <BR>> <BR>> On
Sun, 18 Nov 2001 Julio Oliveira wrote :<BR>> > > <BR>> > >
Hi man's <BR>> > > <BR>> > > Sorry but i have a
problem..<BR>> > > <BR>> > > do you now about this, or now
a place where i<BR>> have<BR>> > > to<BR>> > > pay for
a service at the internet and i can't<BR>> have<BR>> > >
the<BR>> > > answer of this....<BR>> > > <BR>> >
> Thanks in advanced....<BR>> > > <BR>> > > If you have
time this is the<BR>> problem................<BR>> > > <BR>>
> > I have a page with several comboBox that I have<BR>> to<BR>>
> > take from a dinamic sql......<BR>> > > <BR>> >
><BR>>
><BR>><BR>********************************************************-<BR>>
><BR>><BR>********************************************************-<BR>>
> *******<BR>> > > <BR>> > > If i compile the servlet
all is good i put the<BR>> > > .class<BR>> > > at the
web-inf\classes.<BR>> > > <BR>> > > The problem is when i
have the .jsp and <JSP <br>> > > use:bean class="MyClass" <BR>>
> > <BR>> > > I don't know where to put it , i do a jar
and<BR>> put at<BR>> > > the jre of java and nothing
happen,<BR>> > > <BR>> > > I'm doing a e-commerce jsp
1-> servlet -> Bean<BR>> <BR>> > > 1-><BR>> >
> Bean 2 -- (this have the data)<BR>> > > <BR>> > > And
i have to take the data from Bean 2 at the<BR>> jsp <BR>> > >
2<BR>> > > - final how is dispatcher from the servlet<BR>> >
> <BR>> > > The servlet take the request from the jsp 1 (
a<BR>> > > botton submit )<BR>> > > <BR>> > >
Instance the first bean 1 how instanciate<BR>> another<BR>> > >
bean<BR>> > > 3 how is the connection bean<BR>> > >
<BR>> > > after the bean 1 whit the connection call the<BR>>
> > database<BR>> > > and take the data, and put it in Bean 2
( a<BR>> Vector<BR>> > > with several items)<BR>> > >
<BR>> > > The problem.<BR>> > > <BR>> > > 1. when
i came back to the servet i put the<BR>> > > vector<BR>> >
> in the session setAttribute but i do the<BR>> > >
removeAllElements and nothing hapens <BR>> > > next time the Vector
have the new items more the<BR>> > > others.<BR>> > >
<BR>> > > 2. I have a dispatcher from servlet to a jsp2<BR>>
how<BR>> > > is to take the Vector and see it at the
browser,<BR>> > > (now<BR>> > > i get it with the
getAttribute)<BR>> > > <BR>> > > 3. the problem if at the
jsp2 i put the <BR>> useBean<BR>> > > --> the class is not
see for it (but is alive)<BR>> > > <BR>> > > *** the jsp2
is here<BR>> > > <BR>> > > <BR>> > >
<BR>>
> > <BR>> > > <BR>> > > <BR>> > >
<BR>>
> > <BR>> > > <BR>> > > <BR>> > >
calendar<BR>> > > <BR>> > > <BR>> > >
<JSP:USEBEAN class="<br" id=hora scope="session">> > >
'dates.JspCalendar2' type='dates.JspCalendar2'<BR>> /> <BR>> >
> <BR>> > > <BR>> > > <BR>> > >
<JSP:USEBEAN
id=comBean scope="session" <br>> class=<BR>> > > 'ComboBeans'
/> <BR>> > > <BR>> > > // nothing happens with this
line <BR>> > > <BR>> > > // where i have to put the
ComboBeans for it<BR>> work<BR>> > > <BR>> > > // Can?t
i take the instance of the servlet<BR>> > > (comBean)<BR>> >
> and take the control of the Beanssss<BR>> > > <BR>> >
> <BR>> > > <BR>> > > <BR>> > > Hoy es :
<JSP:GETPROPERTY <br name="hora">> > > property="dayOfMonth"
/><BR>> > > <BR>> > > La hora es : <JSP:GETPROPERTY <br
name="hora">> > > property="time" /><BR>> > > <BR>>
> > <BR>> > > <BR>> > > <% <br>> > >
<br>> > > <br>>
> > <br>> > > <br>> > > String value2 =<br>> > >
session.getAttribute("comboVector").toString();<br>> > > <br>> > >
out.println("valor recuperado del grabado en<br>> > > cargoCombo2 Nivel 2 "
);<br>> > > out.println( value2 );<br>> > > <br>> > > %><BR>>
> >
<BR>> > > <BR>> > > <BR>> > > <BR>>
> >
<BR>> > > <BR>> > ><BR>>
><BR>><BR>********************************************************-<BR>>
><BR>><BR>********************************************************-<BR>>
> *****************<BR>> > > <BR>> > > =====<BR>>
> > Julio Oliveira<BR>> > > Oliveira_julio@y...<BR>>
> > <BR>> > > Club de Usuarios de Java de Argentina<BR>>
> > Subscribite en :<BR>> > > <BR>> > >
mailto:AUBA-JBuilder-subscribe@y...<BR>> > > <BR>>
> > Conectate a Internet GRATIS con Yahoo! Conexi?n:<BR>> <BR>>
> > http://conexion.yahoo.com.ar<BR>> > > <BR>> > >
---<BR>> > > <BR>> > > Your message:
(INMAIL-ID:45047)<BR>> > > <BR>> > > Return-Path:
<OLIVEIRA_JULIO@Y...><BR>> > > Received: from
web10701.mail.yahoo.com<BR>> > > ([216.136.130.209]) by
mail.p2p.wrox.com with<BR>> SMTP<BR>> > > (ListManager WIN32
version 4.2); Sat, 17 Nov<BR>> 2001<BR>> > > 20:25:20
-0000<BR>> > > Message-ID:<BR>> > ><BR>>
<20011117201625.39069.qmail@w...><BR>> > >
Received: from [200.32.115.129] by<BR>> > > web10701.mail.yahoo.com
via HTTP; Sat, 17 Nov<BR>> 2001<BR>> > > 17:16:25 ART<BR>>
> > Date: Sat, 17 Nov 2001 17:16:25 -0300 (ART)<BR>> > >
From: =?iso-8859-1?q?Julio=20Oliveira?=<BR>> > >
<OLIVEIRA_JULIO@Y...><BR>> > > Subject: How to set Tomcat
classpath for jsp<BR>> Beans<BR>> <BR>=== message truncated ===
<BR><BR>=====<BR>Julio Oliveira<BR>Oliveira_julio@y...<BR><BR>Club de
Usuarios de Java de Argentina<BR>Subscribite en
:<BR><BR>mailto:AUBA-JBuilder-subscribe@y...<BR><BR>Conectate a
Internet GRATIS con Yahoo! Conexi?n:
<BR>http://conexion.yahoo.com.ar<BR><BR>---<BR>Do you need true END-TO-END
(e2e) Java Messaging (JMS)? Softwired<BR>offers industry's ONLY complete
100% JMS messaging solutions for your<BR>needs TODAY.<BR>Visit
http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fjava%2Dsoftwired&url=www.softwired-inc.com
NOW and find<BR>out more!<BR>Our unique product range includes:
iBus//Mobile (wireless data),<BR>iBus//MessageBus (IP Multicast),
iBus//MessageServer (store and forward)<BR>and much more!<BR>---<BR>You are
currently subscribed to pro_jsp as: imtiaz_uet@y...<BR>To unsubscribe
send a blank email to
$subst('Email.Unsub')<BR><BR></BLOCKQUOTE></JSP:GETPROPERTY></JSP:GETPROPERTY></JSP:USEBEAN><
/JSP:USEBEAN></JSP:USEBEAN></JSP:USEBEAN><p><br><hr
size=1><b>Do You Yahoo!?</b><br>
Find the one for you at <a
href="http://rd.yahoo.com/mktg/mail/txt/tagline/?http://personals.yahoo.com"
target="_blank">Yahoo! Personals</a>.
--0-618770244-1006162793=:26265--
----------------------------------------------------------------------
Subject: jspSmartUpload
From: Mostafa Al-Mallawani <mostof@a...>
Date: Mon, 19 Nov 2001 22:47:48 +0200
X-Message-Number: 4
This is a multi-part message in MIME format.
------=_NextPart_000_0012_01C1714C.4352FD50
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi, I was wondering if any of you have used jspSmartUpload with a MySQL
database.if anyone has, then why do I get a cannot save file in database
error (# 1130)? What are the reasons for this error? Thanks.
Mostafa Al-Mallawani
------=_NextPart_000_0012_01C1714C.4352FD50
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office"
xmlns:w=3D"urn:schemas-microsoft-com:office:word"
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags"
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html;
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@0...">
<o:SmartTagType
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"PersonName"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 69.6pt 72.0pt 69.6pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple
style=3D'tab-interval:36.0pt'>
<div class=3DSection1>
<p class=3DMsoPlainText><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;
font-family:Arial'>Hi, I was wondering if any of you have used
jspSmartUpload
with a MySQL database…if anyone has, then why do I get a cannot
save file
in database error (# 1130)? What are the reasons for this error?
Thanks.<o:p></o:p></span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:black'><span
style=3D'mso-tab-count:
6'> &nbs
p;  
;
&
nbsp; &n
bsp;
</span></span></font><st1:PersonName><font
color=3Dblack face=3DArial><span
style=3D'font-family:Arial;color:black'>Mostafa
Al-Mallawani</span></font></st1:PersonName><font
color=3Dblack face=3DArial><span
style=3D'font-family:Arial;color:black'><o:p></o:p></span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:black'><o:p> </o:p
></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0012_01C1714C.4352FD50--
---
END OF DIGEST
---
Do you need true END-TO-END (e2e) Java Messaging (JMS)? Softwired
offers industry's ONLY complete 100% JMS messaging solutions for your
needs TODAY.
Visit
http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fjava%2Dsoftwired&url=www.softwired-inc.com
NOW and find
out more!
Our unique product range includes: iBus//Mobile (wireless data),
iBus//MessageBus (IP Multicast), iBus//MessageServer (store and forward)
and much more!
_______________________________________________________
http://inbox.excite.com