Re: More that one application resource file

2002-07-08 Thread @Basebeans.com

Subject: Re: More that one application resource file
From: Davor Cengija <[EMAIL PROTECTED]>
 ===
Craig R. McClanahan wrote:


>> Is it possible, and if yes, how, to have more than one application
>> resource file in a single application?
>>

> 
> Can't you do the merging as part of your build process?  Using "cat"
> (Unix) or "copy" (Windows) in a build script would seem like an easy
> solution to this.

Actually, that's exactly what I'm doing now, but for some internal 
perturbations, it looks like I'll have problems whit that. Therefore I 
asked for a 'native' solution.

It seems that the solution is to implement my MessageResources class, just 
as you suggested replying on my other questions (xml based translations).

Thanks to you and others!

-- 
Davor Cengija
[EMAIL PROTECTED]
=
"Nicht in die Augen bringen!"

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: errors.suffix

2002-07-08 Thread Andrew Hill

This week would suit Daniel & I quite nicely. :-)

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 13:42
To: 'Struts Users Mailing List'
Subject: RE: errors.suffix


>From your options, I'd say 'almost' right now.

--
Martin Cooper


> -Original Message-
> From: Daniel J. D'Cotta [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 10:44 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: errors.suffix
>
>
> Well, I seen that before, but I was hoping that if 'the
> upcoming 1.1-beta-2'
> was drawing close to release, that a rough time frame might
> be made known to
> all.
>
> Maybe just a a 'almost', 'half-way', or 'no-where near' answer.
>
>
> Regards,
> Daniel
>
> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:30 AM
> To: Struts Users Mailing List
> Subject: RE: errors.suffix
>
>
> http://jakarta.apache.org/struts/kickstart.html#release
>
> ;-)
>
> -Original Message-
> From: Daniel J. D'Cotta [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:21
> To: Struts Users Mailing List
> Subject: RE: errors.suffix
>
>
> Hi,
>
> Any planned date for 'the upcoming 1.1-beta-2' ?
>
>
> Regards,
> Daniel
>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 11:38 PM
> To: Struts Users Mailing List
> Subject: Re: errors.suffix
>
>
>
>
> On Mon, 8 Jul 2002, Kiss Attila wrote:
>
> > Date: Mon, 8 Jul 2002 14:18:21 +0200
> > From: Kiss Attila <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: errors.suffix
> >
> > but i want to use suffix becouse a want to put some text
> after every error
> > message!
>
> Recent nightly builds of 1.1 let you specify "errors.prefix" and
> "errors.suffix" message keys, to define text that is added to the
> beginning and end of each individual message.  This will also
> be true in
> the upcoming 1.1-beta-2.
>
> Craig
>
>
> > - Original Message -
> > From: "Oren Gross" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Monday, July 08, 2002 3:11 PM
> > Subject: RE: errors.suffix
> >
> >
> > > You should use header and footer
> > >
> > > -
> > > Oren Gross Java(TM) Developer
> > > Mercury Interactive APM TAC R&D
> > > +972-3-5399407 [EMAIL PROTECTED]
> > >
> > >
> > > -Original Message-
> > > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, July 08, 2002 2:12 PM
> > > To: Struts Users Mailing List
> > > Subject: errors.suffix
> > >
> > >
> > > hy all
> > >
> > > i trying to use errors.suffix= ... in my properties file
> and i see that
> > > struts is not use  that.
> > > whit errors.header is workink well .
> > > could someone tell me why?
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: errors.suffix

2002-07-08 Thread Martin Cooper

>From your options, I'd say 'almost' right now.

--
Martin Cooper


> -Original Message-
> From: Daniel J. D'Cotta [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 10:44 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: errors.suffix
> 
> 
> Well, I seen that before, but I was hoping that if 'the 
> upcoming 1.1-beta-2'
> was drawing close to release, that a rough time frame might 
> be made known to
> all.
> 
> Maybe just a a 'almost', 'half-way', or 'no-where near' answer.
> 
> 
> Regards,
> Daniel
> 
> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:30 AM
> To: Struts Users Mailing List
> Subject: RE: errors.suffix
> 
> 
> http://jakarta.apache.org/struts/kickstart.html#release
> 
> ;-)
> 
> -Original Message-
> From: Daniel J. D'Cotta [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:21
> To: Struts Users Mailing List
> Subject: RE: errors.suffix
> 
> 
> Hi,
> 
> Any planned date for 'the upcoming 1.1-beta-2' ?
> 
> 
> Regards,
> Daniel
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 11:38 PM
> To: Struts Users Mailing List
> Subject: Re: errors.suffix
> 
> 
> 
> 
> On Mon, 8 Jul 2002, Kiss Attila wrote:
> 
> > Date: Mon, 8 Jul 2002 14:18:21 +0200
> > From: Kiss Attila <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: errors.suffix
> >
> > but i want to use suffix becouse a want to put some text 
> after every error
> > message!
> 
> Recent nightly builds of 1.1 let you specify "errors.prefix" and
> "errors.suffix" message keys, to define text that is added to the
> beginning and end of each individual message.  This will also 
> be true in
> the upcoming 1.1-beta-2.
> 
> Craig
> 
> 
> > - Original Message -
> > From: "Oren Gross" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Monday, July 08, 2002 3:11 PM
> > Subject: RE: errors.suffix
> >
> >
> > > You should use header and footer
> > >
> > > -
> > > Oren Gross Java(TM) Developer
> > > Mercury Interactive APM TAC R&D
> > > +972-3-5399407 [EMAIL PROTECTED]
> > >
> > >
> > > -Original Message-
> > > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, July 08, 2002 2:12 PM
> > > To: Struts Users Mailing List
> > > Subject: errors.suffix
> > >
> > >
> > > hy all
> > >
> > > i trying to use errors.suffix= ... in my properties file 
> and i see that
> > > struts is not use  that.
> > > whit errors.header is workink well .
> > > could someone tell me why?
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: errors.suffix

2002-07-08 Thread Daniel J. D'Cotta

Well, I seen that before, but I was hoping that if 'the upcoming 1.1-beta-2'
was drawing close to release, that a rough time frame might be made known to
all.

Maybe just a a 'almost', 'half-way', or 'no-where near' answer.


Regards,
Daniel

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 10:30 AM
To: Struts Users Mailing List
Subject: RE: errors.suffix


http://jakarta.apache.org/struts/kickstart.html#release

;-)

-Original Message-
From: Daniel J. D'Cotta [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 10:21
To: Struts Users Mailing List
Subject: RE: errors.suffix


Hi,

Any planned date for 'the upcoming 1.1-beta-2' ?


Regards,
Daniel

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 11:38 PM
To: Struts Users Mailing List
Subject: Re: errors.suffix




On Mon, 8 Jul 2002, Kiss Attila wrote:

> Date: Mon, 8 Jul 2002 14:18:21 +0200
> From: Kiss Attila <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: errors.suffix
>
> but i want to use suffix becouse a want to put some text after every error
> message!

Recent nightly builds of 1.1 let you specify "errors.prefix" and
"errors.suffix" message keys, to define text that is added to the
beginning and end of each individual message.  This will also be true in
the upcoming 1.1-beta-2.

Craig


> - Original Message -
> From: "Oren Gross" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 3:11 PM
> Subject: RE: errors.suffix
>
>
> > You should use header and footer
> >
> > -
> > Oren Gross Java(TM) Developer
> > Mercury Interactive APM TAC R&D
> > +972-3-5399407 [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 08, 2002 2:12 PM
> > To: Struts Users Mailing List
> > Subject: errors.suffix
> >
> >
> > hy all
> >
> > i trying to use errors.suffix= ... in my properties file and i see that
> > struts is not use  that.
> > whit errors.header is workink well .
> > could someone tell me why?
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: marking checkboxes checked from a List

2002-07-08 Thread Rahul Kumar Saxena

Inside JobObjects bean, add one attribute for checking if this job is
checked, say selectedFlag (Not a good name). Set the value of
selectedFlag to true for all the JobObjects which you want to show as
selected.This you can do in the action class which forwards to this JSP.
While creating the checkboxes, first check if selectedFlag for that
JobObjects is true then display the checkbox as selected.This can be
done using logic:equal tag.

*
RAHUL K. SAXENA
Sr. Systems Engineer,
Wipro Technologies,
Ground Floor, Tower II,
72, Electronic City,
Hosur Main Road,
Bangalore-561 229, India.
Ph: 91-80-8520408/416(x-2026)
*

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 8:33 PM
To: Struts List
Cc: [EMAIL PROTECTED]
Subject: marking checkboxes checked from a List


I'm sure there is a good way to handle this in Struts but me being the
dumbass I thought I'd ask for help:

Picture a case where you display a list of "jobs" -
where next to each job name is a checkbox (Just using jobs for this
example). Each checkbox corresponding to the job will have a value that
is a String (jobAbbreviation). Displaying this list of jobs and the
value of the checkboxes isn't a problem ( populated from an ArrayList of
JobObjects ).

The problem is:

How do I mark the correct checkboxes based on an ArrayList of Strings
(jobAbbreivations)? In other words I have just a List of Strings and I
need to mark all the appropriate checkboxes that have the same values as
this List of abbreviations. ( I know an ugly way to do it using java in
the JSP page checking each value to see if it's in the List but there
must be a cleaner way ).

Thanks so much for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:




**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: DynaActionForm Advantages

2002-07-08 Thread Jacob Hookom

I agree with James on the extra level aspect.  I've been finding that
the finer the granularity in my struts application, the easier it is to
maintain [for each action, a specialized form/bean].

I did opt though for the validator, since it brought regexp validation
to the table which is invaluable and fairly easy to setup in an
afternoon.

Jake

-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 10:37 PM
To: [EMAIL PROTECTED]
Subject: RE: DynaActionForm Advantages 

My two cents on the topic.

As mentioned, once you move to a good Java IDE like JBuilder, writing 
getters and setters is no longer nearly the pain it used to be.

What bothers me about the DynaBean approach is that it's *yet another* 
file, and *yet another* level of indirection that obscure what's really 
going on.  I can look at an ActionForm, see all the properties, look at
the 
validation, all in one step.  Making it a DynaBean form means having to 
maintain another file with the XML, always having to remember where it
is, etc.

I think the decision to use one or the other is a matter of programming 
style, but I don't think either one is dogmatically a best practice.

James


--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DynaActionForm Advantages

2002-07-08 Thread Andrew Hill

+1

-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 11:37
To: [EMAIL PROTECTED]
Subject: RE: DynaActionForm Advantages


My two cents on the topic.

As mentioned, once you move to a good Java IDE like JBuilder, writing
getters and setters is no longer nearly the pain it used to be.

What bothers me about the DynaBean approach is that it's *yet another*
file, and *yet another* level of indirection that obscure what's really
going on.  I can look at an ActionForm, see all the properties, look at the
validation, all in one step.  Making it a DynaBean form means having to
maintain another file with the XML, always having to remember where it is,
etc.

I think the decision to use one or the other is a matter of programming
style, but I don't think either one is dogmatically a best practice.

James


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DynaActionForm Advantages

2002-07-08 Thread James Turner

My two cents on the topic.

As mentioned, once you move to a good Java IDE like JBuilder, writing 
getters and setters is no longer nearly the pain it used to be.

What bothers me about the DynaBean approach is that it's *yet another* 
file, and *yet another* level of indirection that obscure what's really 
going on.  I can look at an ActionForm, see all the properties, look at the 
validation, all in one step.  Making it a DynaBean form means having to 
maintain another file with the XML, always having to remember where it is, etc.

I think the decision to use one or the other is a matter of programming 
style, but I don't think either one is dogmatically a best practice.

James


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DynaActionForm Advantages

2002-07-08 Thread Andrew Hill

Actually JBuilder comes with a tool for bean generation but I find its a bit
like using a sledgehammer to crack a nut for the relatively small forms I am
using (a lot have only 2 or 3 properties I need to track with 8 probably
being a good average!).

As for productivity , Ive always considered number of lines written to be an
inverse measure of it! ;-)
(Which makes some of my 1000+ line abstract-uber-classes look rather
alarming. (hehe a good 30% is probably null checking and exception handling
though!)

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 11:07
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: DynaActionForm Advantages




On Tue, 9 Jul 2002, Andrew Hill wrote:

> Date: Tue, 9 Jul 2002 10:47:46 +0800
> From: Andrew Hill <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: DynaActionForm Advantages
>
> I do my rendering using DOM and server side java code. While a lot of it
is
> now done in abstract superclasses (making use of PropertyUtils to get
stuff
> from the form) a lot is also still making direct use of specific
> actionForms, and I find having real methods in my action form is useful in
> catching typos at compile time,

That's actually a quite valid reason.

> and also means JBuilder (shame on me for not
> using vi!)

e-macs!  e-macs!  e-macs!:-)

> gives me nice drop down boxes with all the method names, which is
> rather useful since my brain's small cache can't remember more than half
the
> fields on a given form at any one time...
>
> Furthermore , one can spend ages typing all the getters and setters with
> ones brain in nuetral yet still feel one has been getting work done ;-)
>

Especially if your productivity is measured by lines of code produced :-).

It's also feasible to auto-generate form beans with tools of various
sorts, which reduces this sort of tedium a lot.

> (On the other hand once I make time to actually learn the syntax for
> DynaForms I will probably be switching ...)
>
>

Craig


>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 06:40
> To: Struts Users Mailing List
> Subject: Re: DynaActionForm Advantages
>
>
>
>
> On Mon, 8 Jul 2002 [EMAIL PROTECTED] wrote:
>
> >
> > Tell me again why I should use the standard form beans?
> >
> >
> > I'm trying to understand because it seems to add complexity having two
> > different ways of doing Form Beans. Why not polish up the Dyna bean
stuff
> > and then dump (er, deprecate) normal Form Beans?
> >
>
> If DynaActionForm had been around from the very beginning, I doubt we
> would have ever invented the standard ActionForm bean approach.  At the
> same time, I can't necessarily justify deprecating something that 100% of
> existing 1.0 applications are required to use, especially when the rest of
> Struts doesn't care at all which way you do things -- and you can even
> make your Actions not care if you use PropertyUtils methods to get and set
> the property values.
>
> > One advantage I will give the normal Form Beans is that they are easier
> for
> > a newbie to pick up and learn. They shorten the learning curve to get
> > productive with Struts initially. But if DynaBeans were made to be very
> > easy, then this advantage may disappear as well.
> >
>
> It's also a little premature to conclude that DynaActionForm beans are
> good replacements for all scenarios where standard ActionForm beans are
> currently used - at least in a 1.1 time frame.  We need more real world
> experience with them to validate this first.
>
> >
> >
> > Kevin
> >
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DynaActionForm Advantages

2002-07-08 Thread Craig R. McClanahan



On Tue, 9 Jul 2002, Andrew Hill wrote:

> Date: Tue, 9 Jul 2002 10:47:46 +0800
> From: Andrew Hill <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: DynaActionForm Advantages
>
> I do my rendering using DOM and server side java code. While a lot of it is
> now done in abstract superclasses (making use of PropertyUtils to get stuff
> from the form) a lot is also still making direct use of specific
> actionForms, and I find having real methods in my action form is useful in
> catching typos at compile time,

That's actually a quite valid reason.

> and also means JBuilder (shame on me for not
> using vi!)

e-macs!  e-macs!  e-macs!:-)

> gives me nice drop down boxes with all the method names, which is
> rather useful since my brain's small cache can't remember more than half the
> fields on a given form at any one time...
>
> Furthermore , one can spend ages typing all the getters and setters with
> ones brain in nuetral yet still feel one has been getting work done ;-)
>

Especially if your productivity is measured by lines of code produced :-).

It's also feasible to auto-generate form beans with tools of various
sorts, which reduces this sort of tedium a lot.

> (On the other hand once I make time to actually learn the syntax for
> DynaForms I will probably be switching ...)
>
>

Craig


