html:rewrite action problem

2004-03-24 Thread Ruben Pardo
i've got the next tag
html:rewrite
action=/SomeAction?prefix=page=/SomePage

and in the actionConfig  action path=/SomeAction
type=org.apache.type=org.apache.struts.actions.SwitchAction
/action

but i always get an error saying that attribute action
does not defined in the tld?
what could it be?
thanks in advance. 

___
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

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



Multiple validation

2004-03-09 Thread Ruben Pardo
Hi, here is the scenario ...
i've got 4 different validation depending on 4
different javascript tab, i want to do a validation
depending on the tab that you are localized, ie, i
want to validate one field if the user is in the tab
1, other if the user are in tab 2 and so on.
I define in validation.xml 4 different form, and 
call some validate...Form(), or other depending of the
tab, but it doesn't work properly because some code
overwrite other, 
what i could do?
thanks, 


___
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

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



Send the response to a different frame

2004-03-02 Thread Ruben Pardo
Hi , 
I've got a page with 3 frames, the action, forward  to
reload always the page with the 3 frames. If there is
an error, i want to reload only one frame, how can i 
send the response  
from the action to only one frame??
thanks

___
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

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



dynamic generation of select fields problem

2003-12-05 Thread Ruben Pardo
Hi everybody!

  This is my problem, i've to generate a variable
quantity of select fields. The solution i thougth was
a map backed form, that dynamically generate the names
of this fields with JSTL, something like this:

c:forEach  items=${sessionScope} var =farmacia
varStatus=st
 .
  html-el:select property=value(campos${st.count})
   ..
   ..
  /html:select


/c:forEach 

but qhen i try to run this, i've got an
NullPointerException saying me that no getter for
property value(campo1) ...

I don't know what could be the problem, or how i can
solve in other way.

Thanks a lot and any type of help could be aprecciated.

___
Yahoo! Sorteos
¡Ya puedes comprar Lotería de Navidad!
http://yahoo.ventura24.es/

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



updates and dispatcher

2003-04-03 Thread Ruben Pardo

Hi!
That is the problem. I've got a alta.jsp and edita.jsp, the only difference between 
alta.jsp and edita.jsp is the path of the Dispatcher action, because i want the same 
action to be sent the form.
html:form action=/Proyectos?method=alta 
../html:form
and in edita.jsp html:form action=/Proyectos?method=edita
.../html:form
I would like to have only a form instead of two. Is there any way to do that?
thanks


-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s #161;Gratis!

Re: New to Struts

2003-04-02 Thread Ruben Pardo

But ... why are dynaforms  better than BaseMap Form's? i'm using BaseMap Form and i 
think that is a good choice, and if i have to do something in the reset method, i only 
inherit from the BaseMap, in dynaform you can't do a specific reset am i wrong?
Ruben.


-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s #161;Gratis!

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!

Struts-el book

2003-03-30 Thread Ruben Pardo

Hi everybody!
 Is there any book that explain in detail struts-el and JSTL? I'm searching in Struts 
in action by ted husted, Programming Jakarta Struts by chuck cavaness, and Mastering 
Jakarta struts by james goodwill, but I  don't find anything.
Any suggestion?
 


-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s #161;Gratis!