Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: How to set Tomcat classpath for jsp Beans


Message #1 by =?iso-8859-1?q?Julio=20Oliveira?= <oliveira_julio@y...> on Sat, 17 Nov 2001 17:14:13 -0300 (ART)
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

  Return to Index