>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 06:40
> To: Struts Users Mailing List
> Subject: Re: DynaActionForm Advantages
>
>
>
>
> On Mon, 8 Jul 2002 [EMAIL PROTECTED] wrote:
>
> >
> > Tell me again why I should use the standard form beans?
> >
> >
> > I'm trying to understand because it seems to add complexity having two
> > different ways of doing Form Beans. Why not polish up the Dyna bean stuff
> > and then dump (er, deprecate) normal Form Beans?
> >
>
> If DynaActionForm had been around from the very beginning, I doubt we
> would have ever invented the standard ActionForm bean approach.  At the
> same time, I can't necessarily justify deprecating something that 100% of
> existing 1.0 applications are required to use, especially when the rest of
> Struts doesn't care at all which way you do things -- and you can even
> make your Actions not care if you use PropertyUtils methods to get and set
> the property values.
>
> > One advantage I will give the normal Form Beans is that they are easier
> for
> > a newbie to pick up and learn. They shorten the learning curve to get
> > productive with Struts initially. But if DynaBeans were made to be very
> > easy, then this advantage may disappear as well.
> >
>
> It's also a little premature to conclude that DynaActionForm beans are
> good replacements for all scenarios where standard ActionForm beans are
> currently used - at least in a 1.1 time frame.  We need more real world
> experience with them to validate this first.
>
> >
> >
> > Kevin
> >
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DynaActionForm Advantages

2002-07-08 Thread Andrew Hill

I do my rendering using DOM and server side java code. While a lot of it is
now done in abstract superclasses (making use of PropertyUtils to get stuff
from the form) a lot is also still making direct use of specific
actionForms, and I find having real methods in my action form is useful in
catching typos at compile time, and also means JBuilder (shame on me for not
using vi!) gives me nice drop down boxes with all the method names, which is
rather useful since my brain's small cache can't remember more than half the
fields on a given form at any one time...

Furthermore , one can spend ages typing all the getters and setters with
ones brain in nuetral yet still feel one has been getting work done ;-)

(On the other hand once I make time to actually learn the syntax for
DynaForms I will probably be switching ...)



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 06:40
To: Struts Users Mailing List
Subject: Re: DynaActionForm Advantages




On Mon, 8 Jul 2002 [EMAIL PROTECTED] wrote:

>
> Tell me again why I should use the standard form beans?
>
>
> I'm trying to understand because it seems to add complexity having two
> different ways of doing Form Beans. Why not polish up the Dyna bean stuff
> and then dump (er, deprecate) normal Form Beans?
>

If DynaActionForm had been around from the very beginning, I doubt we
would have ever invented the standard ActionForm bean approach.  At the
same time, I can't necessarily justify deprecating something that 100% of
existing 1.0 applications are required to use, especially when the rest of
Struts doesn't care at all which way you do things -- and you can even
make your Actions not care if you use PropertyUtils methods to get and set
the property values.

> One advantage I will give the normal Form Beans is that they are easier
for
> a newbie to pick up and learn. They shorten the learning curve to get
> productive with Struts initially. But if DynaBeans were made to be very
> easy, then this advantage may disappear as well.
>

It's also a little premature to conclude that DynaActionForm beans are
good replacements for all scenarios where standard ActionForm beans are
currently used - at least in a 1.1 time frame.  We need more real world
experience with them to validate this first.

>
>
> Kevin
>

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: errors.suffix

2002-07-08 Thread Andrew Hill

http://jakarta.apache.org/struts/kickstart.html#release

;-)

-Original Message-
From: Daniel J. D'Cotta [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 10:21
To: Struts Users Mailing List
Subject: RE: errors.suffix


Hi,

Any planned date for 'the upcoming 1.1-beta-2' ?


Regards,
Daniel

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 11:38 PM
To: Struts Users Mailing List
Subject: Re: errors.suffix




On Mon, 8 Jul 2002, Kiss Attila wrote:

> Date: Mon, 8 Jul 2002 14:18:21 +0200
> From: Kiss Attila <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: errors.suffix
>
> but i want to use suffix becouse a want to put some text after every error
> message!

Recent nightly builds of 1.1 let you specify "errors.prefix" and
"errors.suffix" message keys, to define text that is added to the
beginning and end of each individual message.  This will also be true in
the upcoming 1.1-beta-2.

Craig


> - Original Message -
> From: "Oren Gross" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 3:11 PM
> Subject: RE: errors.suffix
>
>
> > You should use header and footer
> >
> > -
> > Oren Gross Java(TM) Developer
> > Mercury Interactive APM TAC R&D
> > +972-3-5399407 [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 08, 2002 2:12 PM
> > To: Struts Users Mailing List
> > Subject: errors.suffix
> >
> >
> > hy all
> >
> > i trying to use errors.suffix= ... in my properties file and i see that
> > struts is not use  that.
> > whit errors.header is workink well .
> > could someone tell me why?
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: errors.suffix

2002-07-08 Thread Daniel J. D'Cotta

Hi,

Any planned date for 'the upcoming 1.1-beta-2' ?


Regards,
Daniel

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 11:38 PM
To: Struts Users Mailing List
Subject: Re: errors.suffix




On Mon, 8 Jul 2002, Kiss Attila wrote:

> Date: Mon, 8 Jul 2002 14:18:21 +0200
> From: Kiss Attila <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: errors.suffix
>
> but i want to use suffix becouse a want to put some text after every error
> message!

Recent nightly builds of 1.1 let you specify "errors.prefix" and
"errors.suffix" message keys, to define text that is added to the
beginning and end of each individual message.  This will also be true in
the upcoming 1.1-beta-2.

Craig


> - Original Message -
> From: "Oren Gross" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 3:11 PM
> Subject: RE: errors.suffix
>
>
> > You should use header and footer
> >
> > -
> > Oren Gross Java(TM) Developer
> > Mercury Interactive APM TAC R&D
> > +972-3-5399407 [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 08, 2002 2:12 PM
> > To: Struts Users Mailing List
> > Subject: errors.suffix
> >
> >
> > hy all
> >
> > i trying to use errors.suffix= ... in my properties file and i see that
> > struts is not use  that.
> > whit errors.header is workink well .
> > could someone tell me why?
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: MessageResources problem under JBoss 3.0

2002-07-08 Thread Brian Topping

> From: Martin Cooper 
> Subject: RE: MessageResources problem under JBoss 3.0 
> Date: Mon, 08 Jul 2002 15:18:56 -0700 
> 
>
-
---
> 
> > -Original Message-
> > From: Brian Topping [mailto:[EMAIL PROTECTED]]
> > Subject: MessageResources problem under JBoss 3.0
> > 
> > Standard deployment of Struts of course is to have a 
> > struts.jar in the deploy
> > dir, next to the app.war file for the actual application.  
> > app.war has no
> > problem loading classes or resources out of the struts.jar file.  
> 
> Actually, no. Standard deployment is to have struts.jar *inside* your web
> app, in WEB-INF/lib. If you check the examples that come with Struts,
you'll
> see that each web app has a copy of struts.jar inside it. If you don't do
> this, you'll certainly run the likelihood of classloader problems.
> 

Ooh, okay, good call, thanks Martin.  I changed this on recommendation from
Ishikawa-san...
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34095.html.
This solved one of my bigger classloading problems.  

But now I am back to the original problem, exception as i load the servlet,
see below.  

So I'm kinda stuck btw a rock and a hard place ;)

Ideas?

best,

-b

21:02:13,590 INFO  [RequestProcessor] Processing a 'GET' for path
'/editRegistration'
21:02:13,750 ERROR [RequestUtils] Error creating form bean of class
com.bill2.ejb.CustomerFullForm
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:226
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.j
ava:234)
at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(UnifiedL
oaderRepository.java:507)
at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepositor
y.java:179)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:283
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
:1355)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
:1254)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:190)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:216
)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:610)
at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.
java:349)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

21:02:13,770 DEBUG [RequestProcessor]  Looking for Action instance for class
com.bill2.site.controller.EditRegistrationA
ction
21:02:13,770 DEBUG [RequestProcessor]   Creating new Action instance
21:02:13,790 ERROR [RequestProcessor] No action instance for path
/editRegistration could be created
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:226
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.j
ava:234)
   

RE: DynaActionForm Advantages

2002-07-08 Thread Craig R. McClanahan



On Mon, 8 Jul 2002, Joseph Barefoot wrote:

> Date: Mon, 8 Jul 2002 17:21:32 -0700
> From: Joseph Barefoot <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: DynaActionForm Advantages
>
> hmmm...I'm sure this bespeaks my ignorance of DynaActionForm beans, but how
> would one implement custom validation (say to validate date or other field
> ranges) using DynaActionForm beans, since their specifications are in your
> configuration file?
>

As with doing a validate method for a standard ActionForm bean, you need
to know the name of the property you want to edit, as well as what rules
you want to apply.  So, the basic idea would be something like this:

* Create a DynaActionForm subclass to contain your validate() method --
  let's call it com.mycompany.MyForm and fill in the details later.

* Configure this bean in struts-config.xml:

  
...

...
  

* Write your validate() method something like this:

  pacakge com.mycompany;
  import org.apache.struts.action.ActionErrors;
  import org.apache.struts.action.DynaActionForm;

  public class MyForm extends DynaActionForm {

public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {

  String startDate = get("startDate");
  ... perform the usual validations on this String ...

}


  }

To retrieve property values, the key is that DynaActionForm implements the
DynaBean interface (from commons-beanutils), so it provides get() method
variants for simple property access, as well as indexed and mapped access.
There are corresponding set() methods to set the properties.
Alternatively, you can use the PropertyUtils methods on either kind of
bean transparently, and replace the getter above with:

  String startDate = PropertyUtils.getProperty(this, "startDate");

It's also worth checking out the Validator Framework's support for
DynaActionForm beans, to see if it can do what you need without having to
write these kinds of validate() methods yourself.

> peace,
> Joe Barefoot
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DynaActionForm Advantages

2002-07-08 Thread Joseph Barefoot

hmmm...I'm sure this bespeaks my ignorance of DynaActionForm beans, but how
would one implement custom validation (say to validate date or other field
ranges) using DynaActionForm beans, since their specifications are in your
configuration file?

peace,
Joe Barefoot

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 3:40 PM
> To: Struts Users Mailing List
> Subject: Re: DynaActionForm Advantages
>
>
>
>
> On Mon, 8 Jul 2002 [EMAIL PROTECTED] wrote:
>
> >
> > Tell me again why I should use the standard form beans?
> >
> >
> > I'm trying to understand because it seems to add complexity having two
> > different ways of doing Form Beans. Why not polish up the Dyna
> bean stuff
> > and then dump (er, deprecate) normal Form Beans?
> >
>
> If DynaActionForm had been around from the very beginning, I doubt we
> would have ever invented the standard ActionForm bean approach.  At the
> same time, I can't necessarily justify deprecating something that 100% of
> existing 1.0 applications are required to use, especially when the rest of
> Struts doesn't care at all which way you do things -- and you can even
> make your Actions not care if you use PropertyUtils methods to get and set
> the property values.
>
> > One advantage I will give the normal Form Beans is that they
> are easier for
> > a newbie to pick up and learn. They shorten the learning curve to get
> > productive with Struts initially. But if DynaBeans were made to be very
> > easy, then this advantage may disappear as well.
> >
>
> It's also a little premature to conclude that DynaActionForm beans are
> good replacements for all scenarios where standard ActionForm beans are
> currently used - at least in a 1.1 time frame.  We need more real world
> experience with them to validate this first.
>
> >
> >
> > Kevin
> >
>
> Craig
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




OT: squeaky wheel with struts experience needs a job

2002-07-08 Thread Dominique Plante

I have recently heard the saying: "The squeaky wheel gets the grease",
so I thought I would take a minute to be a "squeaky wheel".

I am familiar bunch of technologies and projects in addition to Struts,
including JSP, Java, and HTML, ANT, cactus, and Tomcat.  I am also very
interested and have experience with refactoring, design patterns, and
performance optimization.

Please contact me at [EMAIL PROTECTED] to send me details about a
potential opportunity.
I am in the East San Francisco Bay area.

Now I wait for the grease ;)

Sorry about the off topic post.

Dominique


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: With Struts tag, Size of ArrayList

2002-07-08 Thread @Basebeans.com

Subject: Re: With Struts tag, Size of ArrayList
From: "Senén de Diego" <[EMAIL PROTECTED]>
 ===
You can use:



..


For a description of bean-size:
http://jakarta.apache.org/struts/struts-bean#size

Senén

"Daniel Jaffa" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]...
> Did a little research and could not find an elegant way to find out if an
> arraylist that i send over is populated or not.  Currently I send the size
> of the array list.  But would like to do something like
> 
>
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DynaActionForm Advantages

2002-07-08 Thread Craig R. McClanahan



On Mon, 8 Jul 2002 [EMAIL PROTECTED] wrote:

>
> Tell me again why I should use the standard form beans?
>
>
> I'm trying to understand because it seems to add complexity having two
> different ways of doing Form Beans. Why not polish up the Dyna bean stuff
> and then dump (er, deprecate) normal Form Beans?
>

If DynaActionForm had been around from the very beginning, I doubt we
would have ever invented the standard ActionForm bean approach.  At the
same time, I can't necessarily justify deprecating something that 100% of
existing 1.0 applications are required to use, especially when the rest of
Struts doesn't care at all which way you do things -- and you can even
make your Actions not care if you use PropertyUtils methods to get and set
the property values.

> One advantage I will give the normal Form Beans is that they are easier for
> a newbie to pick up and learn. They shorten the learning curve to get
> productive with Struts initially. But if DynaBeans were made to be very
> easy, then this advantage may disappear as well.
>

It's also a little premature to conclude that DynaActionForm beans are
good replacements for all scenarios where standard ActionForm beans are
currently used - at least in a 1.1 time frame.  We need more real world
experience with them to validate this first.

>
>
> Kevin
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: MessageResources problem under JBoss 3.0

2002-07-08 Thread Martin Cooper



> -Original Message-
> From: Brian Topping [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 2:49 PM
> To: [EMAIL PROTECTED]
> Subject: MessageResources problem under JBoss 3.0
> 
> 
> Hiyas,
> 
> I'm looking at a classloader problem with JBoss 3 and Struts 
> 1.1B1.  It would
> appear that this is the source of problems in loading 
> properties files for
> struts users on JBoss.
> 
> If there is anyone out there that is using JBoss 3, can you 
> comment on your
> ability to load or not load properties files correctly, for 
> instance in
> conjunction with ActionErrors?
> 
> My environment:
> 
> JBoss 3.0.1RC1_tomcat4.0.4 (same problem with JBoss 3 release)
> W2KSP2
> JDK 1.3.1_02
> Struts 1.1B1
> 
> Standard deployment of Struts of course is to have a 
> struts.jar in the deploy
> dir, next to the app.war file for the actual application.  
> app.war has no
> problem loading classes or resources out of the struts.jar file.  

Actually, no. Standard deployment is to have struts.jar *inside* your web
app, in WEB-INF/lib. If you check the examples that come with Struts, you'll
see that each web app has a copy of struts.jar inside it. If you don't do
this, you'll certainly run the likelihood of classloader problems.

--
Martin Cooper


> 
> I've dug into MessageResources.getMessage(), and it's getting 
> a resource
> stream with 
> 'this.getClass().getClassLoader().getResourceAsStream(name)'.
> The caller is a utility method inside struts.jar, not the 
> app.jar.  Like I
> said, the call works fine for properties files that are in 
> the struts.jar,
> but fails for properties that are in the app.war file.  
> 
> This is a major issue, since properties files that are listed in
>  can't be loaded.  I presume that it 
> works standalone
> tomcat just fine, otherwise someone else would have noticed ;)
> 
> I'm suspecting incompatibility with JBoss Unified Class 
> Loader -- I believe
> different jars mean these are different classloaders, so
> 'this.getClassLoader()' gets the wrong classloader.  Either 
> there is an
> implementation problem with JBoss -- that the UCL isn't 
> following the proper
> semantics of getResource(), or Struts is pushing the edge of 
> the semantics.  
> 
> Any thoughts on this?
> 
> *any* help appreciated...
> 
> best,
> 
> -b
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Content Management Systems - Any advice?

2002-07-08 Thread Sandra Cann

snip Mete Kural
> I'm looking for a content management system to ease
> website maintenance. What advice would you give on a
> CMS to use with a Struts-based webapp?

