Dynamic HTML

2003-11-13 Thread Gonzalez Comesaña, Sergio Eduardo

How can generate input tags  dynamicly ??  My application have fields that are 
dynamics  and sometimes I have 1 fields and sometimes I have N fields. 
Can I control this in struts ??


Thanks 


Sergio.



Aquest missatge electrònic pot  contenir informació confidencial o privilegiada.
Si vostè no és el destinatari del  missatge, o l'ha rebut per error, si us plau
notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut.
Està completament  prohibida  qualsevol  còpia, ús o distribució no autoritzada
del contingut d'aquest missatge electrònic.

Este mensaje electrónico puede contener información confidencial o privilegiada.
Si usted  no es  el destinatario de este mensaje o lo ha recibido por error, por
favor notifíquelo al remitente y destruya el mensaje con todo su contenido.
Queda  expresamente  prohibida  cualquier  copia, utilización o  distribución no
autorizada del contenido de este mensaje electrónico.

This e-mail may contain confidential and/or privileged information.
If you  are  not the  intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any  unauthorized  copying,  disclosure  or distribution of the material in this
e-mail is strictly forbidden.


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



RE : Dynamic HTML

2003-11-13 Thread Franck
 -Message d'origine-
 De : Gonzalez Comesaña [mailto:Gonzalez Comesaña]
 Envoyé : jeudi 13 novembre 2003 11:36
 À : Struts Users Mailing List
 Objet : Dynamic HTML
 
 
 
 How can generate input tags  dynamicly ??  My application
 have fields that are dynamics  and sometimes I have 1 fields 
 and sometimes I have N fields. 
 Can I control this in struts ??
 
 
 Thanks
 
 
 Sergio.


Yes, with indexed or nested properties
Example :

public class InfoForm extends ValidatorForm{// defined in session
scope in struts config
Info info;
public Info getInfo() {
return info;
}
public void setInfo(Info info) {
this.info = info;
}  
}
public class Info implements Serializable, GroupByItem {
ArrayList smsList = new ArrayList();// the dynamic
indexed property
public ArrayList getSmsList() {
return this.smsList;
}
public void setSmsList(ArrayList newSmsList) {
this.smsList = newSmsList;
}
public void setAddSmsButton(String empty) {
Sms sms = new Sms();
this.addSms(sms);
}
public void commitSmsDelete() {
for (int index=0; indexsmsList.size(); index++) {
Sms sms = (Sms)smsList.get(index);
if (sms.getCheckDeleted() == true) {
this.removeSms(sms);
}
}
}
public void addSms(Sms sms){
  this.smsList.add(sms);
}
}

nested:nest property=info
nested:iterate property=smsList indexId=index 
nested:submit property=deleteSmsButton/ // on
Sms class there is a boolean property deleteSmsButton
/nested:iterate
nested:submit property=addSmsButton/
/nested:nest 

Bye 
Franck


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



Re: Dynamic HTML

2003-11-13 Thread Affan Qureshi
There are quite a few ways to do this and you can find help on this 
list. I prefer the Nested Tags to do this.
Affan
Gonzalez wrote:
How can generate input tags  dynamicly ??  My application have fields that are dynamics  and sometimes I have 1 fields and sometimes I have N fields. 
Can I control this in struts ??

Thanks 

Sergio.


Aquest missatge electrònic pot  contenir informació confidencial o privilegiada.
Si vostè no és el destinatari del  missatge, o l'ha rebut per error, si us plau
notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut.
Està completament  prohibida  qualsevol  còpia, ús o distribució no autoritzada
del contingut d'aquest missatge electrònic.

Este mensaje electrónico puede contener información confidencial o privilegiada.
Si usted  no es  el destinatario de este mensaje o lo ha recibido por error, por
favor notifíquelo al remitente y destruya el mensaje con todo su contenido.
Queda  expresamente  prohibida  cualquier  copia, utilización o  distribución no
autorizada del contenido de este mensaje electrónico.

This e-mail may contain confidential and/or privileged information.
If you  are  not the  intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any  unauthorized  copying,  disclosure  or distribution of the material in this
e-mail is strictly forbidden.



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


Dynamic Html Tree Menus - Java Beans.

2003-07-31 Thread Pat Quinn
I'm looking for a tag library to aid the rendering of a Tree Menu using 
session/request stored objects.
I want to included the menu data as a Java Bean in HttpSession for each user 
and then use tag libs in my JSP's. I've looked into the StrutsMenu Offering 
for Dynamic Menus but it loads menu data from an XML file.

Any ideas or am i better off to develop my own custom tag lib?

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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