[compound form bean] copy properties problem

2006-05-14 Thread Michal Ostruszka
Hi all, 
In my application I have an ActionForm which contains some simple properties of 
types: String, int, boolean, but also contains another bean, and indexed 
property (as follows)

ChartForm:
 - String name;
 - SeriesBean[] series;
 - MarkerBean marker;


All the properties in all beans have String or boolean type. I also have 
corresponding Transfer Objects (they are the same structure, altough they have 
other types (line numbers, colors etc.). Now I need to copy my ChartForm to 
ChartFormTO and make type conversion. I've tried to use BeanUtils package, but 
it lets me copy only simple porperties.

Do you know how can I copy indexed properties from SeriesBean[] to 
SeriesBeanTO[] without writing code for all the items? Is it possible to copy 
entire Bean at once? Or do I have to do it manually with each properyt?

Thanks for help.


--
Poznaj Stefana! Zmien komunikator! >>> http://link.interia.pl/f1924


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



Re: Help with Declarative Exceptions

2006-05-14 Thread Paul Benedict
I found my problem. I was treating "path" as if it was a forward.
Too bad exceptions don't have those.

--- Paul Benedict wrote:

> Can someone tell me why this doesn't work? Is this a bug?
> 
> Here's my setup:
> 1) My controller is setup to treat input attributes as forwards.
>
> 
> 2) I have a global exception which goes to my "inputError" path.
>
>  
>
> 
> 3) I have a global forward which is "inputError"
>
>  
>
> 
> 4) And "tile.generalError" is a name of Tile definition.
> 
> When the exception gets thrown in my application, it locates
> the "inputError" forward, but it errrs out on me. The 
> TilesRequestProcessor can't find a "inputError" definition,
> which it shouldn't since I really want "tile.generalError",
> so why isn't it going one more step to resolve it?
> 
> Paul
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Help with Declarative Exceptions

2006-05-14 Thread Paul Benedict
Can someone tell me why this doesn't work? Is this a bug?

Here's my setup:
1) My controller is setup to treat input attributes as forwards.
   

2) I have a global exception which goes to my "inputError" path.
   
 
   

3) I have a global forward which is "inputError"
   
 
   

4) And "tile.generalError" is a name of Tile definition.

When the exception gets thrown in my application, it locates
the "inputError" forward, but it errrs out on me. The 
TilesRequestProcessor can't find a "inputError" definition,
which it shouldn't since I really want "tile.generalError",
so why isn't it going one more step to resolve it?

Paul


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: how to deal with request attributes and validation?

2006-05-14 Thread dario

OK, thanks everybody for help!


dario


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



Re:Tiles without Struts

2006-05-14 Thread Klaus O K
george.dinwiddie writes: >Standalone tiles may be downloaded at 
>http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/tiles-core/ >per 
the short FAQ at >http://struts.apache.org/struts-action/struts-tiles/faq.html 
I downloaded this. It contains no less than 7 nested dist folders, but no 
binary distribution that I can find. Reddin writes: >If you're willing to work 
with unreleased software, please do give >Standalone Tiles a try. From the 
perspective of the JSP API (meaning >the tag interface) nothing has changed. 
The rest of it is beginning >to stabilize and I hope to have it at al least 
alpha status before I >leave for JavaOne on Thursday. I'd love for some people 
to start >testing it. I am not sure I understand. Changed from what? Mistroni 
writes >I think you have to download >Tiles-1.3 jar file - which comes as a 
standalone - , it's available from >somewhere on Jakarta site (unfortunately I 
don't remember exactly where :( That was my impression when first I started 
looking into this. But I have not been able to find that file. Thanks for you 
time everybody. But I am now going to give up. My situation is this: I have 
told some people I am working with that you can use Tiles without Struts, and 
offered to make a small demonstration. I must now conclude that I was wrong. 
You can't, That is you can't find instructions for how to do so on the Internet 
in a reasonable amount of time. Klaus O K


Broadband interface (RIA) + mail box saftey = 
http://Struts_User_List.roomity.com
*Your* clubs, no sign up to read, ad supported; try broadband internet. 


Re: Conditional Statements (if/else) Using logic tag

2006-05-14 Thread J Gotsch
I guess my problem is larger than using an if/else statement. I figured how to 
do that, but I'm iterating over a List in the JSP, and want to be able to exit 
the loop whenever certain item exist. I don't suppose there's a way to do that, 
is there?
   
  My requirement in a nutshell: the List could have role1, role2, and role3. 
But I can only print one role on the screen. If the list has multiple roles, 
then my loop will show all of them. I want to be able to exit the loop after I 
find the role that I'm looking for. 
   
   
   
  Philihp Busby <[EMAIL PROTECTED]> wrote:
  Jerome is referring to tags in the JSTL Core tag library.








mmm code-bloat.

On 5/14/06, J Gotsch wrote:
> Which package does this belong to? I can't find it anywhere.
>
> Jerome Gagner 
wrote:
> use
>
> On 5/13/06, J Gotsch wrote:
> > Hello All,
> >
> > How do I perform an If/else with ?
> >
> > In the below logic:iterate tag, If my collection contains both ROLE1 AND 
> > ROLE2, Then both statements will be displayed. And that's now what I want.
> >
> > I want to implement something like this:
> >
> > if(securityRoleName.equals("ROLE1"))
> > // print You have ROLE1 !
> > else if (securityRoleName.equals("ROLE1"))
> > //print You have ROLE2 !
> > else
> > //print you have NO ROLE!
> >
> > This is what I have now:
> >
> > > property="xyz" scope="session">
> >
> > > property="securityRoleName" value="ROLE1">
> > You have ROLE1 !
> >
> > > property="securityRoleName" value="ROLE2">
> > You have ROLE1 !
> >
> > > property="securityRoleName">
> > You have no ROLE!
> >
> >
> >
> >
> >
> > -
> > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! 
> > Messenger with Voice.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min 
> with Yahoo! Messenger with Voice.
>



-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.