Sorry for the late reply (I've been on my honeymoon). Just wanted to drop a
note that there is a comprehensive content management system based on Struts
called eContent at www.jcorporate.com. Full source is available though it is
not open source. Free version is available to universities and may be
available to non-profit community service sites.

eContent integrates with other collaborative applications offered such as
eForum, ePoll, and eFAQ.

Sandra








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DynaActionForm Advantages

2002-07-08 Thread Kevin . Bedell



> Possible reasons why not:
>
> * You're currently still stuck with Struts 1.0.2 :-).
>

Not an issue post 1.0.2...

> * Non-trivial getter and setter implementations that do more than just
>  manipulate an instance variable.
>

Couldn't this logic be moved to validate()? Something like:


public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {


/*
 * preValidate() performs get()/set() operations as required to
 * perform non-trivial getter/setter functionality.
 *
 * This method essentially consolidates all the "non-trival
 * getter and setter implementations" that would be required
 * in a normal Form Bean.
 *
 * It could perform some validation as well and return ActionErrors.
 */

ActionErrors errors = this.preValidate();

// Now perform validation on the Dyna-data as you normally would...



return errors;

}


> * Required code in the no-args constructor (although in most cases you
  can
>   get around this by doing initialization in the reset() method instead.
>

Again, move to validate().


> An additional reason to consider them was added in a recent nightly build
> -- you can now conveniently initialize arrays of constants in your
> struts-config.xml file, which is very convenient for setting up standard
> options for an , or the default set of values for an
> .  Example:
>
>   
>  ...
>initial="{ 'First option', 'Second option', 'Third option' }"/>
>  ...
>   
>
> The syntax for initializing an array is basically like what you'd use to
> initialize them in a variable declaration, except you can only use
> constants.
>


Tell me again why I should use the standard form beans?


I'm trying to understand because it seems to add complexity having two
different ways of doing Form Beans. Why not polish up the Dyna bean stuff
and then dump (er, deprecate) normal Form Beans?

One advantage I will give the normal Form Beans is that they are easier for
a newbie to pick up and learn. They shorten the learning curve to get
productive with Struts initially. But if DynaBeans were made to be very
easy, then this advantage may disappear as well.



Kevin








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




MessageResources problem under JBoss 3.0

2002-07-08 Thread Brian Topping

Hiyas,

I'm looking at a classloader problem with JBoss 3 and Struts 1.1B1.  It would
appear that this is the source of problems in loading properties files for
struts users on JBoss.

If there is anyone out there that is using JBoss 3, can you comment on your
ability to load or not load properties files correctly, for instance in
conjunction with ActionErrors?

My environment:

JBoss 3.0.1RC1_tomcat4.0.4 (same problem with JBoss 3 release)
W2KSP2
JDK 1.3.1_02
Struts 1.1B1

Standard deployment of Struts of course is to have a struts.jar in the deploy
dir, next to the app.war file for the actual application.  app.war has no
problem loading classes or resources out of the struts.jar file.  

I've dug into MessageResources.getMessage(), and it's getting a resource
stream with 'this.getClass().getClassLoader().getResourceAsStream(name)'.
The caller is a utility method inside struts.jar, not the app.jar.  Like I
said, the call works fine for properties files that are in the struts.jar,
but fails for properties that are in the app.war file.  

This is a major issue, since properties files that are listed in
 can't be loaded.  I presume that it works standalone
tomcat just fine, otherwise someone else would have noticed ;)

I'm suspecting incompatibility with JBoss Unified Class Loader -- I believe
different jars mean these are different classloaders, so
'this.getClassLoader()' gets the wrong classloader.  Either there is an
implementation problem with JBoss -- that the UCL isn't following the proper
semantics of getResource(), or Struts is pushing the edge of the semantics.  

Any thoughts on this?

*any* help appreciated...

best,

-b

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DynaActionForm Advantages

2002-07-08 Thread Craig R. McClanahan



On Mon, 8 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Mon, 8 Jul 2002 16:06:26 -0400
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: DynaActionForm Advantages
>
>
>
> > The benefit of using DynaActionForm instead is in one of the following
> two
> > use cases:
> >
> > * If your ActionForm bean doesn't have a custom reset() or validate()
> >   method, you don't need to write your own form bean class at all -
> >   simply configure the properties in struts-config.xml.
> >
> > * If your ActionForm bean does have a custom reset() or validate()
>   method,
> >   those are the only ones you have to write -- no more time wasted with
> >   all the property getter and setter methods (have you ever done anything
>   more
> >   boring that writing those?).  Simply subclass DynaActionForm and
> >   implement the validate() method in the usual way (although it will
> >   have to use get() to get the values to be tested, instead of the
> >   usual property getter methods).
> >
> > Given how many situations are covered by one or the other of the above,
> > I'd say DynaActionForm is modestly useful :-).  But, like most things,
> > it's just an option.
> >
> > Craig
> >
>
> So why would anyone ever NOT use DynaBeans?
>

Possible reasons why not:

* You're currently still stuck with Struts 1.0.2 :-).

* Non-trivial getter and setter implementations that do more than just
  manipulate an instance variable.

* Required code in the no-args constructor (although in most cases you can
  get around this by doing initialization in the reset() method instead.

An additional reason to consider them was added in a recent nightly build
-- you can now conveniently initialize arrays of constants in your
struts-config.xml file, which is very convenient for setting up standard
options for an , or the default set of values for an
.  Example:

  
...

...
  

The syntax for initializing an array is basically like what you'd use to
initialize them in a variable declaration, except you can only use
constants.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Netscape cannot pre-check the checkbox!

2002-07-08 Thread Bartley, Chris P

Something like this doesn't work for you?

   

Or, this, if you're using XHTML:

   

chris

> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Netscape cannot pre-check the checkbox!
> 
> 
> Subject: Netscape cannot pre-check the checkbox!
> From: "J. Jason Zhou" <[EMAIL PROTECTED]>
>  ===
> When a checkbox need to be pre-checked, IE works fine but 
> Netscape does not
> show the check mark on the checkbox. Anyone has the same experience?
> 
> 
> --
> Best Regards,
> 
> J. Jason Zhou
> Business Intelligence Platform Division (BIP), R & D,
> SAS Institute, 100 SAS Campus Dr.
> Cary, North Carolina 27513-8617
> Voice: 919-531-0568(O)
> Email: [EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DynaActionForm Advantages

2002-07-08 Thread Kevin . Bedell



> The benefit of using DynaActionForm instead is in one of the following
two
> use cases:
>
> * If your ActionForm bean doesn't have a custom reset() or validate()
>   method, you don't need to write your own form bean class at all -
>   simply configure the properties in struts-config.xml.
>
> * If your ActionForm bean does have a custom reset() or validate()
  method,
>   those are the only ones you have to write -- no more time wasted with
>   all the property getter and setter methods (have you ever done anything
  more
>   boring that writing those?).  Simply subclass DynaActionForm and
>   implement the validate() method in the usual way (although it will
>   have to use get() to get the values to be tested, instead of the
>   usual property getter methods).
>
> Given how many situations are covered by one or the other of the above,
> I'd say DynaActionForm is modestly useful :-).  But, like most things,
> it's just an option.
>
> Craig
>

So why would anyone ever NOT use DynaBeans?









--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: "mission critical application" that use "Struts" Frame work.

2002-07-08 Thread Mark Nichols

http://jakarta.apache.org/struts/resources/powered.html

> -Original Message-
> From: Farshad Ahvazi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: "mission critical application" that use "Struts" Frame work.
> 
> 
> Hi All 
> 
> I am new on Struts world. and I am gathering some info about that. 
> can you guys tell me some "mission critical application" that use 
> "Struts" Frame work. 
> 
> 
> Thanks in advance 
> Farshad 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XML based application resources?

2002-07-08 Thread Martin Cooper

You may be interested in RBManager. It's a free tool available from
AlphaWorks which lets you easily work with multiple translations.

http://www.alphaworks.ibm.com/tech/rbmanager

--
Martin Cooper


> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 10:40 AM
> To: [EMAIL PROTECTED]
> Subject: XML based application resources?
> 
> 
> Subject: XML based application resources?
> From: Davor Cengija <[EMAIL PROTECTED]>
>  ===
> Is there an extension or maybe some trick in Struts which 
> would allow me to 
> have xml-based application resource files? It is very complicated to 
> maintain 4 or even more .properties files in different 
> languages. What I'd 
> like to have is a single xml file with all the translations in it, 
> something like this:
> 
> 
>   
> Color
> Farbe
> Boja
>   
>   
> 
> 
> Thanks
> -- 
> Davor Cengija
> [EMAIL PROTECTED]
> =
> "Nicht in die Augen bringen!"
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Netscape cannot pre-check the checkbox!

2002-07-08 Thread @Basebeans.com

Subject: Netscape cannot pre-check the checkbox!
From: "J. Jason Zhou" <[EMAIL PROTECTED]>
 ===
When a checkbox need to be pre-checked, IE works fine but Netscape does not
show the check mark on the checkbox. Anyone has the same experience?


--
Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D,
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XML based application resources?

2002-07-08 Thread @Basebeans.com

Subject: Re: XML based application resources?
From: "Loren Halvorson" <[EMAIL PROTECTED]>
 ===
1) if you do something like this, you may want to look at TMX.  It's an XML
format well-suited for this application.  Plus there is tool support. Info
here: http://lisa.org/tmx/  Once upon a time we wrote a subclass of
MessageResources that could read TMX files.  I posted the source here
http://www.thedivers.com/struts/ in case anyone is interested in it.

2) This is a nifty open-source tool from IBM I stumbled upon one day for
managing multiple property files should you decide to stick with them:
http://oss.software.ibm.com/icu4j/demo_tools/RBManager.html  Coincidently,
it also exports TMX files

"Davor Cengija" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Is there an extension or maybe some trick in Struts which would allow me
to
> have xml-based application resource files? It is very complicated to
> maintain 4 or even more .properties files in different languages. What I'd
> like to have is a single xml file with all the translations in it,
> something like this:
>
> 
>   
> Color
> Farbe
> Boja
>   
>   
> 
>
> Thanks
> --
> Davor Cengija
> [EMAIL PROTECTED]
> =
> "Nicht in die Augen bringen!"



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




"mission critical application" that use "Struts" Frame work.

2002-07-08 Thread Farshad Ahvazi

Hi All 

I am new on Struts world. and I am gathering some info about that. 
can you guys tell me some "mission critical application" that use "Struts" Frame work. 


Thanks in advance 
Farshad 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts + EJB ?

2002-07-08 Thread Kevin . Bedell


I can second this - xdoclet is a great app put together by one of the
people involved with Boss - but you can use it with other containers as
well.

http://sourceforge.net/projects/xdoclet





"faisal" <[EMAIL PROTECTED]> on 07/08/2002 10:34:28 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:Re: Struts + EJB ?


It's form www.sourceforge.net

- Original Message -
From: "Oren Gross" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 1:31 AM
Subject: RE: Struts + EJB ?


> Do you have a link for Xdoclet?
> TIA
>
> -
> Oren Gross Java(TM) Developer
> Mercury Interactive APM TAC R&D
> +972-3-5399407 [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Brian Topping [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 6:22 AM
> To: Struts Users Mailing List
> Subject: RE: Struts + EJB ?
>
>
> Yah, I am doing it.  It's my first struts application.  It works great!
>
> If you are using Struts and EJB, you should check out Xdoclet.  It
generates
> EJB interfaces, web.xml, strutsconfigs, struts forms, etc.  It might be
too
> much of a pain to learn if you are just learning one or the other, but
since
> you can leverage the investment against both struts and ejb both, it's
worth
> the investment, IMHO.  There are some cool tricks you can do with taking
the
> contents out of forms and pushing them into your beans.
>
> have a blast!
>
> -b
>
> > -Original Message-
> > From: Boney Sze [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, July 07, 2002 11:49 PM
> > To: Struts Users Mailing List
> > Subject: Struts + EJB ?
> >
> >
> > can struts and EJB be used together in an application
> > ?
> > im kinda new to EJB but i could say i know struts
> > already.
> >
> > can anybody provide any references or ideas about
> > this?
> > thanks
> >
> > Boney
> >
> > __
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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









--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XML based application resources?

2002-07-08 Thread Craig R. McClanahan



On Mon, 8 Jul 2002, Tero P Paananen wrote:

> Date: Mon, 8 Jul 2002 14:36:25 -0400
> From: Tero P Paananen <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE:  XML based application resources?
>
> > Is there an extension or maybe some trick in Struts which
> > would allow me to have xml-based application resource files?
>
> Extend PropertyMessageResources.java (& the corresponding factory
> class) and implement your own loadLocale() method, then, in your
> struts-config.xml, point application and factory attributes to
> your classes.
>
> > 
> >   
> > Color
> > Farbe
> > Boja
> >   
> >   
> > 
>
> I don't think you can't parse something like that with the
> Digester class.
>

Actually, parsing this with Digester would be pretty easy.  Consider that
you have a MyMessageBean class with the following method signatures:

  public void setKey(String key);
  public void addTranslation(String language, String value);
  public String findTranslation(String key, String language);

on it.  You could have digester rules something like this:

  digester.push(...); // Object with an addMessage() method defined

  digester.addObjectCreate("ApplicationResources/message",
   "com.mycompany.MyMessageBean");
  digester.addSetProperties("ApplicationResources/message");
  digester.addSetNext("ApplicationResources/message",
  "addMessage",
  "com.mycompany.MyMessageBean");

  digester.addCallMethod("ApplicationResources/message/value",
 "addTranslation", 2);
  digester.addCallParam("ApplicationResources/message/value",
0, "lang"); // Picks up "lang" attribute
  digester.addCallParam("ApplicationResources/message/value",
1); // Picks up element body

  digester.parse(...);

Thus, you'd end up with a HashMap or something of MyMessageBean instances,
keyed by the message key.  This data structure could then be accessed by a
custom MessageResources implementation that used the specified Locale to
figure out which language you wanted.

>   -TPP
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Object Relational Bridge is great ? A Basic Problem

2002-07-08 Thread Adolfo Miguelez


Eric,

many thanks for throwing light for me in this issue. Most of times, the more 
difficult responses to find, are not how are the things done, but rather why 
are not they done in different way. Most of reports, software comments, ... 
says what they do, but not why they do not apply a different approach.

As you say, a nice issue to think about.

Best regards,

Adolfo.

>From: "Schneider, Eric" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Object Relational Bridge is great ? A Basic Problem
>Date: Mon, 8 Jul 2002 11:50:09 -0400
>
>Adolfo,
>
>I understand what you are getting at, but there is a reason why this
>framework doesn't exist.  It's because it is an extremely difficult 
>problem.
>
>I have used a couple of O/R frameworks that come close to doing what you
>describe.  Instead of creating concrete classes with accessors for every
>entity they use a generic class that allows you to access attributes by
>calling getObjectForKey() and setObjectForKey().  But, still, this type of
>framework requires an additional configuration layer of property files that
>contain metadata information pertaining to database.
>
>Think of all the things this ER configuration layer must keep track of:
>-entity to table name mapping
>-object attribute to table column mapping (types, precision, is attribute
>required, etc.)
>-relationship descriptions (to-one, to-many, optionality, cardinality,
>cascading deletes, etc.)
>
>On top of that, add business rules into the mix and it gets complex really
>fast.  Think of all the different ways you need to validate information.  
>Is
>the validation different for a property based on whether you are inserting,
>updating, or deleting?  Where is this validation suppose to go?
>
>When you dig a bit deeper you quickly find out there is nothing 'Basic'
>about good object relational frameworks.
>
>Food for thought.
>
>e.
>
> > -Original Message-
> > From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 08, 2002 10:42 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Object Relational Bridge is great ? A Basic Problem
> >
> >
> >
> > Thanks Eric,
> >
> > I will have it a look. Looks like interesting.
> >
> > However, a question more, for you or whoever. I would like to
> > hear someone
> > agreeing my suspicions that for most of O/R mapping
> > frameworks, we need to
> > create the object classes that map database tables by
> > compiling code or
> > using ant tasks. None (do not know Cayenne yet), is able to
> > do for itself.
> >
> > I did get any feedback sharing my point and I wonder if I am missing
> > something.
> >
> > Regards and thanks anyway,
> >
> > Adolfo
> >
> >
> >
> > >From: "Schneider, Eric" <[EMAIL PROTECTED]>
> > >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > >Subject: RE: Object Relational Bridge is great ? A Basic Problem
> > >Date: Mon, 8 Jul 2002 06:55:44 -0600
> > >
> > >Adolfo,
> > >
> > >Have a look at thismaybe it better suits your needs.
> > It's in alpha,
> > >but
> > >don't let that fool you.  It's more mature than most OR
> > tools I've looked
> > >at.
> > >
> > >http://objectstyle.org/cayenne
> > >
> > >Eric
> > >
> > > > -Original Message-
> > > > From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, July 05, 2002 5:50 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Object Relational Bridge is great ? A Basic Problem
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > as a newbie in O/R mapping tools, APIs and frameworks I find
> > > > the following
> > > > issue. All of the frameworks that I have browsed lacks from a
> > > > basic problem:
> > > > The classes that maps the corresponding tables in the
> > > > database must be
> > > > manually generated, either by hand (e.g. OJB) or by building
> > > > the code (e.g.
> > > > Jakarta Torque).
> > > >
> > > > This becomes a pain since it difficults to make an
> > > > application that could
> > > > "learn" for itself a data model and create its own classes.
> > > > No way, AFAIK,
> > > > for implementing general mechanism.
> > > >
> > > > I know about BCEL project, which is able to compile classes
> > > > in runtime, and
> > > > it could be really helpful to integrate with the previous
> > > > ones and get
> > > > automathic mechanims, but I do not any framework that take
> > > > advantage of
> > > > BCEL.
> > > >
> > > > The only way that I have seen to do something similar, is the
> > > > mini-project
> > > > SIMPER (Struts resources page), which is able to work out
> > dynabeans
> > > > (actually they are hashmaps in their guts), following a
> > > > database schema, for
> > > > it self. For me it has the problem that uses Servlets 2.3
> > > > filters and I am
> > > > working with Servlets 2.2 specs.
> > > >
> > > > I just want to request your opinion or knowledge about a
> > > > framework that can
> > > > implement itself such a classes, or a fram

Using Reset to Load Drop Downs?

2002-07-08 Thread Graham Lounder

Hell All,

I'm having a small problem with loading my drop downs after a validation
error (since my action is not being called again).  It is recomended/good
practice to load my drop downs in the reset method of the form?  Is it
possible?  I would load them once my application starts, but I need to
modify the list before it is displayed.

Any Ideas?
Graham


  Graham Lounder
  Java Developer
  Spatial Components Division
  CARIS
  264 Rookwood Ave
  Fredericton NB E3B-2M2
  Office 506 462-4218
  Fax506 459-3849
  [EMAIL PROTECTED]
  http://www.spatialcomponents.com



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XML based application resources?

2002-07-08 Thread Tero P Paananen

> Is there an extension or maybe some trick in Struts which 
> would allow me to have xml-based application resource files?

Extend PropertyMessageResources.java (& the corresponding factory
class) and implement your own loadLocale() method, then, in your
struts-config.xml, point application and factory attributes to
your classes.

> 
>   
> Color
> Farbe
> Boja
>   
>   
> 

I don't think you can't parse something like that with the
Digester class.

-TPP

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts + EJB ?

2002-07-08 Thread faisal

It's form www.sourceforge.net

- Original Message -
From: "Oren Gross" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 1:31 AM
Subject: RE: Struts + EJB ?


> Do you have a link for Xdoclet?
> TIA
>
> -
> Oren Gross Java(TM) Developer
> Mercury Interactive APM TAC R&D
> +972-3-5399407 [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Brian Topping [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 6:22 AM
> To: Struts Users Mailing List
> Subject: RE: Struts + EJB ?
>
>
> Yah, I am doing it.  It's my first struts application.  It works great!
>
> If you are using Struts and EJB, you should check out Xdoclet.  It
generates
> EJB interfaces, web.xml, strutsconfigs, struts forms, etc.  It might be
too
> much of a pain to learn if you are just learning one or the other, but
since
> you can leverage the investment against both struts and ejb both, it's
worth
> the investment, IMHO.  There are some cool tricks you can do with taking
the
> contents out of forms and pushing them into your beans.
>
> have a blast!
>
> -b
>
> > -Original Message-
> > From: Boney Sze [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, July 07, 2002 11:49 PM
> > To: Struts Users Mailing List
> > Subject: Struts + EJB ?
> >
> >
> > can struts and EJB be used together in an application
> > ?
> > im kinda new to EJB but i could say i know struts
> > already.
> >
> > can anybody provide any references or ideas about
> > this?
> > thanks
> >
> > Boney
> >
> > __
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DynaActionForm Advantages

2002-07-08 Thread Jerry Jalenak

Craig,

Thanks for the quick reply.  Most of my forms do have some sort of a custom
validation requirement - hence my confusion about the advantage(s) of
DynaActionForms over ActionForms.

Thanks again!

jerry

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 1:10 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm Advantages




On Mon, 8 Jul 2002, Jerry Jalenak wrote:

> Date: Mon, 8 Jul 2002 13:03:48 -0500
> From: Jerry Jalenak <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: DynaActionForm Advantages
>
> All,
>
> What are the advantages to using DynaActionForms over the traditional
Struts
> ActionForms?  I'm in the process of looking at some of the newer features
of
> Struts 1.1, and frankly, I don't see where DynaActionForms is going to do
> much for me.  In fact, in my limited view of the universe, it looks like
> DynaActionForms are a move back toward a standard servlet, one where you
> access HTML form data through a 'request.getParameter("form-variable")'.
> Also, it would appear that the use of DynaActionForms forces all of the
form
> validation into the Action, making the Action more complex than it needs
to
> be (compared to the 'validate' method of the ActionForm).
>
> What am I missing?  There must be some advantage to the use of
> DynaActionForms
>

The benefit of using DynaActionForm instead is in one of the following two
use cases:

* If your ActionForm bean doesn't have a custom reset() or validate()
  method, you don't need to write your own form bean class at all --
  simply configure the properties in struts-config.xml.

* If your ActionForm bean does have a custom reset() or validate() method,
  those are the only ones you have to write -- no more time wasted with
  all the property getter and setter methods (have you ever done anything
more
  boring that writing those?).  Simply subclass DynaActionForm and
  implement the validate() method in the usual way (although it will
  have to use get() to get the values to be tested, instead of the
  usual property getter methods).

Given how many situations are covered by one or the other of the above,
I'd say DynaActionForm is modestly useful :-).  But, like most things,
it's just an option.

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:



This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DynaActionForm Advantages

2002-07-08 Thread Craig R. McClanahan



On Mon, 8 Jul 2002, Jerry Jalenak wrote:

> Date: Mon, 8 Jul 2002 13:03:48 -0500
> From: Jerry Jalenak <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: DynaActionForm Advantages
>
> All,
>
> What are the advantages to using DynaActionForms over the traditional Struts
> ActionForms?  I'm in the process of looking at some of the newer features of
> Struts 1.1, and frankly, I don't see where DynaActionForms is going to do
> much for me.  In fact, in my limited view of the universe, it looks like
> DynaActionForms are a move back toward a standard servlet, one where you
> access HTML form data through a 'request.getParameter("form-variable")'.
> Also, it would appear that the use of DynaActionForms forces all of the form
> validation into the Action, making the Action more complex than it needs to
> be (compared to the 'validate' method of the ActionForm).
>
> What am I missing?  There must be some advantage to the use of
> DynaActionForms
>

The benefit of using DynaActionForm instead is in one of the following two
use cases:

* If your ActionForm bean doesn't have a custom reset() or validate()
  method, you don't need to write your own form bean class at all --
  simply configure the properties in struts-config.xml.

* If your ActionForm bean does have a custom reset() or validate() method,
  those are the only ones you have to write -- no more time wasted with
  all the property getter and setter methods (have you ever done anything more
  boring that writing those?).  Simply subclass DynaActionForm and
  implement the validate() method in the usual way (although it will
  have to use get() to get the values to be tested, instead of the
  usual property getter methods).

Given how many situations are covered by one or the other of the above,
I'd say DynaActionForm is modestly useful :-).  But, like most things,
it's just an option.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DynaActionForm Advantages

2002-07-08 Thread Jerry Jalenak

All,

What are the advantages to using DynaActionForms over the traditional Struts
ActionForms?  I'm in the process of looking at some of the newer features of
Struts 1.1, and frankly, I don't see where DynaActionForms is going to do
much for me.  In fact, in my limited view of the universe, it looks like
DynaActionForms are a move back toward a standard servlet, one where you
access HTML form data through a 'request.getParameter("form-variable")'.
Also, it would appear that the use of DynaActionForms forces all of the form
validation into the Action, making the Action more complex than it needs to
be (compared to the 'validate' method of the ActionForm).

What am I missing?  There must be some advantage to the use of
DynaActionForms


Thanks.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts Validation - Stop on fail?

2002-07-08 Thread Peter Onthrops

 Are you using javascript validation? If not,
disregard this message.
If so, the javascript rendered by the
JavascriptValidatorTag performs each required
validation before checking for the float validation.
Since an error is found in validateRequired,
validateFloat is not called. if you check out the
javascript, your validate methods are bound by
"&&". So the first method to find an error
ends the validation checks.
hope this helps.
  Struts Newsgroup
<[EMAIL PROTECTED]> wrote: 
Subject: Struts
Validation - Stop on fail?From: "Andrej Sobkowski"
<[EMAIL PROTECTED]>===Hello,I've
been using the Struts Validator on a couple of
projects with no pbs butI'm now stuck with a
(probably easy-to-solve) issue. I have a
super-basicbean with 3 properties: name, density,
concentration. Both density andconcentration are
required and must be float. My validation.xml is
shownbelow... standard, easy, nothing
special.The problem is that if I enter an
invalid concentration (not a float) and Ileave
density empty, I only get one message saying: "Density
is required"(no mention about the invalid
concentration). If I then enter
invalidconcentration and density, I get the proper
results ("Density must be afloat. Concentration
must be a float"). It looks like the "required"
getsthe priority on the other validations. Is this
normal?Does anybody have any ideas about what
I'm doing wrong? I'm pretty sure it'ssomething
minor...Thanks.AndrejI'm
working with Struts 1.1b1 with Tomcat 4.0.4 under
Win2k.value="/WEB-INF/slb-validator-rules.xml"/>
depends="required">depends="required,float">depends="required,float">--To
unsubscribe, e-mail:
For
additional commands, e-mail: 
MAILTO:[EMAIL PROTECTED]>MAILTO:[EMAIL PROTECTED]>

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: More that one application resource file

2002-07-08 Thread wbchmura


This is part of my Ant build.xml file... It concatinates a lot of 
property files...

Extending this to handle the i18n stuff is easy




   
   

 


-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 1:43 PM
To: struts-user
Subject: Re: More that one application resource file




On Mon, 8 Jul 2002, Struts Newsgroup wrote:

> Date: Mon, 8 Jul 2002 10:40:03 -0700
> From: Struts Newsgroup <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: More that one application resource file
>
> Subject: More that one application resource file
> From: Davor Cengija <[EMAIL PROTECTED]>
>  ===
> Is it possible, and if yes, how, to have more than one application 
resource
> file in a single application?
>
> I'm working on a project where diffrerent people at different levels
> maintain a set of messages and translations and it's became very
> complicated to have all the jsp's and application resources in sync. 
What
> I'd like to have is appRes1.properties, appRes2.properties (and with 
locale
> extensions) and to use them just as they were merged into one
> appRes.properties file.
>

Can't you do the merging as part of your build process?  Using "cat"
(Unix) or "copy" (Windows) in a build script would seem like an easy
solution to this.

> --
> Davor Cengija
> [EMAIL PROTECTED]
> =
> "Nicht in die Augen bringen!"

Craig


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: More that one application resource file

2002-07-08 Thread Craig R. McClanahan



On Mon, 8 Jul 2002, Struts Newsgroup wrote:

> Date: Mon, 8 Jul 2002 10:40:03 -0700
> From: Struts Newsgroup <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: More that one application resource file
>
> Subject: More that one application resource file
> From: Davor Cengija <[EMAIL PROTECTED]>
>  ===
> Is it possible, and if yes, how, to have more than one application resource
> file in a single application?
>
> I'm working on a project where diffrerent people at different levels
> maintain a set of messages and translations and it's became very
> complicated to have all the jsp's and application resources in sync. What
> I'd like to have is appRes1.properties, appRes2.properties (and with locale
> extensions) and to use them just as they were merged into one
> appRes.properties file.
>

Can't you do the merging as part of your build process?  Using "cat"
(Unix) or "copy" (Windows) in a build script would seem like an easy
solution to this.

> --
> Davor Cengija
> [EMAIL PROTECTED]
> =
> "Nicht in die Augen bringen!"

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




More that one application resource file

2002-07-08 Thread @Basebeans.com

Subject: More that one application resource file
From: Davor Cengija <[EMAIL PROTECTED]>
 ===
Is it possible, and if yes, how, to have more than one application resource 
file in a single application?

I'm working on a project where diffrerent people at different levels 
maintain a set of messages and translations and it's became very 
complicated to have all the jsp's and application resources in sync. What 
I'd like to have is appRes1.properties, appRes2.properties (and with locale 
extensions) and to use them just as they were merged into one 
appRes.properties file.

-- 
Davor Cengija
[EMAIL PROTECTED]
=
"Nicht in die Augen bringen!"

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




XML based application resources?

2002-07-08 Thread @Basebeans.com

Subject: XML based application resources?
From: Davor Cengija <[EMAIL PROTECTED]>
 ===
Is there an extension or maybe some trick in Struts which would allow me to 
have xml-based application resource files? It is very complicated to 
maintain 4 or even more .properties files in different languages. What I'd 
like to have is a single xml file with all the translations in it, 
something like this:


  
Color
Farbe
Boja
  
  


Thanks
-- 
Davor Cengija
[EMAIL PROTECTED]
=
"Nicht in die Augen bringen!"

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [ARTICLE] Using JAAS and Struts

2002-07-08 Thread Phase Web and Multimedia

This all sounds great if you are running only one app on Tomcat. I don't see
where it addresses having webapp level control of url mappings. It sounds to
me like JAAS serves well on a container level/single app level. But in a
shared hosting environment where you need to have specific webapps with
their own set of permissions and their own user info database/ldap/etc... it
wont' suffice. Am I wrong? Because if I am I need to be using this for my
Struts apps. I saw a spec that seems to address this better (I think).

Here is the link:
Java Authorization Contract for Containers:
ftp://ftp.java.sun.com/pub/spec/java_authorization_contract/POqt9333BB/jacc-
1_0-prd-spec.pdf

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 10:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [ARTICLE] Using JAAS and Struts
>
>
> Subject: Re: [ARTICLE] Using JAAS and Struts
> From: "Sebastian Millies" <[EMAIL PROTECTED]>
>  ===
> That's a nice article, and describes the sort of approach which I am sure
> many people (including me) have taken. I sure would have profited by
> reading this before figuring it all out myself ...
>
> My proposal would differ in having not the ActionServlet but the
> Action-classes
> check authorization - that way, you can include some bells and whistles in
> your ActionMapping and use the configuration in struts-config.xml
> to control
> security level, require logins, require SSL etc. for every single action.
>
> Also, if you want to collect all your
> permissions in a single permission DB (instead of multiple policy
> files) and
> still use JDK 1.3, you might want to consider using your own Policy
> implementation and maybe create an appropriateAccessControlContext
> under which all the action processing is done. That would be difficult to
> exactly mirror on JSP's, though.
>
> I'm sure people on the Struts team must have proposals up their sleeve on
> how to integrate JAAS, which they will include in a future release of
> Struts.
>
> -- Sebastian
>
>
> "matt_raible" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]...
> > I saw this from the Denver JUG this morning, thought some folks
> > might be interested:
> >
> > http://www.mooreds.com/jaas.html
> >
> > Downloads and code samples from:
> >
> > http://www.mooreds.com/
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




To Manfred Wolff < Struts + EJB ? >

2002-07-08 Thread Boney Sze


>>> I use Struts, Tomcat, JBoss, XDoclett, PostgreSQL,
>>> Ant, Log4J in a 5 "person year" project (not large
>>> but not small also) and it works really fine.

hello manfred, thanks for the reply.

may i know what versions of Struts, Tomcat, Jboss,
XDoclett, PostgreSQL, Ant, Log4J you are using ?

Thanks.


Boney

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: With Struts tag, Size of ArrayList

2002-07-08 Thread Daniel Jaffa

So that is the 1.1 fix to present, right
- Original Message -
From: "SATISH.T" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 9:21 AM
Subject: Re: With Struts tag, Size of ArrayList


> Use logic:present to check if the list is null or has any objs inside
> it.
>
> - Original Message -
> From: "Daniel Jaffa" <[EMAIL PROTECTED]>
> Date: Monday, July 8, 2002 6:45 pm
> Subject: With Struts tag, Size of ArrayList
>
> > Did a little research and could not find an elegant way to find
> > out if an
> > arraylist that i send over is populated or not.  Currently I send
> > the size
> > of the array list.  But would like to do something like
> > 
> >
> > 
> >
> > --
> > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>For additional commands, e-mail:
> > 
> >
> >
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [ARTICLE] Using JAAS and Struts

2002-07-08 Thread @Basebeans.com

Subject: Re: [ARTICLE] Using JAAS and Struts
From: "Sebastian Millies" <[EMAIL PROTECTED]>
 ===
That's a nice article, and describes the sort of approach which I am sure
many people (including me) have taken. I sure would have profited by
reading this before figuring it all out myself ...

My proposal would differ in having not the ActionServlet but the
Action-classes
check authorization - that way, you can include some bells and whistles in
your ActionMapping and use the configuration in struts-config.xml to control
security level, require logins, require SSL etc. for every single action.

Also, if you want to collect all your
permissions in a single permission DB (instead of multiple policy files) and
still use JDK 1.3, you might want to consider using your own Policy
implementation and maybe create an appropriateAccessControlContext
under which all the action processing is done. That would be difficult to
exactly mirror on JSP's, though.

I'm sure people on the Struts team must have proposals up their sleeve on
how to integrate JAAS, which they will include in a future release of
Struts.

-- Sebastian


"matt_raible" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> I saw this from the Denver JUG this morning, thought some folks
> might be interested:
>
> http://www.mooreds.com/jaas.html
>
> Downloads and code samples from:
>
> http://www.mooreds.com/
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts 1.1 on Weblogic

2002-07-08 Thread Anand Narayan

Weblogic 6.1 service pack 2 has a problem running Struts 1.1 web apps
Moving to sp3 or sp1 worked for me.



-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 5:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts 1.1 on Weblogic


Hi All,

I've seen similar behavior with 1.1b. I've not got to the bottom of it, but
have found that if I uninstall the war and redeploy all is OK. So it can
work, but WebLogic seems to be getting in a tizz somehow. I'll let you know
what I come up with...

Jon Ridgway


-Original Message-
From: Tadashi Ishikawa [mailto:[EMAIL PROTECTED]] 
Sent: 03 July 2002 10:45
To: Struts Users Mailing List
Subject: Re: Struts 1.1 on Weblogic

Does your WLS support web-app_2_3.dtd?

Anand Narayan wrote:

>I am getting the following error while trying to port an app from Struts
1.0
>to 1.1
>Has anyone encountered anything similar.  Thanks
>
>  
><[WebAppServletContext(7902680,sps-web-test,/sps-web-test)] Root cause of
>ServletException
>javax.servlet.jsp.JspException: Cannot find message resources under key
>org.apache.struts.action.MESSAGE
>at
>org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
>at
>org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:2
>95)
>at
jsp_servlet.__sps_index_new._jspService(__sps_index_new.java:124)
>at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>at
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>pl.java:265)
>at
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>pl.java:304)
>at
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>pl.java:200)
>at
>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
>rvletContext.java:2495)
>at
>weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
>pl.java:2204)
>at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
>at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
>
>Here's the web.xml that references the ApplicationResources
>
>
>2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>
>
>action
> 
>org.apache.struts.action.ActionServlet
>
>application
>egm.sps.web.ApplicationResources
>
>
>
>config
>/WEB-INF/struts-config.xml
>
>
>debug
>2
>
>
>detail
>2
>
>
>validate
>true
>
>1
>
>...
>...
>
>Its giving me the same error when I configure the application resources
>inside the struts-config.xml file as follows:
>  parameter="egm.sps.web.ApplicationResources"
>key="org.apache.struts.action.MESSAGE" />
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>
>
>




