Re: Struts doesn't love me

2003-03-31 Thread David Graham
You have to place a Collection into the request for the tag to find and 
iterate through.

David



From: Ruben Pardo <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Struts doesn't love me
Date: Mon, 31 Mar 2003 19:48:33 +0200 (CEST)
Hi everybody!

  I've got the next problem. I don't know how I can pass a business object 
to a  tag when it's call from an action,

in struts-config.xml



validate="true"

type="com.profesor.proyectos.ProyectosAction"

scope="request"

name="proyectosForm"

parameter="method">



  

 

In my Dispatch action i've got 

public ActionForward mostrar(ActionMapping mapping,

ActionForm form,

HttpServletRequest request,

HttpServletResponse response) throws IOException,ServletException

{

String target=new String("exito");

BusinessObject = getProyectos();

???

return mapping.findForward(target);

}

And in my muestraProyectos.jsp... and I don't know

   

  

  

I test almost everything and i search in documentation but i don't know 
what i have to write that fit it properly.



Thanks,



-
Yahoo! Messenger
Nueva versión: Super Webcam, voz, caritas animadas, y más 
#161;Gratis!


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Struts doesn't love me

2003-03-31 Thread Ruben Pardo

Hi everybody!

  I've got the next problem. I don't know how I can pass a business object to a  tag when it's call from an action,  

in struts-config.xml





   

 

In my Dispatch action i've got 

public ActionForward mostrar(ActionMapping mapping,

ActionForm form,

HttpServletRequest request,

HttpServletResponse response) throws IOException,ServletException

{

String target=new String("exito");

BusinessObject = getProyectos();

???

return mapping.findForward(target); 

}

And in my muestraProyectos.jsp... and I don't know 

   

  

  

I test almost everything and i search in documentation but i don't know what i have to 
write that fit it properly.

 

Thanks,




-
Yahoo! Messenger
Nueva versión: Super Webcam, voz, caritas animadas, y más #161;Gratis!