servlets thread: RE: How to take the same Bean at Servlet that i have a t jsp
Hi
I put the bean at the jsp with scope session, but when i take it at the
servlet i have no the same scope because it is blank of information.
Perhaps i have to take some other aditional context or something that.
julio oliveira
buenos aires - Argentina
-----Mensaje original-----
De: Chanoch Wiggers [mailto:ChanochW@w...]
Enviado el: Viernes, 30 de Noviembre de 2001 07:36 a.m.
Para: Servlets
Asunto: [servlets] RE: How to take the same Bean at Servlet that i have
a t jsp
i am not quite sure what your question is but let me guess at answer:
when you put the ClientBean using setProperty() to you specify with what
scope? if not then I seem to remember the default scope is page - that is
why you cant get a hold of it elsewhere. You should add the bean with
session scope and then it should accessible to you in other servlets and
jsps
chanoch
-----Original Message-----
From: yahoo [mailto:Oliveira_julio@y...]
Sent: 30 November 2001 10:44
To: Servlets
Subject: [servlets] How to take the same Bean at Servlet that i have at
jsp
Hi
I'm working at an example:
1. Have ClientBean.java -> it has the cliente information at the web name
and others
2. I instanciate the ClientBean at Program1.jsp wich is call from the
web
3. I put at it with the setpropierty a value to the name
4. I call from a Form an Program2Servlet.java
5. At the doget a catch the session and instantiate the the ClientBean
but i have a new session to that i have at ( 2 )
6. If from Program2Servlet.java do a dispatcher and call Program2.jsp
and instantiate the bean I have the same
What hapen i have to do something with the context at the Servlet... i see
the .jsp compiled and see something like this of
context....
tanks to all
I have working with Tomcat 4.0 at a WIN 2000
Julio Oliveira
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---
SIGS Conference for Java Development
Targeted, focused classes, expertise level classes
taught by Java gurus, rigorous tutorials, and
exhibit floor makes SIGS Conference for Java
Development a learning experience unlike any
other. Join over 10,000 developers and programmers
from across the U.S. and around the world who
have benefited from attending SIGS/101 Conferences.
http://www.javadevcon.com
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
---
SIGS Conference for Java Development
Targeted, focused classes, expertise level classes
taught by Java gurus, rigorous tutorials, and
exhibit floor makes SIGS Conference for Java
Development a learning experience unlike any
other. Join over 10,000 developers and programmers
from across the U.S. and around the world who
have benefited from attending SIGS/101 Conferences.
http://www.javadevcon.com
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com