--
To unsubscribe, e-mail:

For additional commands, e-mail:


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [ANNOUNCE] stxx 1.0.0 released

2002-07-08 Thread Jeff Pennal

The license is the same as Struts, the Apache license.

Jeff

Brian Topping wrote:
>>-Original Message-
>>From: Jeff Pennal [mailto:[EMAIL PROTECTED]]
>>Sent: Sunday, July 07, 2002 3:26 PM
>>Subject: Re: [ANNOUNCE] stxx 1.0.0 released
>>
>>
>>You can find stxx at http://www.openroad.ca/opencode/stxx
> 
> 
> Sounds cool, a nice middle ground between struts and cocoon.
> 
> What's the license?
> 
> -b
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


-- 
Jeff Pennal p:604-694-0554(x107)
Senior Software Developer   f:604-694-0558
Openroad Communications e:[EMAIL PROTECTED]
Vancouver, BC


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts + EJB ?

2002-07-08 Thread Clay Graham

I use struts extensively, and although I think EJB can be an asset on some 
projects that require object relational mapping or complex deployment 
configurations, I find it entirely unessesary for the JSP and business 
logic layers of my current project and would be just another step for me to 
do when deploying.

In my current tomcat applciation I create a "factory pattern" object and 
let it deligate the implementations that are passed to the client from each 
layer. For my data store I emulate the entity and home (finders) patterns.

