BeanUtils.copyProperties() vs. ActionForm-Value Object mapper

2003-02-04 Thread smart_runner23 [EMAIL PROTECTED]
I just found this mapper at:  
http://www.mycgiserver.com/~andrej/technical/struts/struts.jsp

I am just starting to look into this.  I can see right away that the 
advantage to using the mapper is that it's not as ugly.  I think this 
mapper is a step in the right direction, but the fact that it doesn't 
handle Collection or ints, longs, etc is going to kill me.

Anyone know of a better tool out there?

Also, I am assuming that the BeanUtils.copyProperties() method will 
not handle nested beans.  So I will have to manually do that copy 
properties on the nested beans and then manually set those back to 
the parent bean?

Thanks,
Trevor


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




How to use Tiles or templates with CSS and Javascript

2003-01-20 Thread smart_runner23 [EMAIL PROTECTED]
Where do you add your Javascript when using Tiles?  You are not 
supposed to put content into the template file.  

Say you have the standard template:

html:html
head
  titleblah/title
/head
body

tiles:insert attribute=header/
tiles:insert attribute=body/
tiles:insert attribute=footer/
/body
/html


My javascript needs to be called with body onload=start().  Where 
do you put the Javascript and this start() function call?  The 
javascript is needed in the header section, but you cannot put it in 
the header section as the body and head tags have already been 
defined.  Is my only choice to put the javascript and start() call in 
the template file itself?  If that is the case, Tiles is not 
accomplishing anything for me.  Same question about where to put a 
link to an external stylesheet.  

Or am I just missing something obvious?


Thanks.  
Trevor


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