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 logic 
iterate tag when it's call from an action,  

in struts-config.xml

action path=/Proyectos

validate=true

type=com.profesor.proyectos.ProyectosAction  

scope=request

name=proyectosForm 

parameter=method

set-property property=inicioResults value=true /

  forward name=exito path=/muestraProyectos.jsp redirect=true / 

 /action

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 

   logic:iterate id=muestra name= parameter= 

  bean:write name=muestra /

  /logic:iterate

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 versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s #161;Gratis!

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 logic iterate tag when it's call from an action,

in struts-config.xml

action path=/Proyectos

validate=true

type=com.profesor.proyectos.ProyectosAction

scope=request

name=proyectosForm

parameter=method

set-property property=inicioResults value=true /

  forward name=exito path=/muestraProyectos.jsp 
redirect=true /

 /action

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

   logic:iterate id=muestra name= parameter= 

  bean:write name=muestra /

  /logic:iterate

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 versioacute;n: Super Webcam, voz, caritas animadas, y maacute;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]