this seems to work for me very well, but of course the implementations have 
some stuff in there that might be better placed ina descriptor file if I 
was deploying to a clustered environment or working with other developers 
and configurations.

basically EJB is another layer, each layer you add is going to add some 
complexity, sometimes its worth it, sometimes it isn't. doing architecture 
is about making that call.

clay




-Original Message-
From:   Struts Newsgroup (@Basebeans.com) [SMTP:[EMAIL PROTECTED]]
Sent:   Sunday, July 07, 2002 11:10 PM
To: [EMAIL PROTECTED]
Subject:Re: Struts + EJB ?

Subject: Re: Struts + EJB 1 2 3 4 5 6 7 8 9
From: "Vic C." <[EMAIL PROTECTED]>
 ===
You might want to look at some EJB experiences on www.proj.com/bad.jsp,
the first 4 links are worth reading (the 3rd and 4th are new, and the
4th talk about PetStore)

Vic

Boney Sze wrote:
> can struts and EJB be used together in an application
> ?
> im kinda new to EJB but i could say i know struts
> already.
>
> can anybody provide any references or ideas about
> this?
> thanks
>
> Boney
>
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
>
> --
> To unsubscribe, e-mail: 
  
> For additional commands, e-mail: 

>


--
To unsubscribe, e-mail: 
  
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Doing business logic validation in the Action -ValdiatableAction

2002-07-08 Thread Peter S. Hamlen

James,

I'll just mention that we've taken an alternate approach from the others
mentioned on the newsgroup.   What we did was the following:

1) Create an interface called "ValidatableAction", with a method called
"validate".  

2) Create a "ValidatingForm" (bad name, I know) - within its Validate
method, it checks the action to see if it's an instanceof
ValidatableAction.  If so, it calls the action's validate method.

3) Ensure that your forms extend ValidatingForm, and your actions
implement ValidatableAction.

This allows you to capture the validating business logic in the action's
"validate" method, and leave the business processing logic in the
action's "execute" method.

See below for some of the actual code.  I welcome comments from the
group on this stuff...

-Peter


-Actual Code --

//Code for ValidatableAction
public interface ValidatableAction
{
   
public ActionErrors validateForm(   Form form, 
ActionMapping mapping,
HttpServletRequest request);
}



// Code within ValidatingForm's validate method

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request)
{
   Action action=(Action)Class.forName(mapping.getType()).newInstance();
   if (action instanceof ValidatableAction)
   {
ValidatableAction validatableAction =(ValidatableAction)action;
return validatableAction.validate(this, mapping, request);
   }
}



On Sun, 2002-07-07 at 19:40, James Turner wrote:
> Consider the following:  You have a new user creation form, and need to 
> ensure that the username chosen doesn't already exist in the database.
> 
> To keep any business logic out of the ActionForm, you'd really like to do 
> this in the Action.  However, as near as I can tell, the Action doesn't 
> have any access to the ActionErrors returned from the form, which means 
> that you'd have to use another mechanism (like a request attribute) to 
> return these type of errors.
> 
> Am I missing something, or is this the best practice for business logic 
> validation of forms?
> 
> James
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts article

2002-07-08 Thread Dan Cancro

Oops, here it is

http://www.e-promag.com/eparchive/index.cfm?fuseaction=viewarticle&ContentID
=1742&websiteid=

> -Original Message-
> From: Dan Cancro 
> Sent: Monday, July 08, 2002 9:03 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Return an ActionForward with additional query data?
> 
> 
> Here's another Struts article for the list:
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Re: Struts + EJB ?

2002-07-08 Thread Manfred Wolff

Hi.

Struts and EJB is no problem. You use the "business delegate" pattern to
seperate business logic in the EJB Container (e.g. JBoss). You use also the
"value object" pattern to transport your data from the action to the fassade
on the EJB Container. Than you do all your logic in the application server
(do some data saving etc.) and return your data also with "value object".
With some intelligence you can copy your entity data 1:1 to the struts form.

I use Struts, Tomcat, JBoss, XDoclett, PostgreSQL, Ant, Log4J in a 5 "person
year" project (not large but not small also) and it works really fine.

Greetings
Manfred

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von Brian Topping
Gesendet: Montag, 8. Juli 2002 17:16
An: Struts Users Mailing List
Betreff: RE: Re: Struts + EJB ?


I hope all my potential competitors read this... i sure would love to have
them not using EJB out of the gate!!! :P

-b

> -Original Message-
> From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 2:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts + EJB ?
>
>
> Subject: Re: Struts + EJB 1 2 3 4 5 6 7 8 9
> From: "Vic C." <[EMAIL PROTECTED]>
>  ===
> You might want to look at some EJB experiences on
> www.proj.com/bad.jsp,
> the first 4 links are worth reading (the 3rd and 4th are new, and the
> 4th talk about PetStore)
>
> Vic
>
> Boney Sze wrote:
> > can struts and EJB be used together in an application
> > ?
> > im kinda new to EJB but i could say i know struts
> > already.
> >
> > can anybody provide any references or ideas about
> > this?
> > thanks
> >
> > Boney
> >
> > __
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Return an ActionForward with additional query data?

2002-07-08 Thread Dan Cancro

Here's another Struts article for the list:

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Any Struts Tag

2002-07-08 Thread @Basebeans.com

Subject: Any Struts Tag
From: "bkrishna" <[EMAIL PROTECTED]>
 ===
Hi All,

I am trying to achieve the following

1.  from a Form using a button open a window (popup) (I am doing this by
calling a javasript window.open function)
2.  do some processing in the popup window and display a result set. (I am
doing this without any problem using struts iterate tag)
3.  select a value from the popup window (here I am using html:link tag) and
come back to the Form.

I tried using javascript open command and tried struts link tag, it always
opens a new Form window.  I am not able to get the result back to the
original Form window.  Can someone guide/suggest something.

Thanks in Advance.

Bala.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Re: [ARTICLE] Using JAAS and Struts

2002-07-08 Thread Seymore, Walter BGI UK

But surely this is handled by the container. If the container's
implementation is not sufficient (e.g. it doesn't allow password file
validation that an app requires), should it not allow something like a JAAS
module to be plugged in? This would allow code to be written in a consistent
way (or not written at all if more fine-grained security is not required)

Walter

-Original Message-
From: James Ward [mailto:[EMAIL PROTECTED]]
Sent: 08 July 2002 16:45
To: Struts Users Mailing List
Subject: RE: Re: [ARTICLE] Using JAAS and Struts


Not if you want to have security on the method level of your ejb's.
JAAS is the way to go for security in distributed apps.  If you just
have a simple web app with no j2ee stuff, then sure, add a few lines to
your web.xml file.  If you have something more complex, use JAAS.

-James


> -Original Message-
> From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [ARTICLE] Using JAAS and Struts
> 
> Subject: Re: [ARTICLE] Using JAAS and Struts
> From: "Vic C." <[EMAIL PROTECTED]>
>  ===
> If I may,
> he does a *lot* more than he needs and mkaes it complex. He can just
set
> up a few lines in WEB.XML and he is done.
> 
> matt_raible wrote:
> > I saw this from the Denver JUG this morning, thought some folks
> > might be interested:
> >
> > http://www.mooreds.com/jaas.html
> >
> > Downloads and code samples from:
> >
> > http://www.mooreds.com/
> >
> >
> > --
> > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > For additional commands, e-mail:  [EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Can't find logonAction?

2002-07-08 Thread Thinh Doan

Hi,

My app often locks up and tomcat logs indicated that it's trying to find
(instantiate) the logonAction. It had previously "found" the logonForm
however. The status bar on the browser showed the jsessionid generated. The
app was running fine before this condition occured.

Any clues on what might be the problem here? I'm running on RH 7.2, Tomcat
4.0.3 & Struts 1.0.2. TIA for your help.

Thinh


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Object Relational Bridge is great ? A Basic Problem

2002-07-08 Thread Schneider, Eric

Adolfo,

I understand what you are getting at, but there is a reason why this
framework doesn't exist.  It's because it is an extremely difficult problem.

I have used a couple of O/R frameworks that come close to doing what you
describe.  Instead of creating concrete classes with accessors for every
entity they use a generic class that allows you to access attributes by
calling getObjectForKey() and setObjectForKey().  But, still, this type of
framework requires an additional configuration layer of property files that
contain metadata information pertaining to database.

Think of all the things this ER configuration layer must keep track of:
-entity to table name mapping
-object attribute to table column mapping (types, precision, is attribute
required, etc.)
-relationship descriptions (to-one, to-many, optionality, cardinality,
cascading deletes, etc.)

On top of that, add business rules into the mix and it gets complex really
fast.  Think of all the different ways you need to validate information.  Is
the validation different for a property based on whether you are inserting,
updating, or deleting?  Where is this validation suppose to go?

When you dig a bit deeper you quickly find out there is nothing 'Basic'
about good object relational frameworks.

Food for thought.

e.

> -Original Message-
> From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 10:42 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Object Relational Bridge is great ? A Basic Problem
> 
> 
> 
> Thanks Eric,
> 
> I will have it a look. Looks like interesting.
> 
> However, a question more, for you or whoever. I would like to 
> hear someone 
> agreeing my suspicions that for most of O/R mapping 
> frameworks, we need to 
> create the object classes that map database tables by 
> compiling code or 
> using ant tasks. None (do not know Cayenne yet), is able to 
> do for itself.
> 
> I did get any feedback sharing my point and I wonder if I am missing 
> something.
> 
> Regards and thanks anyway,
> 
> Adolfo
> 
> 
> 
> >From: "Schneider, Eric" <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: RE: Object Relational Bridge is great ? A Basic Problem
> >Date: Mon, 8 Jul 2002 06:55:44 -0600
> >
> >Adolfo,
> >
> >Have a look at thismaybe it better suits your needs.  
> It's in alpha, 
> >but
> >don't let that fool you.  It's more mature than most OR 
> tools I've looked
> >at.
> >
> >http://objectstyle.org/cayenne
> >
> >Eric
> >
> > > -Original Message-
> > > From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, July 05, 2002 5:50 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Object Relational Bridge is great ? A Basic Problem
> > >
> > >
> > >
> > > Hi,
> > >
> > > as a newbie in O/R mapping tools, APIs and frameworks I find
> > > the following
> > > issue. All of the frameworks that I have browsed lacks from a
> > > basic problem:
> > > The classes that maps the corresponding tables in the
> > > database must be
> > > manually generated, either by hand (e.g. OJB) or by building
> > > the code (e.g.
> > > Jakarta Torque).
> > >
> > > This becomes a pain since it difficults to make an
> > > application that could
> > > "learn" for itself a data model and create its own classes.
> > > No way, AFAIK,
> > > for implementing general mechanism.
> > >
> > > I know about BCEL project, which is able to compile classes
> > > in runtime, and
> > > it could be really helpful to integrate with the previous
> > > ones and get
> > > automathic mechanims, but I do not any framework that take
> > > advantage of
> > > BCEL.
> > >
> > > The only way that I have seen to do something similar, is the
> > > mini-project
> > > SIMPER (Struts resources page), which is able to work out 
> dynabeans
> > > (actually they are hashmaps in their guts), following a
> > > database schema, for
> > > it self. For me it has the problem that uses Servlets 2.3
> > > filters and I am
> > > working with Servlets 2.2 specs.
> > >
> > > I just want to request your opinion or knowledge about a
> > > framework that can
> > > implement itself such a classes, or a framework which 
> classes are not
> > > actually classes but hashmaps or something like that or
> > > even some one
> > > taking advantage of BCEL or analogous mechanism. I know is a
> > > difficult
> > > question, supposing that I am not mixing any concept up.
> > >
> > > :-)
> > >
> > > Thanks in advance,
> > >
> > > Adolfo
> > >
> > > >From: Adam Hardy <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List"
> > > <[EMAIL PROTECTED]>
> > > >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > >Subject: Re: Object Relational Bridge is great !
> > > >Date: Fri, 05 Jul 2002 18:15:45 +0200
> > > >
> > > >Hi Fabrice,
> > > >did you check out JDO? If so, why didn't you prefer it?
> > > >
> > > >
> > > >
> > > >fabrice dewasmes wrote:
> > > >>Hi,
> > > >>
> > > >>no problem this time but i'd like to applause chuck
> > > Cavan

RE: Stability ??

2002-07-08 Thread Martin Cooper

We're getting close to 1.1 Beta 2, so you should be fine with the most
recent nightly build. In addition to bug fixes over 1.1 Beta 1, you'll also
get to use the latest and greatest features. ;-) However, if you'd be more
comfortable with 1.1 Beta 1, that is also pretty stable.

--
Martin Cooper


> -Original Message-
> From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 3:49 AM
> To: Struts Users Mailing List (E-mail)
> Subject: Stability ??
> 
> 
> Hi guys !!
> 
> I need to use struts 1.1 b1 or a nightbuild.
> I'm actually using struts 1.0.2.
> 
> Is struts 1.1 B1 stable or should I use a nightbuild (which one) ??
> 
> is someone success the upgrade ???
> 
> Thanks for your advices.
> 
>   Arnaud HERITIER
>   EAI Consulting
>   Sopra Group
>   Tél. : +33 (0)1 53 33 44 74
>   email : [EMAIL PROTECTED]
> 
>   Ce message est exclusivement destiné aux personnes dont le 
> nom figure
> ci-dessus. Il peut contenir des informations confidentielles dont la
> divulgation est à ce titre rigoureusement interdite. Dans 
> l'hypothèse où
> vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
> e-mail ci-dessus et de détruire toute copie.
> 
>   This message may contain confidential and proprietary 
> material for the
> sole use of the intended recipient. Any review or 
> distribution by others is
> strictly prohibited. If you are not the intended recipient, 
> please contact
> the sender and delete all copies.
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Re: [ARTICLE] Using JAAS and Struts

2002-07-08 Thread James Ward

Not if you want to have security on the method level of your ejb's.
JAAS is the way to go for security in distributed apps.  If you just
have a simple web app with no j2ee stuff, then sure, add a few lines to
your web.xml file.  If you have something more complex, use JAAS.

-James


> -Original Message-
> From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [ARTICLE] Using JAAS and Struts
> 
> Subject: Re: [ARTICLE] Using JAAS and Struts
> From: "Vic C." <[EMAIL PROTECTED]>
>  ===
> If I may,
> he does a *lot* more than he needs and mkaes it complex. He can just
set
> up a few lines in WEB.XML and he is done.
> 
> matt_raible wrote:
> > I saw this from the Denver JUG this morning, thought some folks
> > might be interested:
> >
> > http://www.mooreds.com/jaas.html
> >
> > Downloads and code samples from:
> >
> > http://www.mooreds.com/
> >
> >
> > --
> > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > For additional commands, e-mail:  [EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [ARTICLE] Using JAAS and Struts

2002-07-08 Thread @Basebeans.com

Subject: Re: [ARTICLE] Using JAAS and Struts
From: "Vic C." <[EMAIL PROTECTED]>
 ===
If I may,
he does a *lot* more than he needs and mkaes it complex. He can just set 
up a few lines in WEB.XML and he is done.

matt_raible wrote:
> I saw this from the Denver JUG this morning, thought some folks 
> might be interested:
> 
> http://www.mooreds.com/jaas.html
> 
> Downloads and code samples from:
> 
> http://www.mooreds.com/
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: errors.suffix

2002-07-08 Thread Craig R. McClanahan



On Mon, 8 Jul 2002, Kiss Attila wrote:

> Date: Mon, 8 Jul 2002 14:18:21 +0200
> From: Kiss Attila <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: errors.suffix
>
> but i want to use suffix becouse a want to put some text after every error
> message!

Recent nightly builds of 1.1 let you specify "errors.prefix" and
"errors.suffix" message keys, to define text that is added to the
beginning and end of each individual message.  This will also be true in
the upcoming 1.1-beta-2.

Craig


> - Original Message -
> From: "Oren Gross" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 3:11 PM
> Subject: RE: errors.suffix
>
>
> > You should use header and footer
> >
> > -
> > Oren Gross Java(TM) Developer
> > Mercury Interactive APM TAC R&D
> > +972-3-5399407 [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 08, 2002 2:12 PM
> > To: Struts Users Mailing List
> > Subject: errors.suffix
> >
> >
> > hy all
> >
> > i trying to use errors.suffix= ... in my properties file and i see that
> > struts is not use  that.
> > whit errors.header is workink well .
> > could someone tell me why?
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: i18n is killing me!

2002-07-08 Thread Martin Cooper

For the default resource bundle, you should not be specifying a key in your
 entry in struts-config.xml.

--
Martin Cooper


> -Original Message-
> From: Brian Topping [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 07, 2002 9:46 PM
> To: [EMAIL PROTECTED]
> Subject: i18n is killing me!
> 
> 
> hiyas, 
> 
> can anyone lend a hand with i18n?  it's starting to feel like 
> i81n!! :/
> 
> environment is struts 1.1b1, win2k, jboss 3.0/tomcat 4.0.3 
> release, default
> locale is en_US.
> 
> i have a web-inf/classes/ApplicationResources.properties as well as
> web-inf/classes/ApplicationResources_en.properties for good 
> measure.  In my
> struts-config.xml, i have  parameter="ApplicationResources"
> key="org.apache.struts.action.MESSAGE" null="false"/>.
> 
> it seems like i should be able to get something with:
> 
> System.out.println(messages.getMessage(Locale.getDefault(),"er
> ror.transaction
> .token"));
> 
> but I get nothing but the bad property string (since the null config
> attribute is set to false).  error.transaction.token is 
> defined in both
> files, the spelling is checked a hundred times, etc.
> 
> Of course, ActionError("error.transaction.token") gives the same error
> result.
> 
> Anything that ppl can think that i missing?  i've spent the 
> whole day on
> this!!
> 
> thanks a bunch,
> 
> -b
> 
> _ 
> If you have some ice cream, I will give it to you. 
> If you have no ice cream, I will take it away from you. 
>  - Ice Cream Koan
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: i18n is killing me!

2002-07-08 Thread Brian Topping

> -Original Message-
> From: Zayed [mailto:[EMAIL PROTECTED]]
> Subject: Re: i18n is killing me!
> 
> 
> try by renaming your properties file as XXX_en_US.properties.
> 
> Cheers!!
> Zayed

Thanks for the tip, no, doesn't work.  Makes *no* sense.  

Gurus:  Is there any points in the struts code that I should be checking for
brain damage?  I'm completely set up in my debugger to debug my application
and struts together, I've traced the configuration object getting created
(not too interesting), and I've traced into the call to get the property.
I'm not too up on how all this works, but it seems like struts is trying to
take over the job of i18n from the JVM and not doing it quite right.  It
seems like others have been having problems with this (Babs Post) and would
like to find a more robust fix.

best,

-b

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Re: Struts + EJB ?

2002-07-08 Thread Brian Topping

I hope all my potential competitors read this... i sure would love to have
them not using EJB out of the gate!!! :P

-b

> -Original Message-
> From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 2:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts + EJB ?
> 
> 
> Subject: Re: Struts + EJB 1 2 3 4 5 6 7 8 9
> From: "Vic C." <[EMAIL PROTECTED]>
>  ===
> You might want to look at some EJB experiences on 
> www.proj.com/bad.jsp, 
> the first 4 links are worth reading (the 3rd and 4th are new, and the 
> 4th talk about PetStore)
> 
> Vic
> 
> Boney Sze wrote:
> > can struts and EJB be used together in an application
> > ?
> > im kinda new to EJB but i could say i know struts
> > already.
> > 
> > can anybody provide any references or ideas about
> > this?
> > thanks
> > 
> > Boney
> > 
> > __
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 

> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




marking checkboxes checked from a List

2002-07-08 Thread Rick Reumann

I'm sure there is a good way to handle this in Struts but me being the
dumbass I thought I'd ask for help:

Picture a case where you display a list of "jobs" -
where next to each job name is a checkbox (Just using jobs for this
example). Each checkbox corresponding to the job will have a value
that is a String (jobAbbreviation). Displaying this list of jobs and
the value of the checkboxes isn't a problem ( populated from an
ArrayList of JobObjects ).

The problem is:

How do I mark the correct checkboxes based on an ArrayList of
Strings (jobAbbreivations)? In other words I have just a List of Strings
and I need to mark all the appropriate checkboxes that have the same
values as this List of abbreviations. ( I know an ugly way to do it
using java in the JSP page checking each value to see if it's in the
List but there must be a cleaner way ).

Thanks so much for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Object Relational Bridge is great ? A Basic Problem

2002-07-08 Thread Adolfo Miguelez


Thanks Eric,

I will have it a look. Looks like interesting.

However, a question more, for you or whoever. I would like to hear someone 
agreeing my suspicions that for most of O/R mapping frameworks, we need to 
create the object classes that map database tables by compiling code or 
using ant tasks. None (do not know Cayenne yet), is able to do for itself.

I did get any feedback sharing my point and I wonder if I am missing 
something.

Regards and thanks anyway,

Adolfo



>From: "Schneider, Eric" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Object Relational Bridge is great ? A Basic Problem
>Date: Mon, 8 Jul 2002 06:55:44 -0600
>
>Adolfo,
>
>Have a look at thismaybe it better suits your needs.  It's in alpha, 
>but
>don't let that fool you.  It's more mature than most OR tools I've looked
>at.
>
>http://objectstyle.org/cayenne
>
>Eric
>
> > -Original Message-
> > From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 05, 2002 5:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Object Relational Bridge is great ? A Basic Problem
> >
> >
> >
> > Hi,
> >
> > as a newbie in O/R mapping tools, APIs and frameworks I find
> > the following
> > issue. All of the frameworks that I have browsed lacks from a
> > basic problem:
> > The classes that maps the corresponding tables in the
> > database must be
> > manually generated, either by hand (e.g. OJB) or by building
> > the code (e.g.
> > Jakarta Torque).
> >
> > This becomes a pain since it difficults to make an
> > application that could
> > "learn" for itself a data model and create its own classes.
> > No way, AFAIK,
> > for implementing general mechanism.
> >
> > I know about BCEL project, which is able to compile classes
> > in runtime, and
> > it could be really helpful to integrate with the previous
> > ones and get
> > automathic mechanims, but I do not any framework that take
> > advantage of
> > BCEL.
> >
> > The only way that I have seen to do something similar, is the
> > mini-project
> > SIMPER (Struts resources page), which is able to work out dynabeans
> > (actually they are hashmaps in their guts), following a
> > database schema, for
> > it self. For me it has the problem that uses Servlets 2.3
> > filters and I am
> > working with Servlets 2.2 specs.
> >
> > I just want to request your opinion or knowledge about a
> > framework that can
> > implement itself such a classes, or a framework which classes are not
> > actually classes but hashmaps or something like that or
> > even some one
> > taking advantage of BCEL or analogous mechanism. I know is a
> > difficult
> > question, supposing that I am not mixing any concept up.
> >
> > :-)
> >
> > Thanks in advance,
> >
> > Adolfo
> >
> > >From: Adam Hardy <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > >Subject: Re: Object Relational Bridge is great !
> > >Date: Fri, 05 Jul 2002 18:15:45 +0200
> > >
> > >Hi Fabrice,
> > >did you check out JDO? If so, why didn't you prefer it?
> > >
> > >
> > >
> > >fabrice dewasmes wrote:
> > >>Hi,
> > >>
> > >>no problem this time but i'd like to applause chuck
> > Cavaness with both
> > >>hands
> > >>for the public review of his struts book. Chuck, you're
> > clairvoyant :
> > >>using
> > >>Object relational bridge is a great idea. we've hesitated
> > between torque,
> > >>castor, and OJB and it appears that OJB has a really
> > powerful API and
> > >>allows
> > >>all kind of relational mappings (1:1, 1:n, m:n,
> > inheritance, polymorphism,
> > >>...) it saves a lot of time and i think this is many more
> > powerful than
> > >>EJBs.
> > >>
> > >>I definitely recommend this persistence framework to any
> > people beginning
> > >>a
> > >>struts project (or even non struts project)
> > >>
> > >>Fabrice
> > >>
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > >
> > >For additional commands, e-mail:
> > >
> > >
> >
> >
> > _
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
>
>
>**
>This message, including any attachments, contains confidential information 
>intended for a specific individual and purpose, and is protected by law.  
>If you are not the intended recipient, please contact sender immediately by 
>reply e-mail and destroy all copies.  You are hereby notified that any 
>disclosure, copying, or distribution of this message, or the taking of any 
>action based on it, is strictly prohibited.
>TIAA-CREF
>**



RE: Problem with html:link and html:img

2002-07-08 Thread Ravi Kora

Yes, that is what I have tried. But it doesn't seem to work.

Regards,
Ravi Kora

-Original Message-
From: Nina-Annick Stranzenbach [mailto:[EMAIL PROTECTED]]

Sent: Monday, July 08, 2002 9:44 AM
To: 'Struts Users Mailing List'
Subject: Re: Problem with html:link and html:img


have you tried  
 
 ?


On Mon, 2002-07-08 at 16:08, Ravi Kora wrote:
> Hi,
> I have a page where I want to combine my html:link and html:img tags. 
> In regular html, it would be something like this.  href="dummy.html">
> 
> I want to write the same thing using struts tags.On clicking the 
> image, I want to invoke a JavaScript function which eventually submits

> the form. So, I wrote my code like this. 

>  
> 
> This code does not work.I am using Struts 1.0.2. Can someone please 
> help me with this?
> 
> 
> Thanks & Regards,
> Ravi Kora
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
> 
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail: 
> 
> 



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem with html:link and html:img

2002-07-08 Thread Nina-Annick Stranzenbach

have you tried  
 
 ?


On Mon, 2002-07-08 at 16:08, Ravi Kora wrote:
> Hi,
> I have a page where I want to combine my html:link and html:img tags. In
> regular html, it would be something like this. 
>  
> 
> I want to write the same thing using struts tags.On clicking the image,
> I want to invoke a JavaScript function which eventually submits the
> form. So, I wrote my code like this. 
>  
> 
> 
> This code does not work.I am using Struts 1.0.2. Can someone please help
> me with this?
> 
> 
> Thanks & Regards,
> Ravi Kora
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Property exception after upgrading to JDK 1.4

2002-07-08 Thread Erich Meier

On Mon, Jul 08, 2002 at 01:11:26PM +0200, Erich Meier wrote:
> Hi all,
> 
> after upgrading JDK from 1.3.1 to 1.4.0, the  tag throws an
> exception under some strange circumstances:
> 
> java.lang.Error: PropertyDescriptor: internal error while merging PDs: type mismatch 
>between read and write methods
[...]
> 
> Note: not all bean:write tags show this behaviour, only some of them.
> 
> Did anyone else also run into this problem? Has anyone solved it? How?

I solved this myself. It was caused by the new implementation of the
Introspector class in JDK 1.4. This results in stricter name checking with
boolean bean properties.

My app had a String property "type" with getType/setType and additionally
I had implemented a method "isType" returning boolean. This inconsistency was
obviously not detected by pre-1.4 JDK versions.

Greetings,
Erich

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[ARTICLE] Using JAAS and Struts

2002-07-08 Thread matt_raible

I saw this from the Denver JUG this morning, thought some folks 
might be interested:

http://www.mooreds.com/jaas.html

Downloads and code samples from:

http://www.mooreds.com/


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem with html:link and html:img

2002-07-08 Thread Ravi Kora

Hi,
I have a page where I want to combine my html:link and html:img tags. In
regular html, it would be something like this. 
 

I want to write the same thing using struts tags.On clicking the image,
I want to invoke a JavaScript function which eventually submits the
form. So, I wrote my code like this. 
 


This code does not work.I am using Struts 1.0.2. Can someone please help
me with this?


Thanks & Regards,
Ravi Kora
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




problem with error messages

2002-07-08 Thread @Basebeans.com

Subject: problem with error messages
From: [EMAIL PROTECTED]
 ===
Hello,

I am getting the following error message on one of my
jsps:

javax.servlet.ServletException: Exception creating
bean of class com.valleyrec.toteboard.beans.Toteboard:
{1}

I know from browsing the struts source that the {1}
should be the forward.forward property from
org.apache.struts.taglib.logic.LocalProperties.properties.
 That message is:

Exception forwarding for name {0}: {1}

with the {0} and {1} replaced by parameters.  I've had
this problem across multiple versions of struts
(including today's cvs and a few daily builds from
last week).  Does anyone know why I'm not getting the
correct error messages?  Could this be a bug, or do I
have some sort of configuration error?

Jonboy Corbin

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: With Struts tag, Size of ArrayList

2002-07-08 Thread SATISH.T

Use logic:present to check if the list is null or has any objs inside 
it.

- Original Message -
From: "Daniel Jaffa" <[EMAIL PROTECTED]>
Date: Monday, July 8, 2002 6:45 pm
Subject: With Struts tag, Size of ArrayList

> Did a little research and could not find an elegant way to find 
> out if an
> arraylist that i send over is populated or not.  Currently I send 
> the size
> of the array list.  But would like to do something like
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>For additional commands, e-mail: 
> 
> 
> 


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


With Struts tag, Size of ArrayList

2002-07-08 Thread Daniel Jaffa

Did a little research and could not find an elegant way to find out if an
arraylist that i send over is populated or not.  Currently I send the size
of the array list.  But would like to do something like




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: errors.suffix

2002-07-08 Thread Kiss Attila

Thanks Ted
- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 2:50 PM
Subject: Re: errors.suffix


> Are you using the nightly build. The errors.prefix and errors.suffix
> are  not available except in the nightly build.
>
> Kiss Attila wrote:
> >
> > but i want to use suffix becouse a want to put some text after every
error
> > message!
> > - Original Message -
> > From: "Oren Gross" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Monday, July 08, 2002 3:11 PM
> > Subject: RE: errors.suffix
> >
> > > You should use header and footer
> > >
> > > -
> > > Oren Gross Java(TM) Developer
> > > Mercury Interactive APM TAC R&D
> > > +972-3-5399407 [EMAIL PROTECTED]
> > >
> > >
> > > -Original Message-
> > > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, July 08, 2002 2:12 PM
> > > To: Struts Users Mailing List
> > > Subject: errors.suffix
> > >
> > >
> > > hy all
> > >
> > > i trying to use errors.suffix= ... in my properties file and i see
that
> > > struts is not use  that.
> > > whit errors.header is workink well .
> > > could someone tell me why?
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

>
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Java Web Development with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: errors.suffix

2002-07-08 Thread Ted Husted

Are you using the nightly build. The errors.prefix and errors.suffix
are  not available except in the nightly build.

Kiss Attila wrote:
> 
> but i want to use suffix becouse a want to put some text after every error
> message!
> - Original Message -
> From: "Oren Gross" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 3:11 PM
> Subject: RE: errors.suffix
> 
> > You should use header and footer
> >
> > -
> > Oren Gross Java(TM) Developer
> > Mercury Interactive APM TAC R&D
> > +972-3-5399407 [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 08, 2002 2:12 PM
> > To: Struts Users Mailing List
> > Subject: errors.suffix
> >
> >
> > hy all
> >
> > i trying to use errors.suffix= ... in my properties file and i see that
> > struts is not use  that.
> > whit errors.header is workink well .
> > could someone tell me why?
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Java Web Development with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logic:iterate populating with multiple String[]

2002-07-08 Thread Kamholz, Keith (corp-staff) USX

I just remembered those table resources that I was talking about.  It's the
 tag library.  I haven't used it, so I'm not sure exactly how it
works, but I read the description and it seems like it allows the creation
of tables column by column.  I'm not sure though, since I haven't read past
the surface description or used it at all.  It's available at
http://edhill.its.uiowa.edu/display/.  Has anyone else used this?  What did
you think of it?

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: Zayed [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 1:51 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate populating with multiple String[]


Hi,

Has enyone got answer for this?

thanks,
Zayed

[EMAIL PROTECTED] wrote:

> Hi Keith,  
> Thanks for your reply.
>
> The Problem I am facing is regarding the use of   and 
>  tags
>
> Let me restate my problem
>
> I am developing a WEB-UI for a third party Java Application Therefore 
> I don't have control over the object/s returned.
> I get two String arrays of the same length which I should be showing 
> in a table. The first String[] contains productName and the second 
> String[] contains the corresponding product description. how do I 
> construct the table rows using  and  tags.
>
> The corresponding JSP code looks is below
>
> <%
>String[] productNamesArray = //Get the product names array
>String[] productDesctriptionArray = //Get the product description 
> array
>//FYI : productNamesArray.length = productDesctriptionArray.length
>
>for(int i=0; i
> %>
>
>
>
>  <%= productNamesArray[i] %>
>
>  <%= productDesctriptionArray[i] %>
>
>
> <%
>}//end of for loop
> %>
>
> could somebody help me with corresponding snippet using 
>  and  tags
>
> Thanks in advance
>
> Cheers!!
> Zayed
>
>
> [EMAIL PROTECTED] wrote:
>
>> I'm not sure if I'm understanding what you're trying to do, but I'm 
>> doing
>> something similar.  I decided not to use an array for each property.  
>> I have
>> a bean that holds the info for an entry, and then in the action I add 
>> that
>> bean to an EntryHolder object that stores lists of entries.  Then I 
>> simply
>> iterate through my EntryHolder lists and get the info for each 
>> entry.  This
>> is also a more understandable design, because it's perfectly clear which
>> entry properties go together.  With arrays of properties, it is less 
>> clear
>> which individual properties correspond to each other.  However, I am 
>> kinda
>> new to all this, so if I'm wrong about anything, someone please 
>> correct me.
>> I hope this helps.
>>
>> ~ Keith
>> http://www.buffalo.edu/~kkamholz
>>
>>
>>
>> -Original Message-
>> From: Zayed [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, July 05, 2002 9:39 AM
>> To: Struts Users Mailing List
>> Subject: logic:iterate populating with multiple String[]
>>
>>
>> Hi,
>>
>> I am struck up with this problem. please help
>>
>> I am iterating rows. In the first column I populate Product Name, In 
>> the second coulmn I populate Product Description.  Both are contained 
>> in String Arrays. The productListForm is of type DynaActionForm whose 
>> form-properties are productName and productDesciption Arrays.
>>
>> How do I construct  and  tags. Please help
>>
>>
>> This is what I have as of now ( it dosent work though)
>>
>>> property="name" indexId="index">
>>
>>
>> 
>> 
>>
>> 
>> 
>>  
>>
>>
>> Thanks in advance
>>
>>
>> -- 
>> To unsubscribe, e-mail:
>> 
>> For additional commands, e-mail:
>> 
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logic:iterate populating with multiple String[]

2002-07-08 Thread Kamholz, Keith (corp-staff) USX

Hey,
I can't think of a quick fix for this offhand.  However, I think there are
some resources available online somewhere that allow you to create tables
column by column rather than line by line.  I can't remember where I saw
this, but I'll let you know if I do.
One quick fix I came up with when I was working on my app was to create a
display property.  All it did was return one long String with the properties
and any extra desired text in it.  I know it's a very inelegant fix, but
it's the only thing I can come up with off the top of my head without you
restructuring your form beans like I suggested before.
Could anyone who knows what I mean about those table resources that let you
create a table column by colmun let us all know?  I found out about it on
this list, so someone has to know what I'm talking about.
Hope this is helpful and that I'm making some sense.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: Zayed [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 1:51 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate populating with multiple String[]


Hi,

Has enyone got answer for this?

thanks,
Zayed

[EMAIL PROTECTED] wrote:

> Hi Keith,  
> Thanks for your reply.
>
> The Problem I am facing is regarding the use of   and 
>  tags
>
> Let me restate my problem
>
> I am developing a WEB-UI for a third party Java Application Therefore 
> I don't have control over the object/s returned.
> I get two String arrays of the same length which I should be showing 
> in a table. The first String[] contains productName and the second 
> String[] contains the corresponding product description. how do I 
> construct the table rows using  and  tags.
>
> The corresponding JSP code looks is below
>
> <%
>String[] productNamesArray = //Get the product names array
>String[] productDesctriptionArray = //Get the product description 
> array
>//FYI : productNamesArray.length = productDesctriptionArray.length
>
>for(int i=0; i
> %>
>
>
>
>  <%= productNamesArray[i] %>
>
>  <%= productDesctriptionArray[i] %>
>
>
> <%
>}//end of for loop
> %>
>
> could somebody help me with corresponding snippet using 
>  and  tags
>
> Thanks in advance
>
> Cheers!!
> Zayed
>
>
> [EMAIL PROTECTED] wrote:
>
>> I'm not sure if I'm understanding what you're trying to do, but I'm 
>> doing
>> something similar.  I decided not to use an array for each property.  
>> I have
>> a bean that holds the info for an entry, and then in the action I add 
>> that
>> bean to an EntryHolder object that stores lists of entries.  Then I 
>> simply
>> iterate through my EntryHolder lists and get the info for each 
>> entry.  This
>> is also a more understandable design, because it's perfectly clear which
>> entry properties go together.  With arrays of properties, it is less 
>> clear
>> which individual properties correspond to each other.  However, I am 
>> kinda
>> new to all this, so if I'm wrong about anything, someone please 
>> correct me.
>> I hope this helps.
>>
>> ~ Keith
>> http://www.buffalo.edu/~kkamholz
>>
>>
>>
>> -Original Message-
>> From: Zayed [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, July 05, 2002 9:39 AM
>> To: Struts Users Mailing List
>> Subject: logic:iterate populating with multiple String[]
>>
>>
>> Hi,
>>
>> I am struck up with this problem. please help
>>
>> I am iterating rows. In the first column I populate Product Name, In 
>> the second coulmn I populate Product Description.  Both are contained 
>> in String Arrays. The productListForm is of type DynaActionForm whose 
>> form-properties are productName and productDesciption Arrays.
>>
>> How do I construct  and  tags. Please help
>>
>>
>> This is what I have as of now ( it dosent work though)
>>
>>> property="name" indexId="index">
>>
>>
>> 
>> 
>>
>> 
>> 
>>  
>>
>>
>> Thanks in advance
>>
>>
>> -- 
>> To unsubscribe, e-mail:
>> 
>> For additional commands, e-mail:
>> 
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: errors.suffix

2002-07-08 Thread Kiss Attila

how? i have just one ActionError object

- Original Message -
From: "Nina-Annick Stranzenbach" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 1:45 PM
Subject: Re: errors.suffix


> u can do that with errors.footer
>
> On Mon, 2002-07-08 at 14:18, Kiss Attila wrote:
> > but i want to use suffix becouse a want to put some text after every
error
> > message!
> > - Original Message -
> > From: "Oren Gross" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Monday, July 08, 2002 3:11 PM
> > Subject: RE: errors.suffix
> >
> >
> > > You should use header and footer
> > >
> > > -
> > > Oren Gross Java(TM) Developer
> > > Mercury Interactive APM TAC R&D
> > > +972-3-5399407 [EMAIL PROTECTED]
> > >
> > >
> > > -Original Message-
> > > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, July 08, 2002 2:12 PM
> > > To: Struts Users Mailing List
> > > Subject: errors.suffix
> > >
> > >
> > > hy all
> > >
> > > i trying to use errors.suffix= ... in my properties file and i see
that
> > > struts is not use  that.
> > > whit errors.header is workink well .
> > > could someone tell me why?
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: errors.suffix

2002-07-08 Thread Nina-Annick Stranzenbach

u can do that with errors.footer

On Mon, 2002-07-08 at 14:18, Kiss Attila wrote:
> but i want to use suffix becouse a want to put some text after every error
> message!
> - Original Message -
> From: "Oren Gross" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 3:11 PM
> Subject: RE: errors.suffix
> 
> 
> > You should use header and footer
> >
> > -
> > Oren Gross Java(TM) Developer
> > Mercury Interactive APM TAC R&D
> > +972-3-5399407 [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 08, 2002 2:12 PM
> > To: Struts Users Mailing List
> > Subject: errors.suffix
> >
> >
> > hy all
> >
> > i trying to use errors.suffix= ... in my properties file and i see that
> > struts is not use  that.
> > whit errors.header is workink well .
> > could someone tell me why?
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: errors.suffix

2002-07-08 Thread Kiss Attila

but i want to use suffix becouse a want to put some text after every error
message!
- Original Message -
From: "Oren Gross" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 3:11 PM
Subject: RE: errors.suffix


> You should use header and footer
>
> -
> Oren Gross Java(TM) Developer
> Mercury Interactive APM TAC R&D
> +972-3-5399407 [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Kiss Attila [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 2:12 PM
> To: Struts Users Mailing List
> Subject: errors.suffix
>
>
> hy all
>
> i trying to use errors.suffix= ... in my properties file and i see that
> struts is not use  that.
> whit errors.header is workink well .
> could someone tell me why?
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: errors.suffix

2002-07-08 Thread Oren Gross

You should use header and footer

-
Oren Gross Java(TM) Developer
Mercury Interactive APM TAC R&D 
+972-3-5399407 [EMAIL PROTECTED]


-Original Message-
From: Kiss Attila [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 2:12 PM
To: Struts Users Mailing List
Subject: errors.suffix


hy all

i trying to use errors.suffix= ... in my properties file and i see that
struts is not use  that.
whit errors.header is workink well .
could someone tell me why?


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




errors.suffix

2002-07-08 Thread Kiss Attila

hy all

i trying to use errors.suffix= ... in my properties file and i see that
struts is not use  that.
whit errors.header is workink well .
could someone tell me why?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: dynamicaly generated forms and ActionForms

2002-07-08 Thread Andrew Hill

Does XDoclet allow for _runtime_ generation of ActionForms based on
information only available at runtime?
>From what I saw it looked rather like a design time utility (?).

Ive noticed quite a few folk looking for a way of doing ActionForms at
runtime (the DynaActionForm is alas still a design time convienience as you
have to configure the fields in xml at design time) and I hope that the
struts developers will strongly consider putting it high up on their
wishlist for 1.2 (I gather the 1.1 featurelist is somewhat closed already?).

I have a feeling I will be needing this myself before too long, but havent
yet had a chance to look at what would be involved.

-Original Message-
From: Manfred Wolff [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 19:27
To: Struts Users Mailing List
Subject: AW: dynamicaly generated forms and ActionForms


Hi.

We use XDoclet to generate our EJB's (CMP). There is also a tag to generate
the struts form. With XDoclet you describe your bean with javadoc
commentarys:

 * @ejb:bean type="CMP"
 *   name="TelekomVerbindung"
 *   view-type="local"
 *   use-soft-locking="true"
 *   cmp-version="2.x"
 * primkey-field="id"
 *
 * @ejb:transaction type="Required"
 *
 * @ejb:interface
 *  local-class="de.neusta.fortuna.ejb.standort.TelekomVerbindungLocal"
 *local-extends="de.neusta.fortuna.ejb.base.FortunaBaseEntLocal"
 *
 * @jboss:table-name "ST_TELEKOMMUNIKATION"
 * @jboss:create-table "${jboss.create.table}"
 * @jboss:remove-table "${jboss.remove.table}"
 * @jboss:tuned-updates "${jboss.tuned.updates}"
 * @jboss:read-only "${jboss.read.only}"
 *
 * @struts:form
 *  name="TelekomVerbindung"
 */

You see the last two rows are the declaration for the struts form. In this
case XDoclet generates a struts form with all bean-attributes. Nice isn't
it.

Greetings
Manfred

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von [EMAIL PROTECTED]
Gesendet: Montag, 8. Juli 2002 09:26
An: Struts Users Mailing List
Betreff: Re: dynamicaly generated forms and ActionForms



Did somebody have a starting point to deal whith this use case?

Gilles Vandaele





   "Craig R.
   McClanahan"  To:Struts Users Mailing List
   <[EMAIL PROTECTED]
<[EMAIL PROTECTED]>
   >cc:
Subject:  Re: dynamicaly
generated forms and ActionForms
   05/07/2002 20:06
Please respond to Struts Users
Mailing List









On Fri, 5 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Fri, 05 Jul 2002 15:39:41 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: dynamicaly generated forms and ActionForms
>
> I need to dynamicaly generate a jsp form and retrieve values in a bean.
The
> elements of the form must be generated based on a glossary (xml shema)
and
> on values retrieved from a database (labels, layout, default value,
> javascript validation, ActionForm validation,...).
>
> Is DynaActionForm the right solution, how can I use it, can I find an
> example?
> Is it a good way to give the same mane to all the elements and use a
> property (same mame) of type Array to get the values automatically.
>

The standard implementation of DynaActionForm is not going to help you
deal with this use case.  It still expects the set of properties for a
particular form bean to be declared in the struts-config.xml file at
application startup time.

Supporting this more general notion of dynamic forms would be a very
popular enhancement.  However, it's a little late to try to get this into
a 1.1 final release, so standard support will have to wait for some future
version.

>
>  There must be someone already gone through.
>
>
>
>
> Gilles Vandaele
>

Craig



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






--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: dynamicaly generated forms and ActionForms

2002-07-08 Thread Manfred Wolff

Hi.

We use XDoclet to generate our EJB's (CMP). There is also a tag to generate
the struts form. With XDoclet you describe your bean with javadoc
commentarys:

 * @ejb:bean type="CMP"
 *   name="TelekomVerbindung"
 *   view-type="local"
 *   use-soft-locking="true"
 *   cmp-version="2.x"
 * primkey-field="id"
 *
 * @ejb:transaction type="Required"
 *
 * @ejb:interface
 *  local-class="de.neusta.fortuna.ejb.standort.TelekomVerbindungLocal"
 *local-extends="de.neusta.fortuna.ejb.base.FortunaBaseEntLocal"
 *
 * @jboss:table-name "ST_TELEKOMMUNIKATION"
 * @jboss:create-table "${jboss.create.table}"
 * @jboss:remove-table "${jboss.remove.table}"
 * @jboss:tuned-updates "${jboss.tuned.updates}"
 * @jboss:read-only "${jboss.read.only}"
 *
 * @struts:form
 *  name="TelekomVerbindung"
 */

You see the last two rows are the declaration for the struts form. In this
case XDoclet generates a struts form with all bean-attributes. Nice isn't
it.

Greetings
Manfred

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von [EMAIL PROTECTED]
Gesendet: Montag, 8. Juli 2002 09:26
An: Struts Users Mailing List
Betreff: Re: dynamicaly generated forms and ActionForms



Did somebody have a starting point to deal whith this use case?

Gilles Vandaele





   "Craig R.
   McClanahan"  To:Struts Users Mailing List
   <[EMAIL PROTECTED]
<[EMAIL PROTECTED]>
   >cc:
Subject:  Re: dynamicaly
generated forms and ActionForms
   05/07/2002 20:06
Please respond to Struts Users
Mailing List









On Fri, 5 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Fri, 05 Jul 2002 15:39:41 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: dynamicaly generated forms and ActionForms
>
> I need to dynamicaly generate a jsp form and retrieve values in a bean.
The
> elements of the form must be generated based on a glossary (xml shema)
and
> on values retrieved from a database (labels, layout, default value,
> javascript validation, ActionForm validation,...).
>
> Is DynaActionForm the right solution, how can I use it, can I find an
> example?
> Is it a good way to give the same mane to all the elements and use a
> property (same mame) of type Array to get the values automatically.
>

The standard implementation of DynaActionForm is not going to help you
deal with this use case.  It still expects the set of properties for a
particular form bean to be declared in the struts-config.xml file at
application startup time.

Supporting this more general notion of dynamic forms would be a very
popular enhancement.  However, it's a little late to try to get this into
a 1.1 final release, so standard support will have to wait for some future
version.

>
>  There must be someone already gone through.
>
>
>
>
> Gilles Vandaele
>

Craig



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






--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: back office tool (urgent, TIA)

2002-07-08 Thread Adolfo Miguelez


Hi Frank,

thanks for your response. I am actually interested in testing your app. I do 
not if it is a commercial product or a free or open source one, but I am 
interested anyway.

I would appreciate to know how can I have a sample of your application. You 
could send it by email to [EMAIL PROTECTED], or give me pointer or URL 
where I could download it for myself.

I have been working out how to implement it for myself, possibly by using an 
O/R mapping framework (Castor, OJB, Torque, SIMPER...), but I find most of 
well known frameworks, need class generation at development time, so I can 
no implement an generic mechanism. So it would take me longer to implement 
it from scratch.

Many thanks in advance,

Adolfo Rodriguez

>From: "Bacco, F. ing. DTO/SLAS/DMSEISC/RPV" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: back office tool (urgent, TIA)
>Date: Mon, 8 Jul 2002 12:04:39 +0200
>
>Adolfo,
>
>If you are interested we have a struts application that can analyse an
>Oracle 8i database and is able to do any CRUDS operation you want. Even if
>the tables have forreign keys etc., than it works with drop down boxes. You
>can use this application if you want.
>
>Frank Bacco
>
>-Oorspronkelijk bericht-
>Van: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
>Verzonden: dinsdag 2 juli 2002 15:59
>Aan: [EMAIL PROTECTED]
>Onderwerp: back office tool (urgent, TIA)
>
>
>Hi All,
>
>we are planning to incorporate a back office tool for the projects 
>developed
>
>at our company. Our RDBMS is Oracle 8i. It should, at least provide a easy
>handling in CRUD operations, and MAYBE allow data model management (modify
>tables, rows, constraints...).
>
>The primer intend is to evaluate three options:
>
>- some open source or freeware tool, (I do not know any),
>
>- purchasing something, (we know just http://www.objectmatter.com),
>
>- or even developed ourselves based in open source APIS, e.g. based on
>SIMPER, on some Entity EJB project, on Torque?s (from Turbine)... + Struts
>or Velocity  ???
>
>I would appreciate opinions and pointers that could help to take a decision
>or evaluate different projects.
>
>Thanks in advance,
>
>Adolfo
>
>
>
>
>_
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Property exception after upgrading to JDK 1.4

2002-07-08 Thread Erich Meier

Hi all,

after upgrading JDK from 1.3.1 to 1.4.0, the  tag throws an
exception under some strange circumstances:

java.lang.Error: PropertyDescriptor: internal error while merging PDs: type mismatch 
between read and write methods
at java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)
at java.beans.Introspector.processPropertyDescriptors(Introspector.java:610)
at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:533)
at java.beans.Introspector.getBeanInfo(Introspector.java:361)
at java.beans.Introspector.getBeanInfo(Introspector.java:132)
at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:798)
at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:738)
at 
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:955)
at 
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:624)
at 
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:653)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:505)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)

Note: not all bean:write tags show this behaviour, only some of them.

Did anyone else also run into this problem? Has anyone solved it? How?

Thanks in advance,
Erich

-- 
Dr. Erich Meier, Software Process Improvement
method park, Wetterkreuz 19a, 91058 Erlangen, Germany
Tel. +49-9131-97206-316  mailto:[EMAIL PROTECTED]
Fax. +49-9131-97206-200  http://www.methodpark.de/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Stability ??

2002-07-08 Thread Arnaud HERITIER

Hi guys !!

I need to use struts 1.1 b1 or a nightbuild.
I'm actually using struts 1.0.2.

Is struts 1.1 B1 stable or should I use a nightbuild (which one) ??

is someone success the upgrade ???

Thanks for your advices.

  Arnaud HERITIER
  EAI Consulting
  Sopra Group
  Tél. : +33 (0)1 53 33 44 74
  email : [EMAIL PROTECTED]

  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.




Client side validation

2002-07-08 Thread Marian Skalsky

Hi there!

If I wanna use JavaScript client side validation with Struts I follow these:
1) set up my validation.xml
2) set up ApplicationResources for messages
3) extend ValidatorForm 
4) .. and how to enable client side validation (in JSPs?) 
5) .. will the server side validation be performed then too 

Thx a lot. 

$kala.




RE: back office tool (urgent, TIA)

2002-07-08 Thread Bacco, F. ing. DTO/SLAS/DMSEISC/RPV

Adolfo,

If you are interested we have a struts application that can analyse an
Oracle 8i database and is able to do any CRUDS operation you want. Even if
the tables have forreign keys etc., than it works with drop down boxes. You
can use this application if you want.

Frank Bacco

-Oorspronkelijk bericht-
Van: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 2 juli 2002 15:59
Aan: [EMAIL PROTECTED]
Onderwerp: back office tool (urgent, TIA)


Hi All,

we are planning to incorporate a back office tool for the projects developed

at our company. Our RDBMS is Oracle 8i. It should, at least provide a easy 
handling in CRUD operations, and MAYBE allow data model management (modify 
tables, rows, constraints...).

The primer intend is to evaluate three options:

- some open source or freeware tool, (I do not know any),

- purchasing something, (we know just http://www.objectmatter.com),

- or even developed ourselves based in open source APIS, e.g. based on 
SIMPER, on some Entity EJB project, on Torque?s (from Turbine)... + Struts 
or Velocity  ???

I would appreciate opinions and pointers that could help to take a decision 
or evaluate different projects.

Thanks in advance,

Adolfo




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: i18n on html:submit tag

2002-07-08 Thread Lisa van Gelder

Don't worry. Worked it out. :)

You can put the i18n key in the middle of the tag.


That wasn't obvious to me from the user guide!

Lisa



i18n on html:submit tag

2002-07-08 Thread Lisa van Gelder

Hi all

Can anybody tell me how to use i18n with a html:submit tag, so the value of
the input is internationalised?

It should be a simple thing, but I can't find an attribute in the tag
reference that will let me do it. "value" isn't internationalised, and
"titleKey" just gives it a title.

The workaround is to do "> but this is kind of messy.

Am I missing something?

Lisa



Validator Rollback on Error

2002-07-08 Thread Jacob Hookom

Hi All,

I was wondering if anyone found a solid [or any] work around for form
validating and returning back to pages/forms that have specialized
parameters.

Example (/workspace-insert.jsp is the form):
Instead of rolling back to: /workspace-insert.jsp
Rollback to: /workspace-insert.jsp?id=21932EW43

Currently, my forms extend ValidatorForm and are configured
appropriately in the 'validator.xml'.

Is there any way to get struts not to look for the input and instead
return to the logical sender of the request?

Best Regards,
Jake Hookom


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts + EJB ?

2002-07-08 Thread Oren Gross

You right. Sorry about that.
Thank you very much!

-
Oren Gross Java(TM) Developer
Mercury Interactive APM TAC R&D 
+972-3-5399407 [EMAIL PROTECTED]


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 9:54 AM
To: Struts Users Mailing List
Subject: RE: Struts + EJB ?


http://sourceforge.net/projects/xdoclet

(Which took Google all of 0.06 seconds to find...)

-Original Message-
From: Oren Gross [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 16:31
To: 'Struts Users Mailing List'
Subject: RE: Struts + EJB ?


Do you have a link for Xdoclet?
TIA

-
Oren Gross Java(TM) Developer
Mercury Interactive APM TAC R&D
+972-3-5399407 [EMAIL PROTECTED]


-Original Message-
From: Brian Topping [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 6:22 AM
To: Struts Users Mailing List
Subject: RE: Struts + EJB ?


Yah, I am doing it.  It's my first struts application.  It works great!

If you are using Struts and EJB, you should check out Xdoclet.  It generates
EJB interfaces, web.xml, strutsconfigs, struts forms, etc.  It might be too
much of a pain to learn if you are just learning one or the other, but since
you can leverage the investment against both struts and ejb both, it's worth
the investment, IMHO.  There are some cool tricks you can do with taking the
contents out of forms and pushing them into your beans.

have a blast!

-b

> -Original Message-
> From: Boney Sze [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 07, 2002 11:49 PM
> To: Struts Users Mailing List
> Subject: Struts + EJB ?
>
>
> can struts and EJB be used together in an application
> ?
> im kinda new to EJB but i could say i know struts
> already.
>
> can anybody provide any references or ideas about
> this?
> thanks
>
> Boney
>
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts + EJB ?

2002-07-08 Thread Andrew Hill

http://sourceforge.net/projects/xdoclet

(Which took Google all of 0.06 seconds to find...)

-Original Message-
From: Oren Gross [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 16:31
To: 'Struts Users Mailing List'
Subject: RE: Struts + EJB ?


Do you have a link for Xdoclet?
TIA

-
Oren Gross Java(TM) Developer
Mercury Interactive APM TAC R&D
+972-3-5399407 [EMAIL PROTECTED]


-Original Message-
From: Brian Topping [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 6:22 AM
To: Struts Users Mailing List
Subject: RE: Struts + EJB ?


Yah, I am doing it.  It's my first struts application.  It works great!

If you are using Struts and EJB, you should check out Xdoclet.  It generates
EJB interfaces, web.xml, strutsconfigs, struts forms, etc.  It might be too
much of a pain to learn if you are just learning one or the other, but since
you can leverage the investment against both struts and ejb both, it's worth
the investment, IMHO.  There are some cool tricks you can do with taking the
contents out of forms and pushing them into your beans.

have a blast!

-b

> -Original Message-
> From: Boney Sze [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 07, 2002 11:49 PM
> To: Struts Users Mailing List
> Subject: Struts + EJB ?
>
>
> can struts and EJB be used together in an application
> ?
> im kinda new to EJB but i could say i know struts
> already.
>
> can anybody provide any references or ideas about
> this?
> thanks
>
> Boney
>
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts + EJB ?

2002-07-08 Thread Oren Gross

Do you have a link for Xdoclet?
TIA

-
Oren Gross Java(TM) Developer
Mercury Interactive APM TAC R&D 
+972-3-5399407 [EMAIL PROTECTED]


-Original Message-
From: Brian Topping [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 6:22 AM
To: Struts Users Mailing List
Subject: RE: Struts + EJB ?


Yah, I am doing it.  It's my first struts application.  It works great!

If you are using Struts and EJB, you should check out Xdoclet.  It generates
EJB interfaces, web.xml, strutsconfigs, struts forms, etc.  It might be too
much of a pain to learn if you are just learning one or the other, but since
you can leverage the investment against both struts and ejb both, it's worth
the investment, IMHO.  There are some cool tricks you can do with taking the
contents out of forms and pushing them into your beans.

have a blast!

-b

> -Original Message-
> From: Boney Sze [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 07, 2002 11:49 PM
> To: Struts Users Mailing List
> Subject: Struts + EJB ?
> 
> 
> can struts and EJB be used together in an application
> ?
> im kinda new to EJB but i could say i know struts
> already.
> 
> can anybody provide any references or ideas about
> this?
> thanks
> 
> Boney
> 
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: dynamicaly generated forms and ActionForms

2002-07-08 Thread Gilles . Vandaele


Did somebody have a starting point to deal whith this use case?

Gilles Vandaele




   
 
   "Craig R.   
 
   McClanahan"  To:Struts Users Mailing List   
 
   <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
 
   >cc:
 
Subject:  Re: dynamicaly generated forms 
and ActionForms
   05/07/2002 20:06
 
Please respond to Struts Users Mailing 
List 
   
 
   
 
   
 






On Fri, 5 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Fri, 05 Jul 2002 15:39:41 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: dynamicaly generated forms and ActionForms
>
> I need to dynamicaly generate a jsp form and retrieve values in a bean.
The
> elements of the form must be generated based on a glossary (xml shema)
and
> on values retrieved from a database (labels, layout, default value,
> javascript validation, ActionForm validation,...).
>
> Is DynaActionForm the right solution, how can I use it, can I find an
> example?
> Is it a good way to give the same mane to all the elements and use a
> property (same mame) of type Array to get the values automatically.
>

The standard implementation of DynaActionForm is not going to help you
deal with this use case.  It still expects the set of properties for a
particular form bean to be declared in the struts-config.xml file at
application startup time.

Supporting this more general notion of dynamic forms would be a very
popular enhancement.  However, it's a little late to try to get this into
a 1.1 final release, so standard support will have to wait for some future
version.

>
>  There must be someone already gone through.
>
>
>
>
> Gilles Vandaele
>

Craig



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






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >