RE: Tiles and Struts 1.0.2?

2002-07-24 Thread esther . miranda

The Tiles site (http://www.lifl.fr/~dumoulin/tiles/) is the place to go.
The binary download (tiles.zip for ex.) contains the 'tilesForStruts1.0.jar'
you mention and also a 'tiles-blank-struts1-0.war to help you get started.

g
Esther

> -Original Message-
> From: Tim T. Young [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 24 juli 2002 18:04
> To: Struts Users Mailing List
> Subject: Tiles and Struts 1.0.2?
> 
> 
> I am looking for the Tiles version that works with Struts 
> 1.0.2.  Google,
> the Tiles site, etc have not helped.  I have seen mention of 
> a file called
> tilesForStruts1.0.jar but I cannot find anywhere.  (Of course 
> I would love
> to upgrade to the latest of everything Struts/Tiles/etc but 
> VAJ is holding
> me back with clashes with JAXP 1.1.  WSAD is months away for me also.)
> Maybe I am just overlooking the link or something...
> 
> Thanks!
> Tim
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Re: Tiles Obfuscation

2002-07-24 Thread Eddie Bush

... wonder why the mailing list doesn't change it to struts-user though 
...  Oh weird - it did this time.  Maybe it's my mailer (Mozilla) 
screwing up on me.  It wouldn't be the first time.  I love it to death, 
but sometimes it just flakes.  I'm not sure whether I blame it on 
Mozilla or KDE (my desktop environment) though.  KDE kinda makes some 
things spaz occassionally.

Anyway :-) Sorry!  It was obviously an error on my end.

James Mitchell wrote:

>No, actually I do.
>
>I'm using my DSL provider's smtp server, but want people to reply to
>struts-atlanta.
>



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




RE: Tiles Obfuscation

2002-07-24 Thread James Mitchell

No, actually I do.

I'm using my DSL provider's smtp server, but want people to reply to
struts-atlanta.


James "Sasquatch's long lost cousin" Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 12:35 AM
> To: Struts Users List
> Subject: Re: Tiles Obfuscation
>
>
> LOL ... you gotta love this list ;-)
>
> Hey, James - you're somehow getting your reply-to set to
> [EMAIL PROTECTED]  My guess is that you don't intend that
> to happen ...
>
> Regards,
>
> Eddie
>
> James Mitchell wrote:
>
> >>Maybe James would care to "evanglize" me :-) LOL  ... since he's the
> >>resident Software Engineer\Struts Evangelist ;-)
> >>
> >
> >...you are HEALED my son!!!
> >Now go forth into all the nations and spread the news that STRUTS IS HERE
> >BABY!
> >
> >>Thanks!
> >>
> >>Eddie
> >>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Tiles Obfuscation

2002-07-24 Thread Eddie Bush

LOL ... you gotta love this list ;-)

Hey, James - you're somehow getting your reply-to set to 
[EMAIL PROTECTED]  My guess is that you don't intend that 
to happen ...

Regards,

Eddie

James Mitchell wrote:

>>Maybe James would care to "evanglize" me :-) LOL  ... since he's the
>>resident Software Engineer\Struts Evangelist ;-)
>>
>
>...you are HEALED my son!!!
>Now go forth into all the nations and spread the news that STRUTS IS HERE
>BABY!
>
>>Thanks!
>>
>>Eddie
>>



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




Re: [ANNOUNCE] ObjectAssembler 2.0

2002-07-24 Thread Eddie Bush

Hey, I think I screwed the pooch.  I installed the IDE version and then 
uninstalled it (when I realized what a stupid mistake I had done) and 
went to use the same serial # to install the plugin... and it don't like 
it :-/  Am I correct in assuming this has nothing to do with anything 
except my having used the serial number already?

Thanks,

Eddie

Bill Willis wrote:

>Hi Eddie,
>
>The standalone is built on Netbeans (includes Netbeans in the installer) and
>is a *full* development IDE, so it is fairly large. However, it is much
>smaller than most IDEs.
>
>The plugin versions are quite a bit smaller, so use them if you already have
>Netbeans, Sun ONE Studio, or JBuilder installed.
>
>We will be posting more Viewlets for those of you who wish to see
>ObjectAssembler in action before downloading...
>
>Regards,
>Bill
>
>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 24, 2002 11:27 PM
>To: Struts Users Mailing List
>Subject: Re: [ANNOUNCE] ObjectAssembler 2.0
>
>
>Wow - that's quite a large download ...
>
>
>
>--
>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: [ANNOUNCE] ObjectAssembler 2.0

2002-07-24 Thread Bill Willis

Everyone,

We could provide installers in the future that do not include a JRE (used
for the installer only), which would significantly reduce the size of the
installers. We have had occasional problems in the past, though, with the
JRE configurations some people have...

Any thoughts?

Regards,
Bill

-Original Message-
From: Bill Willis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 11:33 PM
To: Struts Users Mailing List
Subject: RE: [ANNOUNCE] ObjectAssembler 2.0


Hi Eddie,

The standalone is built on Netbeans (includes Netbeans in the installer) and
is a *full* development IDE, so it is fairly large. However, it is much
smaller than most IDEs.

The plugin versions are quite a bit smaller, so use them if you already have
Netbeans, Sun ONE Studio, or JBuilder installed.

We will be posting more Viewlets for those of you who wish to see
ObjectAssembler in action before downloading...

Regards,
Bill

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 11:27 PM
To: Struts Users Mailing List
Subject: Re: [ANNOUNCE] ObjectAssembler 2.0


Wow - that's quite a large download ...



--
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: Tiles Obfuscation

2002-07-24 Thread James Mitchell

>
> Maybe James would care to "evanglize" me :-) LOL  ... since he's the
> resident Software Engineer\Struts Evangelist ;-)
>

...you are HEALED my son!!!
Now go forth into all the nations and spread the news that STRUTS IS HERE
BABY!

> Thanks!
>
> Eddie
>


James "The Original Sasquatch" Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta


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




RE: [ANNOUNCE] ObjectAssembler 2.0

2002-07-24 Thread Bill Willis

Hi Eddie,

The standalone is built on Netbeans (includes Netbeans in the installer) and
is a *full* development IDE, so it is fairly large. However, it is much
smaller than most IDEs.

The plugin versions are quite a bit smaller, so use them if you already have
Netbeans, Sun ONE Studio, or JBuilder installed.

We will be posting more Viewlets for those of you who wish to see
ObjectAssembler in action before downloading...

Regards,
Bill

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 11:27 PM
To: Struts Users Mailing List
Subject: Re: [ANNOUNCE] ObjectAssembler 2.0


Wow - that's quite a large download ...



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




common-logger.properties and log4j vs jdk14logger

2002-07-24 Thread Peggy Davidson

I am trying to get some good logging implemented and was trying to use the
jdk14logger since I am on jdk1.4 but can't seem to find enough information
to configure the properties file. I have read the O'Reilly chapter, the
api's etc but still struggling in trying to get the properties and the
jdk14logger configuration set properly.

Are there any examples of the common-logging.properties file for usage with
Jdk14logger available?  Or can anyone point me to a site that can tell me
the correct syntax for the properties to set in the
common-logging.properties file for turning on the debugging, info and trace
using Jdk14logger wrapper?  I know there is some good detailed description
on configuring and setting the properties for log4j but have been unable to
find something similar for the jdk14logger, which is really what I need.
Or, would it be better for me to just use log4j?

Configuration: I am using the nightly build from 7/19 for struts but
installed the latest build for commons-logger from last night.  I am running
Orion 1.5.4 as my app server.

Thanks in advance for the help,

Peggy





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




Re: [ANNOUNCE] ObjectAssembler 2.0

2002-07-24 Thread Eddie Bush

Wow - that's quite a large download ...



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




[ANNOUNCE] ObjectAssembler 2.0

2002-07-24 Thread Bill Willis

Dear Struts Community,

ObjectVenture is pleased to announce the release of ObjectAssembler 2.0, a
visual two-way development environment for J2EE applications - including
native support for Struts 1.1. Thanks to all of you who participated in our
open beta!

The standard edition, which covers web (JSP/Servlets) and Struts
development, is FREE! You may download it here:
http://www.objectventure.com/products/objectassembler.html

The new user manual is available here (4.5 MB). It includes information on
how to get started with the Struts support.
http://www.objectventure.com/files/oa/ObjectAssembler-UserManual.pdf

We also have a new support forum here:
http://support.objectventure.net

=

NEW FEATURES IN v2.0:

Standard Edition:
(*) Complete Struts 1.1 support, including multiple configuration files.
(*) Import existing Struts configuration files and components.
(*) In addition to JBuilder, ObjectAssembler now integrates with Netbeans
and Sun ONE Studio.
(*) New standalone version that is built on Netbeans.
(*) Complete Servlet 2.3 and JSP 1.2 support for visually building
components and WARs.
(*) New component types: Struts PlugIn, Struts DynaActionForm, Servlet
Filter, and Servlet Lifecycle Event.
(*) Drop any TLD in a certain place (see user manual), and ObjectAssembler
will automate and validate the use of its tags in the visual JSP editor.
(*) Create relationships between components.
(*) New User Manual
(*) And more...

Professional Edition:
- All Standard Edition features, plus
(*) Complete EJB 2.0 support for visually building components and EJB JARs.
(*) Complete J2EE 1.3 support for visually building EARs
(*) New component type: Message-driven Bean.
(*) Integrated deployment to Weblogic 7.x and HPAS 8.x. More to come!
(*) And more...

Enterprise Edition:
- All Professional Edition features, plus
(*) New visual pattern development environment based on XML that supports
the open Pattern and Component Markup Language (PCML) effort.
(*) Integrated Sun Java Center pattern catalog.
(*) Import and export pattern catalog archives (CARs).
(*) Real-time HTML documentation of catalogs, patterns, and strategies as
you work via XSLT (ships with default templates that you can change).
(*) Apply pattern strategies to components.
(*) Automated code generation from patterns.
(*) See how your applied pattern strategies are mapped to your components.
(*) Real-time validation of patterns and applied pattern strategies.
(*) And more...

=

Other features of interest:

(*) Visual JSP development
(*) Automated component and assembly (EAR, EJB-JAR, JAR, and WAR) generation
with automated handling of accessory files.
(*) Work with your components visually or via the source code editor after
generation and the two stay in synch. No black boxes here...
(*) Automated placement of all generated components in the appropriate
assemblies (including the default struts configuration).
(*) Import components, including EJBs from a database schema.
(*) Real-time validation of all components and assemblies as you work,
including automated corrective actions where appropriate.
(*) And much more...

=

We hope you will take ObjectAssembler for a spin and let us know what you
think. And please stay tuned for some exciting new features and products we
have on the way.

Best Regards,
The ObjectAssembler Team


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




Re: Tiles Obfuscation

2002-07-24 Thread Eddie Bush

That's what NoOpAction is for, isn't it!Ok ... I'm 
used to a no-op being a no-op.  I suppose it is a no-op, since it 
doens't actually forward anywhere, but, rather, render the content right 
there.  Actually, in either case, there is an operation of some sort 
being performed.  Perhaps this is the DefinitionForward action I spoke 
of earlier.  I bet the "Dispatch" one does just that...

Perhaps someone could enlighten me :-)  Show me where to RTFM perhaps? 
 Maybe James would care to "evanglize" me :-) LOL  ... since he's the 
resident Software Engineer\Struts Evangelist ;-)

Thanks!

Eddie

Eddie Bush wrote:

> Incidentally, if there is a better alternative for a "simple scenario" 
> where you want to forward to a definition, I'd _love_ to hear about 
> it. I'd like to take advantage of this feature.
>
> Thanks Again!
>
> Eddie




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




[ANN] Easy Struts 0.4.2

2002-07-24 Thread emmanuel.boudrant


Easy Struts 0.4.2 is available. It's a bug fix
release, no new features. 

Changes:

- v0.4.2 (2002-07-24)
  - Plugin config and message resources deleted in
previous version is now fixed.
  - Create a new line between attributes if count > 2
in struts-config.xml
  - Add error header/footer in application resources
  - fix html in default template (form.est)

- v0.4.1 (2002-07-17) 
  - Fix dialog box which appear everytime (about
update classpath in Eclipse project) .
  - SWTError throwed on Eclipse Linux GTK Platform
fix.
  - JBuilder Error while copying libs/tlds fixed.
  - Improve Easy Form and Input wizard.
  - In Eclipse plugin, jdom.jar located in lib\
directory.

Some new screenshots available at
http://easystruts.sourceforge.net/screenshots.html

http://easystruts.sourceforge.net
-Emmanuel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: Tiles Obfuscation

2002-07-24 Thread Eddie Bush

Incidentally, if there is a better alternative for a "simple scenario" 
where you want to forward to a definition, I'd _love_ to hear about it. 
 I'd like to take advantage of this feature.

Thanks Again!

Eddie

Eddie Bush wrote:

> Hi.  I have an observation and a suggestion.  I'm sure it wasn't 
> intentional, but the name of the DefinitionDispatcherAction for 
> forwarding to definitions is kind of confusing to me.  I like to have 
> never found it because of it's name.  Is it possible it could be 
> renamed to DefinitionActionForward - or just DefinitionForward?  
> Having "Dispatcher" in it's name implies, to me at least, that this is 
> an action which will take a parameter and do something based on what 
> that parameter is - like the DispatchAction!  Does it embody this 
> behavior too, and I just don't know it?  I'd personally like to see 
> DefinitionDispatcherAction deprecated in favor of a more appropriately 
> named class that does the same exact thing.
>
> Comments?  Did I just waay totally miss something?
>
> How's the self-generating beer endeavor going?  James?  Mark?  ;-) LOL
>
> Thanks!
>
> Eddie
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 




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




Tiles Obfuscation

2002-07-24 Thread Eddie Bush

Hi.  I have an observation and a suggestion.  I'm sure it wasn't 
intentional, but the name of the DefinitionDispatcherAction for 
forwarding to definitions is kind of confusing to me.  I like to have 
never found it because of it's name.  Is it possible it could be renamed 
to DefinitionActionForward - or just DefinitionForward?  Having 
"Dispatcher" in it's name implies, to me at least, that this is an 
action which will take a parameter and do something based on what that 
parameter is - like the DispatchAction!  Does it embody this behavior 
too, and I just don't know it?  I'd personally like to see 
DefinitionDispatcherAction deprecated in favor of a more appropriately 
named class that does the same exact thing.

Comments?  Did I just waay totally miss something?

How's the self-generating beer endeavor going?  James?  Mark?  ;-) LOL

Thanks!

Eddie



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




Re: org.apache.struts.actions.ReloadAction - Where is it in 1.1

2002-07-24 Thread Craig R. McClanahan



On Wed, 24 Jul 2002, Rajesh Kalluri wrote:

> Date: Wed, 24 Jul 2002 16:15:57 -0400
> From: Rajesh Kalluri <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: org.apache.struts.actions.ReloadAction - Where is it in 1.1
>
> Does any body know what happened to reload action in struts 1.1 or where i
> can find it.
>
> org.apache.struts.actions.ReloadAction.
>

It's not possible for a web application to completely reload everything
you would need (for example, new or updated Action classes), so it's been
abandoned.  Use the application reload facilities of your container
instead (such as reload="true" on Tomcat).

> Regards
> Rajesh

Craig


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




RE: Migration from 1.0.2 to 1.1

2002-07-24 Thread Martin Cooper

Let's assume you're starting from the AuthenticatedAction class I suggested.
Then you would have something like this:

public class DoSomethingUsefulAction
extends AuthenticatedAction {

protected ActionForward executeAuthenticated(...) {
// The code you would otherwise have put in
// execute() or perform() goes here.
}
}

There's no need to call any 'super' methods - the base class methods get
control before your executeAuthenticated does (because AuthenticatedAction
implements execute()), and they call you.

In your struts-config.xml file, you would refer only to
DoSomethingUsefulAction. The AuthenticatedAction would be referenced only in
your actions which extend it.

If you're into design patterns, this is just a simple example of Template
Method (as is Action itself).

--
Martin Cooper


> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 6:41 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Migration from 1.0.2 to 1.1
> 
> 
> Martin,
> 
> Sorry to bother you directly like this, but I've been trying 
> to subclass
> Action similar to the manner you have outlined below.  I've created my
> abstract 'super' class that extends Action, coded my common 
> routines, etc.
> It does not appear that my 'super' class gets called when my 
> sub-classed
> action is invoked.  I assume that the struts-config would 
> still point to the
> sub-classed action, and the first thing the sub-classed 
> action should do is
> a 'super();' type of call.  Is this right?  Or am I totally missing
> something?
> 
> Thanks for your help!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 
> > -Original Message-
> > From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 10, 2002 5:41 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Migration from 1.0.2 to 1.1
> > 
> > 
> > The first time I did that, I did it the same way you did. 
> > However, what I do
> > now is use a base class for all my actions that does the 
> > authentication
> > check before calling my perform/execute-equivalent method to 
> > do the real
> > work. It looks something like this:
> > 
> > public abstract class AuthenticatedAction extends Action {
> > public ActionForward execute(...) {
> > if (!authenticated(...)) {
> > return mapping.findForward("authError");
> > }
> > return executeAuthenticated(...);
> > }
> > protected abstract ActionForward executeAuthenticated(...);
> > protected boolean authenticated(...) {
> > // Do whatever kind of auth check you need here
> > }
> > }
> > 
> > I've left out the details of parameters, exceptions, etc., 
> > but hopefully you
> > get the idea. Now my worker actions extend 
> > AuthenticatedAction and implement
> > executeAuthenticated().
> > 
> > Changing over from the old code to the new was very simple, 
> because it
> > involved only changing the base class of my worker actions 
> > and the name of
> > the method they implement. Also, if you ever need actions 
> > that don't care
> > about authentication, you can simply have them extend Action 
> > instead of
> > AuthenticatedAction. (That's much harder to do using the 
> > scheme you are
> > using, and I was using before.)
> > 
> > --
> > Martin Cooper
> > 
> > 
> > > -Original Message-
> > > From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 10, 2002 2:55 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Migration from 1.0.2 to 1.1
> > > 
> > > 
> > > Subject: Re: Migration from 1.0.2 to 1.1
> > > From: "Heritier Arnaud" <[EMAIL PROTECTED]>
> > >  ===
> > > Thx for your help Martin.
> > > 
> > > In struts 1.0.2 I subclassed the ActionServlet to define a 
> > > processPreprocess
> > > method which verify the user authentification.
> > > I needed to use the processPath to determine if the user 
> > don't do the
> > > authentification action (it's normal that he is not yet 
> > > authenticated) and
> > > the processActionForward to transfert the user to the login 
> > > page if he is
> > > not connected.
> > > 
> > > Any idea ??
> > > 
> > > 
> > > 
> > > "Martin Cooper" <[EMAIL PROTECTED]> a écrit dans 
> > > le message de
> > > news: [EMAIL PROTECTED]
> > > > Depending on why you were subclassing ActionServlet in 
> > > Struts 1.0.2, you
> > > may
> > > > find that you don't need to do so in Struts 1.1. Or, you 
> > > can subclass
> > > > RequestProcessor instead, or use a PlugIn to do what you need.
> > > >
> > > > If you can tell us more about why you needed to subclass in 
> > > 1.0.2, we
> > > should
> > > > be able to help you find the right solution for Struts 1.1.
> > > >
> > > > --
> > > > Martin Cooper
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, July 10, 2002 5:27 AM
> > > > > To: Struts Users Mailing List (E-mail)
> > > > > 

RE: Iterate - set String value in ArrayList

2002-07-24 Thread Martin Cooper



> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 3:15 PM
> To: Struts Users Mailing List
> Subject: RE: Iterate - set String value in ArrayList
> 
> 
> > -Original Message-
> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 24, 2002 5:58 PM
> > To: Struts Users Mailing List
> > Subject: RE: Iterate - set String value in ArrayList
> > 
> > 
> > >-Original Message-
> > >From: Stan Baranek [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, July 24, 2002 2:17 PM
> > >To: Struts Users Mailing List
> > >Subject: Iterate - set String value in ArrayList
> > 
> > >I have a newby question - nobody's answered my previous 
> questions so I 
> > >feel like the invisible man on this list but here goes anyways 
> > >(maybe I can guilt somebody into helping me)
> > 
> > No, that's just the way the list seems to work. Every list is 
> > different and this one seems to have a higher expectation of the 
> > posters than others. We like to see blood on your forehead from 
> > pounding your head against the wall before we will consider 
> > answering your questions! ;-) It also helps if you have Rhino 
> > skin, the patience of a saint, a sense of humour and many pairs 
> > of flame retardent underwear.
> 
> I've used up a few of those myself.  After all I'm "rude 
> and ignorant" 
> according to one person in this world.  
> 
> What are the odds that I care?h.
> 
> 
> > 
> > Oh, and it helps if we get the impression that you have indeed 
> > taken time to Read The Fine Manual, read Chuck's preview chapters 
> > on theserverside.com, read Ted's words of wisdom on husted.com 
> > and promise not to annoy Mark. Easy!
> 
> Very Truein fact you should consider yourself LUCKY that 
> Mark has not 
> responded...yet ;)
> 
> > 
> > Now ... did you have a question? :-)
> > 
> > Simon
> > 
> 
> 
> "Je suis celui dans le grand costume velu. "

Man, you're really into this Sasquatch thing! But you've given the game away
with that little quote... It was you all the time, wasn't it? Great suit,
though. ;-)

> James "Sasquatch" Mitchell

--
Martin Cooper

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

For additional commands, e-mail:




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




RE: Iterate - set String value in ArrayList

2002-07-24 Thread Chappell, Simon P


>I've used up a few of those myself.  After all I'm "rude 
>and ignorant" 
>according to one person in this world.  

Only one? I'm sure that you underestimate your powers! But we love you anyway. :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

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




RE: Iterate - set String value in ArrayList

2002-07-24 Thread James Mitchell

> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 5:58 PM
> To: Struts Users Mailing List
> Subject: RE: Iterate - set String value in ArrayList
> 
> 
> >-Original Message-
> >From: Stan Baranek [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, July 24, 2002 2:17 PM
> >To: Struts Users Mailing List
> >Subject: Iterate - set String value in ArrayList
> 
> >I have a newby question - nobody's answered my previous questions so I 
> >feel like the invisible man on this list but here goes anyways 
> >(maybe I can guilt somebody into helping me)
> 
> No, that's just the way the list seems to work. Every list is 
> different and this one seems to have a higher expectation of the 
> posters than others. We like to see blood on your forehead from 
> pounding your head against the wall before we will consider 
> answering your questions! ;-) It also helps if you have Rhino 
> skin, the patience of a saint, a sense of humour and many pairs 
> of flame retardent underwear.

I've used up a few of those myself.  After all I'm "rude and ignorant" 
according to one person in this world.  

What are the odds that I care?h.


> 
> Oh, and it helps if we get the impression that you have indeed 
> taken time to Read The Fine Manual, read Chuck's preview chapters 
> on theserverside.com, read Ted's words of wisdom on husted.com 
> and promise not to annoy Mark. Easy!

Very Truein fact you should consider yourself LUCKY that Mark has not 
responded...yet ;)

> 
> Now ... did you have a question? :-)
> 
> Simon
> 


"Je suis celui dans le grand costume velu. "

James "Sasquatch" Mitchell



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




RE: Iterate - set String value in ArrayList

2002-07-24 Thread Chappell, Simon P

>-Original Message-
>From: Stan Baranek [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 24, 2002 2:17 PM
>To: Struts Users Mailing List
>Subject: Iterate - set String value in ArrayList

>I have a newby question - nobody's answered my previous questions so I 
>feel like the invisible man on this list but here goes anyways 
>(maybe I can guilt somebody into helping me)

No, that's just the way the list seems to work. Every list is different and this one 
seems to have a higher expectation of the posters than others. We like to see blood on 
your forehead from pounding your head against the wall before we will consider 
answering your questions! ;-) It also helps if you have Rhino skin, the patience of a 
saint, a sense of humour and many pairs of flame retardent underwear.

Oh, and it helps if we get the impression that you have indeed taken time to Read The 
Fine Manual, read Chuck's preview chapters on theserverside.com, read Ted's words of 
wisdom on husted.com and promise not to annoy Mark. Easy!

Now ... did you have a question? :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

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




RE: PING

2002-07-24 Thread James Mitchell

We weren't ignoring you dude.

Just been too busy to read a two page post.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Stan Baranek [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 5:30 PM
> To: Struts Users Mailing List
> Subject: PING
> 
> 
> ping.  I'm invisible - ha ha ha.  You can't see me - ha ha ha.
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Layout facilities

2002-07-24 Thread Elderclei R Reami

I  liked the  project very much, but it's still in it's 
childhood. Of course, the table presenter taglib is very impressive, but I 
would like something more similar to the inspector which it's not ready yet.

Any other bets?

Regards,
Elder

On Wed, 24 Jul 2002 16:40:04 -0400, "Developer" <[EMAIL PROTECTED]> 
escreveu :

> De: "Developer" <[EMAIL PROTECTED]>
> Data: Wed, 24 Jul 2002 16:40:04 -0400
> Para: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Assunto: Re: Layout facilities
> 
> I'm using Struts Layout and it's pretty cool.  You have to be using tables
> for you layout as opposed to just using CSS.  I'm using a combination of 
the
> two.  It's not too flexible as far as the way you layout objects but what 
it
> allows you is pretty clean.
> 
> There is also http://edhill.its.uiowa.edu/display-0.8/ which looks very
> nice.  Had I known of it before Struts Layout, I probably would have 
chosen
> it.  But then again I'm happy enough for now.
> 
> I thank the Struts Layout author(s) for contributing their time and 
skills.
> 
> Good luck.
> 
> 
> - Original Message -
> From: "Elderclei R Reami" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 24, 2002 2:59 PM
> Subject: Layout facilities
> 
> 
> > Hi,
> >
> > I am still evaluating tools to work with. Currently, my selections are
> > Eclipse, Sysdeo Tomcat, EasyStruts, OJB, Tomcat+Struts.
> >
> > Im terms of layout facilities, has anybody used "Struts Layout"?
> >
> > Regards,
> > Elder
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 
> 

Elderclei R Reami
Vertis Tecnologia
+55 11 3887-0835
www.vertisnet.com.br


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




org.apache.struts.actions.ReloadAction - Where is it in 1.1

2002-07-24 Thread Rajesh Kalluri

Does any body know what happened to reload action in struts 1.1 or where i
can find it.

org.apache.struts.actions.ReloadAction.

Regards
Rajesh


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




PING

2002-07-24 Thread Stan Baranek

ping.  I'm invisible - ha ha ha.  You can't see me - ha ha ha.


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




RE: File upload: no multipart request data sent

2002-07-24 Thread Rene Eigenheer

try redirect="true" in your forward

> -Original Message-
> From: Pete Serafin [mailto:[EMAIL PROTECTED]]
> Sent: Mittwoch, 24. Juli 2002 22:28
> To: Struts Users Mailing List
> Subject: Re: File upload: no multipart request data sent
> 
> 
> Does anyone have ANY ideas on this issue???  Im really in a 
> bind here and could
> use any advice from anyone implementing the FileTag. Thanks again.
> 
> 
> Pete Serafin
> 
> Pete Serafin wrote:
> 
> > I have a jsp used to do a simple file upload.  I am retrieving and
> > processing the file without any problems.  However, when I try to
> > forward to the same action ( or another action ) after the 
> processing
> > is done, I get the following error:
> >
> > javax.servlet.ServletException: MultipartIterator: no 
> multipart request
> > data sent at org.apache.struts.upload.MultipartIterator.parseRequest
> > (MultipartIterator.java:342)
> >
> > When I forward to a JSP, I dont get this error.  I am not doing any
> > validation on this form, but I cant seem locate where the error is
> > occuring.  My form does have the following header:
> >
> >  enctype="multipart/form-data">
> >
> > The error appears to be happing after the action forward, but before
> > the perform method of the ensuing action.  Any advise is greatly
> > appreciated as I am completely stuck
> >
> > Pete Serafin
> >
> > --
> > 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: File upload: no multipart request data sent

2002-07-24 Thread Martin Cooper

I assume you're using Struts 1.0.2 or earlier - you didn't say. I believe
what you are seeing is a bug which is fixed in Struts 1.1-b1.

--
Martin Cooper


> -Original Message-
> From: Pete Serafin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 7:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: File upload: no multipart request data sent
> 
> 
> I have a jsp used to do a simple file upload.  I am retrieving and
> processing the file without any problems.  However, when I try to
> forward to the same action ( or another action ) after the processing
> is done, I get the following error:
> 
> javax.servlet.ServletException: MultipartIterator: no 
> multipart request
> data sent at org.apache.struts.upload.MultipartIterator.parseRequest
> (MultipartIterator.java:342)
> 
> When I forward to a JSP, I dont get this error.  I am not doing any
> validation on this form, but I cant seem locate where the error is
> occuring.  My form does have the following header:
> 
> 
> 
> The error appears to be happing after the action forward, but before
> the perform method of the ensuing action.  Any advise is greatly
> appreciated as I am completely stuck
> 
> 
> Pete Serafin
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




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




How does struts compare with tapestry

2002-07-24 Thread @Basebeans.com

Subject: How does struts compare with tapestry
From: "alt.cybercafes" <[EMAIL PROTECTED]>
 ===
Trying to make up my mind on a framework and i run across struts and
tapestry. Which is the better framework and what are pros and cons of both
framework

thanks



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




Re: Layout facilities

2002-07-24 Thread Developer

I'm using Struts Layout and it's pretty cool.  You have to be using tables
for you layout as opposed to just using CSS.  I'm using a combination of the
two.  It's not too flexible as far as the way you layout objects but what it
allows you is pretty clean.

There is also http://edhill.its.uiowa.edu/display-0.8/ which looks very
nice.  Had I known of it before Struts Layout, I probably would have chosen
it.  But then again I'm happy enough for now.

I thank the Struts Layout author(s) for contributing their time and skills.

Good luck.


- Original Message -
From: "Elderclei R Reami" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 2:59 PM
Subject: Layout facilities


> Hi,
>
> I am still evaluating tools to work with. Currently, my selections are
> Eclipse, Sysdeo Tomcat, EasyStruts, OJB, Tomcat+Struts.
>
> Im terms of layout facilities, has anybody used "Struts Layout"?
>
> Regards,
> Elder
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>


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




Re: Populating a Form with values

2002-07-24 Thread Sid Stuart

Hi all,

I also initially wrote two action classes for each JSP page, one to 
intialize it and the other to process the form. This got a bit messy, so 
I wrote template that looks at the HTTP method and calls an 
initialization method if it is a "GET" or calls a form processing method 
if it is "POST". A class extending the template can be used both to 
initialize the form needed by a JSP page as well as process the form. An 
excerpt of the code is below.

Sid

public abstract class ActionTemplate extends Action {

private final String GET = "GET";
private final String POST = "POST";

//- 
Public Methods
/**
 * Override the Action method's perform method. This looks at the 
HTTP method used to initiate the
 * transaction and calls one of two abstract methods, depending on 
whether a get or post
 * was sent.
 *
 * @return An ActionForward object.
 */
public ActionForward perform(ActionMapping mapping, ActionForm form,
 HttpServletRequest request, 
HttpServletResponse response)   {
log.info ("Entering perform:");
// The result is returned at the end.
ActionForward result = null;

// Get the session
final HttpSession session = request.getSession ();

// At this point, the perform method calls one of two abstract 
methods.
// One does initialization and displays the JSP page. The other 
processes
// a form submitted by the JSP page. Which method to call is 
decided by whether the
// action was initiated by a get or a post.
//
final String method = request.getMethod ();
// Initialize a JSP page.
if (method.compareToIgnoreCase(GET) == 0 ) {
result = initializeJSP (mapping, form, request, response, 
session);
}
// Process a form.
else if (method.compareToIgnoreCase(POST) == 0) {
result = processForm (mapping, form, request, response, 
session);
}
else {
log.error("Unknown method received by Action: " + method);
}
log.info ("Leaving perform");
return result;
  }



//--- 
Abstract Methods
/**
 * The initializeJSP method is called before the JSP page is 
displayed. It should
 * initialize any objects needed by the page.
 * @return An ActionForward object
 */
protected abstract ActionForward initializeJSP (ActionMapping 
mapping, ActionForm form,
 HttpServletRequest request, HttpServletResponse response, 
HttpSession session);

/**
 * The processForm method is called when the form is submitted from 
the JSP page. It should contain
 * the code needed to process the form.
 * @return An ActionForward object
 */
 protected abstract ActionForward processForm (ActionMapping 
mapping, ActionForm form,
  HttpServletRequest request,  HttpServletResponse response, 
HttpSession session);
}


Keith Bacon wrote:

>Most people say best practice is to always start your jsp from the struts action. 
>(always use the
>/myAction.do not /myAction.jsp).
>
>I think you need to do a lot of studying & messing around to get the hang of struts, 
>it's not
>totally simple - but web apps never were.
>Try http://husted.com/struts/resources.htm
>
>Keith.
>  
>




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




Re: Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-24 Thread hemant

Arron,

Upon reading your reply, i modified my MonkeyBean and BananaBean  to have a
wrapped BananaBean List and  wrapped SeedBean List respectively.

I fire up the page and submit, and check for the changes in the BananaBean
List in MonkeyBean  but the change in seed information does not seem to be
updated in the banana list upon submit.

Any bonehead thing that I might have done?

"> So when the request comes in, it will make the monkey object for the
> form. It'll then ask for the banana at the index. When the banana's made
> it will make the lazy wrapped list of seeds. so when an update for a
> seed comes in, then it will make the seed object for the banana.
"

So is it possible that the new Banana and new Seed are not being created at
all? and as a result the seed/banana data is not being set?


Regards
hemant




- Original Message -
From: "Arron Bates" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 10:46 AM
Subject: Re: Wrapping Collections in LazyList to auto-populate form on
Submit


> The seed beans would be child beans to the banana beans. You'd ask the
> monkey bean for the collection of bananas, and once you have a banana,
> you'd ask the banana for the list of it's seeds. So, the list becomes a
> member of the banana. Looking a little like this...
>
>
> public class BananaBean {
>   public String getFlavour() { return flav; }
>   public void setFlavour(String str) { flav = str; }
>
>   public List getSeeds() { return seedList; }
>
>   private List seedList = LazyCollections.lazyList(new ArrayList(),
>SeedBean.class);
>   private String flav;
> }
>
>
>
> Nested beans are all about composition. Each nesting level will be
> composed of that beneath it. Monkey's don't manage seeds, they manage
> bananas. Seed management is up to the Banana. If there's another level,
> then the seed bean will take care of that. The Monkey examples of my
> site are an example of all this. What may be confusing is that they
> build objects and at times their children for sake of convenience. But
> the member collections themselves are always attached to the object
> they're concerned with.
>
> So when the request comes in, it will make the monkey object for the
> form. It'll then ask for the banana at the index. When the banana's made
> it will make the lazy wrapped list of seeds. so when an update for a
> seed comes in, then it will make the seed object for the banana.
>
> Once you have one level going, the rest are just as easy. From one to a
> hundred list levels, it's all the same. Other things come to light
> too... you don't have to always have the model start with monkey. Say
> another form which is banana specific, you can use the same banana
> object in another model, and it'll work just as well. Gotta love OOP :)
>
>
> Arron.
>
>
> On Wed, 2002-07-24 at 23:43, hemant wrote:
> > Arron,
> >
> > Thanks for responding.
> >
> > Things seem to be clearer now. I have a question to ask though.
> >
> > We all know Bananas have seeds. (So a BananaBean can have a collection
of
> > seeds.)
> >
> > Now I have a situation where I have to set the property of the seed bean
via
> > the JSP on submit.
> >
> > Lets have a seed bean
> >
> > public class SeedBean {
> >public String getColor() { return color; }
> >public void setColor(String str) { color= str; }
> >private String color;
> >  }
> >
> > Now in the MonkeyBean (Which is the formbean ) can I say the following?
> >
> > public class MonkeyBean {
> >public List getBananas() { return bananas; }
> >   private List bananas = LazyCollections.lazyList(new
> > ArrayList(LazyCollections.lazyList(new ArrayList(),  SeedBean.class)),
> > BananaBean.class);
> >  }
> >
> >
> > I tried doing the same but it didnt work :(
> >
> > Thanks for your time
> > hemant
> >
> >
> >
> >
> > - Original Message -
> > From: "Arron Bates" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 23, 2002 10:19 AM
> > Subject: Re: Wrapping Collections in LazyList to auto-populate form on
> > Submit
> >
> >
> > > Hemant,
> > >
> > > Sorry about the issues you're having, but at face value it seems that
> > > you're almost trying too hard. Without seeing the rest of your code,
> > > it's hard to see what your generateWrappedCollection() method is
trying
> > > to acheive, so I'll try to answer with code...
> > >
> > >
> > > With the collection wrapping, it's a simple one liner in the bean. For
> > > example, in all my monkey examples, they all return the collection as
> > > the indexed property type (because it's a valid indexed getter and the
> > > iterate tags can use the collection to get their thing going). All you
> > > need to do is wrap that collection directly.
> > >
> > >
> > > For example, two complete beans...
> > >
> > > public class MonkeyBean {
> > >   public List getBananas() { return bananas; }
> > >   priv

Re: File upload: no multipart request data sent

2002-07-24 Thread Pete Serafin

Does anyone have ANY ideas on this issue???  Im really in a bind here and could
use any advice from anyone implementing the FileTag. Thanks again.


Pete Serafin

Pete Serafin wrote:

> I have a jsp used to do a simple file upload.  I am retrieving and
> processing the file without any problems.  However, when I try to
> forward to the same action ( or another action ) after the processing
> is done, I get the following error:
>
> javax.servlet.ServletException: MultipartIterator: no multipart request
> data sent at org.apache.struts.upload.MultipartIterator.parseRequest
> (MultipartIterator.java:342)
>
> When I forward to a JSP, I dont get this error.  I am not doing any
> validation on this form, but I cant seem locate where the error is
> occuring.  My form does have the following header:
>
> 
>
> The error appears to be happing after the action forward, but before
> the perform method of the ensuing action.  Any advise is greatly
> appreciated as I am completely stuck
>
> Pete Serafin
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: struts book

2002-07-24 Thread Peter A. J. Pilgrim

Galbreath, Mark wrote:
 > Your nomenclature is counter-intuitive.
 >
 > Mark
 >

So this explanation should make it a little clearer what I was saying.




In Java primitive cannot be passed by reference so six months ago
in a possibly now defunct project I wrote a Java ``Union'' class.

class RefValUnion {

  String stringVal;
  int  intVal;
  float floatVal;
  double doubleVal;
  Date dateVal;
  BigDecimal  decimalVal;
  ...

}


In this project I used a master or superclass base action form
to add validation and other extended functionality
For instance I created all the utility date validation
and financial input validation routines in this class


class SuperActionForm extends ActionForm {
 boolean validateDate( String  input, RefValUnion refval  )
 {
...
 }

 boolean validateBigDecimal( String  input, RefValUnion refval  )
 {
...
 }


}



I created ActionForms for the project that extended the master
like this one below. In the validate method I used the
validate method in the super class to check the user input.
All the validate methods return boolean value true or false.
If the result is false then the validation failed
otherwise the validation is successful.
Almost all of the validate methods perform some conversion,
the result is saved inside the reference value union
`RefValUnion' this can be used by programmer.


class CalcTaxActionForm extends SuperActionForm {

 String amountText;
 BigDecimal amount;

 public String getAmountAsText( ) {}
 public void setAmountAsText( String ) {}

 public BigDecimal getAmount() {}
 public void setAmount( BigDecimal ) {}


 ...


 public ActionErrors validate(
HttpServletRequest request, ActionMapping mapping )
 {
ActionErrors errors = new ActionErrors();

// Check user ``tax'' input. I create a reference value
// union

RefValUnion refVal = new RefValUnion();
if ( validateBigDecimal( amountText, refVal )) {
// Conversion worked. The validate method
// saved the conversion result in the union
// so I can use it.
amount = refVal.decimalVal;
}
else {
// Otherwise conversion failed. As normal add a new
// error method to the collection and continue
errors.add( new ActionError( ... ));
}

// More validation here.

return errors;
 }

}


I think too fast for my typing hands sometimes.


The fact is that David Winterfeld's ``Validator'' could have perhaps
saved me from the developing the validate methods in the
super class several months ago. Damn! That is why pick on it
as soon as I saw the chapter 11 uploaded into the
TheServerSide.com. It looks very useful and since the ``Validator''
can validate any JavaBean, then it gave me the idea to use it
against an Enterprise JavaBean or if it can work with mapped
property types then inside the Expresso Framework against a DBObject.

Cool! I hope understood better

-- 
Peter Pilgrim  +-\ +-+++++
Java Technologist  | | | ||||| 'n' Shine
|  O  | | ||  --+| ---+
  /\| ._  / | | \  \ ||
 /  \   | | \ \ | |+--  || ---+ A new day
/_  _\  "Up"| | | | | ||||| is coming
  ||+-+ +-+ +-+++++
http://www.xenonsoft.demon.co.uk/"; />



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




Struts Templates 1.0.2

2002-07-24 Thread bryan hansen

We are designing a small site using Struts 1.0.2
templates. Everything is working great until we try to
call a page from a template that uses a template
inside that page. For example, we have an index.jsp
page that uses a template for its layout (sideNav,
topNav, content, etc...). One of the pages it calls
(content.jsp) uses a template for its layout too. This
type of nesting throws a Servlet Exception complaining
about the doEndTag(Insert.java).

Any ideas why this doesn't work? It seems plausable to
me.

TIA,

Bryan

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Iterate problem: set ArrayList String value

2002-07-24 Thread Stan Baranek

Hi all,

I have a newby question - nobody's answered my previous questions so I 
feel like the invisible man on this list but here goes anyways 
(maybe I can guilt somebody into helping me)

Using Struts 1.0/tiles I need to be able to iterate through a list of 
dynamic mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Iterate - set String value in ArrayList

2002-07-24 Thread Stan Baranek

Hi all,

I have a newby question - nobody's answered my previous questions so I 
feel like the invisible man on this list but here goes anyways 
(maybe I can guilt somebody into helping me)

Using Struts 1.0/tiles I need to be able to iterate through a list of 
dynamic 


Re: problem with HttpSession in Resin-2.1.2

2002-07-24 Thread Jonathan Fuerth

On Wed, Jul 24, 2002 at 04:08:33PM +0100, David Mulligan wrote:
> Now I'm really confused!!!

Oops, sorry. :)

> I'm using Velocity for the presentation, so no JSPs or tags. 
> I'm guessing the LOCALE attribute is coming from the web 
> browser! I also tried setting the session-timeout to 30 
> minutes in web.xml and that didn't work either.

No, the session is stored only on the server side.  The web browser
has no direct control over what's actually in the session.. it just
remembers a "session key" which helps the server figure out which
session object to use for the current request.  Your browser can make
the whole session seem to go away (by refusing to remember the session
key) but it can't add or remove items that are stored inside a
particular session.

> But this is where things get really strange! 
> 
> I started up K-Meleon (Mozilla browser) to check and see if 
> MS-IE was sending my location in the request (Hence the 
> LOCALE attribute) and everything worked just fine! 
> 
> Not one problem! I can login/logout etc. UserBean is getting 
> saved in the Session. Everything works as expected!
> 
> Back to IE and it still doesn't work. IE is setup to check 
> for newer page version with each request. So it's not a 
> problem with the cache. 

Maybe we've both overlooked the obvious: Is it at all possible that
you've got cookies turned off in your MSIE privacy options?  That's
what it sounds like at this point.

-- 
Jonathan Fuerth - SQL Power Group Inc.
(416)218-5551 (Toronto); 1-866-SQL-POWR (Toll-Free)
Unleash the Power of your Corporate Data - http://www.sqlpower.ca/

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




Layout facilities

2002-07-24 Thread Elderclei R Reami

Hi,

I am still evaluating tools to work with. Currently, my selections are 
Eclipse, Sysdeo Tomcat, EasyStruts, OJB, Tomcat+Struts. 

Im terms of layout facilities, has anybody used "Struts Layout"?

Regards,
Elder

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




forward/redirect problem

2002-07-24 Thread @Basebeans.com

Subject: forward/redirect problem
From: "deco" <[mail][EMAIL PROTECTED]>
 ===
I have an action (ViewAction) where i list records considering some given
value in the querystring (ViewAction?mycode=2)

For each record i give the ability to remove it, calling RemoveAction with
the record code (RemoveAction?recordCode=1)

I would like to have RemoveAction forwarding to ViewAction, so that i can
immediately give the new list or display errors before the list if
necessary... The thing is, if i forward "Success" to ViewAction i will still
be getting RemoveAction?recordCode=1 in the browsers url... I would probably
want to redirect, but the only way i thought of being able to do this was to
have some jsp page accepting an url in the QueryString and immediately
redirecting to it...

The problem comes because if i just redirect from my RemoveAction, i can't
put the values i want in the queryString and the listing on ViewAction won't
work!!

Is this a good way?? Something better please??

Thanks in advance
Ricardo Rocha



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




Re: Container Managed Authentication - Form based login

2002-07-24 Thread David M. Karr

> "Rajesh" == Rajesh Kalluri <[EMAIL PROTECTED]> writes:

Rajesh> Hi All,
Rajesh> I have set up container managed authentication with tomcat with form based
Rajesh> login.

Rajesh> 
Rajesh> FORM
Rajesh> 
Rajesh> 
/LoginForm.html
Rajesh> 
/LoginError.html
Rajesh> 
Rajesh> 

Rajesh> -The entry point to my app is LoginForm.html.

Rajesh> I let Tomcat take care of authenticating the users password and his role.

Rajesh> I want to store the user profile including his email and some other
Rajesh> information from the database into session scope based on <%=
Rajesh> request.getRemoteUser() %>.

Rajesh> At what stage is it recomended to do this in a struts application using
Rajesh> contianer managed authentication.

I'm not certain what you mean by "stage", but by the way you phrase this, I
think you might misunderstand a little bit about how CMA works.

By specifying a "login-config" element and a "security-constraint" element, you
ensure that the URL patterns specified in the security-constraint will be
"protected" by CMA.  You don't "call" the login process at any point, and you
certainly don't make your login page the "entry point" of your application.

In addition, if you implement a proper JAAS configuration file, you specify how
the container obtains authentication information to compare against what the
user provided.  You can also use the Tomcat-specific "realm" concept, but this
isn't portable to other application servers.

(And by the way, don't make the silly mistake of specifying a "url-pattern" in
your "web-resource-collection" that is matched by the path to your login or
error page.  You'll get a glorious infinite loop, or an exception, if the app
server is smart enough.)

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




RE: official or non official DTDs

2002-07-24 Thread Jerry Jalenak

The latest nightly builds have DTD's in them, but I'm sure if they are being
used yet

-Original Message-
From: Oren Gross [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 12:52 PM
To: Struts User (E-mail)
Subject: official or non official DTDs


Where can I find a DTD for the two Validator configuration files?
Please reply directly to me.
thank
__
Oren Gross, Software Developer
Mercury Interactive, APM - R&D
+972-3-5399407, [EMAIL PROTECTED]  

 


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.




logo.gif
Description: GIF image

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


Re: Container Managed Authentication - Form based login

2002-07-24 Thread @Basebeans.com

Subject: Re: Container Managed Authentication - Form based login
From: "David Bolsover" <[EMAIL PROTECTED]>
 ===
Rajesh

The solution I use is to have a LoginAction mapped to /login.do - which is a
protected resource - any requests for /login.do will have to pass the
container managed authentication.  LoginAction can then do somthing like:

  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  con1 = DriverManager.getConnection("jdbc:odbc:xyz", "", "");
  UserDAO udao = new UserDAO(con1);
  User user =
udao.retrieveUserByUserName(request.getRemoteUser().trim());
  request.getSession().setAttribute(Constants.USER, user);


David
[EMAIL PROTECTED]

"Rajesh Kalluri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi All,
>
> I have set up container managed authentication with tomcat with form based
> login.
>
> 
> FORM
> 
> /LoginForm.html
> /LoginError.html
> 
> 
>
> -The entry point to my app is LoginForm.html.
>
> 
>
>   Username: 
>   Password: 
>   
>
>   
>   
>
> .
>
> I let Tomcat take care of authenticating the users password and his role.
>
> I want to store the user profile including his email and some other
> information from the database into session scope based on <%=
> request.getRemoteUser() %>.
>
> At what stage is it recomended to do this in a struts application using
> contianer managed authentication.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Container Managed Authentication - Form based login

2002-07-24 Thread Filipe Mateus

You should code your own Realm and refer to it in server.xml.  Container-managed app 
will use this custom-realm to authenticate the user.  Warning: this works in Tomcat 
only!  (I'm not sure if version 3 supports it though).

On Wed, 24 Jul 2002 12:09:59 -0400
"Rajesh Kalluri" <[EMAIL PROTECTED]> wrote:

> Hi All,
> 
> I have set up container managed authentication with tomcat with form based
> login.
> 
> 
>   FORM
>   
>   /LoginForm.html
>   /LoginError.html
>   
> 
> 
> -The entry point to my app is LoginForm.html.
> 
> 
> 
>   Username: 
>   Password: 
> 
> 
>   
>   
> 
> .
> 
> I let Tomcat take care of authenticating the users password and his role.
> 
> I want to store the user profile including his email and some other
> information from the database into session scope based on <%=
> request.getRemoteUser() %>.
> 
> At what stage is it recomended to do this in a struts application using
> contianer managed authentication.
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


**
Financiere Banque Nationale et NBCN n'assument
aucune responsabilite quant a la confidentialite et l'integrite du
present courriel en raison des risques d'interception inherents 
a l'Internet. Pour cette raison, toute opinion exprimee au terme 
des presentes ne reflete pas necessairement celle de 
Financiere Banque Nationale et de NBCN.
**
Due to the security risks involved in sending information over the
Internet, National Bank Financial  and NBCN cannot be held responsible 
for ensuring the confidentiality and integrity of the present e-mail. For this 
reason, the opinions expressed herein do not necessarily reflect those of 
National Bank Financial and NBCN.
**


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




Re: Best way to get a Form's content

2002-07-24 Thread Tim T. Young


You could 





I tend to do that to get away from calling getters, plus if you use it in
the jsp more than once you already have it defined.

Tim



   
   
Struts 
   
Newsgroup  
   
 (
   
   
   
07/24/2002To: [EMAIL PROTECTED]   
   
11:55 AM  cc:  
   
Please 
   
respond to 
   
"Struts Users  
   
Mailing List"Subject: Best way to get a Form's content 
   
   
   
   
   



Caterpillar: Confidential Green  Retain Until: 08/23/2002
 Retention Category:  G90 -
 Information and Reports




Subject: Best way to get a Form's content
From: "Matt Raible" <[EMAIL PROTECTED]>
 ===
Is this the best way to get a bean's values for parameter substitution?






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






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




official or non official DTDs

2002-07-24 Thread Oren Gross



Where can I 
find a DTD for the two Validator configuration files?
Please reply 
directly to me.
thank
__
Oren Gross, Software Developer
Mercury Interactive, APM - R&D
+972-3-5399407, [EMAIL PROTECTED]

 

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


Best way to get a Form's content

2002-07-24 Thread @Basebeans.com

Subject: Best way to get a Form's content
From: "Matt Raible" <[EMAIL PROTECTED]>
 ===
Is this the best way to get a bean's values for parameter substitution?






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




Please help w Iterate problem

2002-07-24 Thread Stan Baranek

Hi all,

I have a newby question - nobody's answered my previous questions so I 
feel like the invisible man on this list but here goes anyways 
(maybe I can guilt somebody into helping me)

Using Struts 1.0/tiles I need to be able to iterate through a list of 
dynamic mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




HELP: Value objects w/ CMR fields to Action Forms

2002-07-24 Thread Roland Chan

Hello,
 
Does anyone have a best practice/pattern for mapping value objects which
contain CMP 2.0 cmr field relationships to an action form.  Previously
we were using our own relationship framework which required us to only
have simple accessors for relationships in our value objects.  Now these
value objects contain local interfaces.
 
Previously we used a mapping tool which did all of our mappings for us,
however, I don't think this will do the job any longer.
 
Any advice would be appreciated.  I think we may be missing something. ?
 
Thanks,
RC
 
 



Container Managed Authentication - Form based login

2002-07-24 Thread Rajesh Kalluri

Hi All,

I have set up container managed authentication with tomcat with form based
login.


FORM

/LoginForm.html
/LoginError.html



-The entry point to my app is LoginForm.html.



  Username: 
  Password: 
  

  
  

.

I let Tomcat take care of authenticating the users password and his role.

I want to store the user profile including his email and some other
information from the database into session scope based on <%=
request.getRemoteUser() %>.

At what stage is it recomended to do this in a struts application using
contianer managed authentication.


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




ForwardAction and tiles

2002-07-24 Thread @Basebeans.com

Subject: ForwardAction and tiles
From: "Eric" <[EMAIL PROTECTED]>
 ===
Does anyone know how ForwardAction works with tiles?

I have a jsp page that define a link to call a forward action, the forward
suppose to direct to another jsp page define in tiles. But I got the
following error.

javax.servlet.ServletException: Path site.login.page does not start with a
"/" character

Anyone has a clue?

Eric

--struts-config.xml

  type="org.apache.struts.actions.ForwardAction"
  scope="request"
  validate="false">


--tiles-defs.xml

   
   
   
   
   

...


   
   


--one of jsp page, I define a link to call the forward action






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




Reg. tag

2002-07-24 Thread Badri

Hi
I am using  tag with href as given below:


function saveUser()
{
document.addUserForm.action= "/jspconv1/addUser";
document.addUserForm.target="_self";
document.addUserForm.submit();
}






  


 Test Link 




When I click on the link it goes to next JSP page according to  action and
forward given in struts-config.xml file .

But it does not populate the value of all form elements in the Action Form
.I get value of password as null. I have proper set and get methods in the
corresponding ActionForm. Infact in the setter method I have put a println
statement.Even it does not appear.

Can anyone give me a solution for this problem or indicate where I am making
any mistake???

Thanks and Regards
D.Badrinarayanan




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




Tiles and Struts 1.0.2?

2002-07-24 Thread Tim T. Young

I am looking for the Tiles version that works with Struts 1.0.2.  Google,
the Tiles site, etc have not helped.  I have seen mention of a file called
tilesForStruts1.0.jar but I cannot find anywhere.  (Of course I would love
to upgrade to the latest of everything Struts/Tiles/etc but VAJ is holding
me back with clashes with JAXP 1.1.  WSAD is months away for me also.)
Maybe I am just overlooking the link or something...

Thanks!
Tim


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




Re: Urgent: Loading message resources from Database

2002-07-24 Thread Craig R. McClanahan



On Wed, 24 Jul 2002, Rajesh P wrote:

> Date: Wed, 24 Jul 2002 17:56:06 +0530
> From: Rajesh P <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Urgent: Loading message resources from Database
>
> Hi,
> Can anybody give me the steps to fetch the message resources from a
> database table rather than from a .properties file.
> Please do help.
> Thanks in advance,
> Regards,
> Rajesh
>

You would need to create your own implementation of the
org.apache.struts.util.MessageResources and
org.apache.struts.util.MessageResourcesFactory APIs, and then configure
Struts to use them.

Alternatively, if the message resources don't change while the application
is running, it would not be difficult to write a small utility program to
extract the appropriate information from the database, and write out the
properties files you need.  You could run this utility as part of the
process of assembling your WAR file prior to deployment, or whenever you
compiled all the Java source files.

Craig


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




Re: Using Data-source's with Struts

2002-07-24 Thread Craig R. McClanahan



On Wed, 24 Jul 2002, Shaun Whyte wrote:

> Date: Wed, 24 Jul 2002 12:45:43 +0100
> From: Shaun Whyte <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Using Data-source's with Struts
>
> I am trying to find a good way of using the data sources within a Stuts
> application.
>
> Supposing I have some Manager classes (like Facades); each of which have
> methods which perform a set of related use-cases, which abstract complexity
> of communicating with the beans.  The idea being that a Struts Action class
> would use the manager classes to perform the detailed operations, and
> therefore not only can a Stuts Action class use the facades (manager
> classes), but any other class which needs to perform the same functionality
> can also use them (e.g. it may not be an HTTP request).  My manager classes
> are created in a sub-class of ActionServlet and stored in the servlet
> context for use by Struts actions.  If it is not a Struts application which
> is not using them, then they are created in some other way.
>
> With regards to the DataSources, supposing my manager class needs to use
> data-source(s).  I don't want my manager classes to be tied to HTTP, so I
> don't want them to look in the ServletContext for the data source, which is
> where Struts stored them.
>
> Is the best solution, to create a List of the DataSource object in my
> sub-class of ActionServlet, then when I create the managers, just pass in
> the list for them to use.  That way, if another type of application which
> needs to use the managers (which isn't using Struts), it would create the
> DataSources itself, put them in a list, and, similar to my ActionServlet,
> pass them in to the manager classes when it created them.
>
> If anyone has any ideas for me, or if this is a good way of doing things,
> please reply.
>

To use a Struts-provided data source, you need to make it accesible to the
business logic that needs it.  That means you need to do one of the
following:
* Pass the data source instance as a method parameter on some call
* Pass a reference to the ServletContext at some point, so that the
  business logic can look up the appropriate attribute itself.
* Make the data source available through a well known static variable.
None of these are very attractive, but that's pretty much the choices.

If you are running on a J2EE app server (or Tomcat 4, which also supports
JNDI namespaces), I strongly suggest that you consider using the container
provided data sources, instead of the ones provided by Struts.  A typical
use of such a data source in a business logic class looks like this:

  InitialContext context = new InitialContext();
  DataSource ds = (DataSource)
context.lookup("java:comp/env/jdbc/MyDatabase");
  Connection conn = ds.getConnection();
  ... do your thing ...
  conn.close();

where "jdbc/MyDatabase" matches a  that you have defined in
your web.xml file.  The actual database that this talks to is configured
as part of the deployment information for your app (in Tomcat, you put
stuff into server.xml for this).

But the important point is that this approach requires none of the above
alternatives for exposing the connection pool -- the container makes sure
that the "new InitialContext()" call always gives you the JNDI naming
context for the current application.

> Also as a second question, I have been looking at the JavaDoc's for the JDBC
> Connection Pool (from bitmechanic.com), and cannot find a class which
> implements javax.sql.DataSource to use within Struts, is this correct?
>

I don't know.  If it does have a DataSource implementation, you might be
able to use this instead of the one in Struts - but you don't really need
both.

> Many thanks!
>
> Shaun.
>

Craig


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




RE: Font Size

2002-07-24 Thread Susmita Pati

thanks a lot

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 11:43 AM
To: Struts Users Mailing List
Subject: RE: Font Size


Use style attribute or reference it in your style sheet.


1
2
3
4
5


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 11:37 AM
> To: 'Struts Users Mailing List'
> Subject: Font Size
> 
> 
> 
> Hi Folks
> 
> Wanted a quick answer..so posting the query here..though this has 
> nothing to
> do with struts
> How do i change the font size in a drop down ?
> 
> thanks in advance
> susmita
> 
> --
> 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: Font Size

2002-07-24 Thread James Mitchell

Use style attribute or reference it in your style sheet.


1
2
3
4
5


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 11:37 AM
> To: 'Struts Users Mailing List'
> Subject: Font Size
> 
> 
> 
> Hi Folks
> 
> Wanted a quick answer..so posting the query here..though this has 
> nothing to
> do with struts
> How do i change the font size in a drop down ?
> 
> thanks in advance
> susmita
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-24 Thread hemant

To answer your second question, the LazyCollections aren't yet public
(unless I am in some kinda coma) , they can be found in commons nightly
builds.This is  OO Software Craftsmanship at its best!! The code is very
well documented and should be enough to get you going.

regards
hemant



- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 11:22 AM
Subject: Re: Wrapping Collections in LazyList to auto-populate form on
Submit


>
> Two questions:
>   1 - In our situation we will be getting a *result* object with an
> internal list from the backend that is similar to the MonkeyBean.
>   I would NOT be able to change it's implementation (ie:adding
> LazyCollections) .  How could I achieve the same thing?  Would I need to
> create to temporary list wrappers that would be used to  manually insert
> the newly created lists ?
>
>   2 - Are the LazyCollections public now. The last I heard they were
on
> there way to Commons. I have been checking Arrons site and have seen to
> mention
> of them.  I also understand that some of the tutorials will be updated
with
> the lazy collections instead of putting the list in session.  Is this the
> case?
>
> Thanks
>
>
>
>
> "hemant" <[EMAIL PROTECTED]> on 07/24/2002 10:02:05 AM
>
> Please respond to "Struts Users Mailing List"
><[EMAIL PROTECTED]>
>
> To:"Struts Users Mailing List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:Re: Wrapping Collections in LazyList to auto-populate form on
>Submit
>
>
> Arron
>
>
> Great answer!
>
> Will experiment with my code based on your suggestions and let you know
>
> Thanks for your time
>
> Regards
> hemant
>
> - Original Message -
> From: "Arron Bates" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 24, 2002 10:46 AM
> Subject: Re: Wrapping Collections in LazyList to auto-populate form on
> Submit
>
>
> > The seed beans would be child beans to the banana beans. You'd ask the
> > monkey bean for the collection of bananas, and once you have a banana,
> > you'd ask the banana for the list of it's seeds. So, the list becomes a
> > member of the banana. Looking a little like this...
> >
> >
> > public class BananaBean {
> >   public String getFlavour() { return flav; }
> >   public void setFlavour(String str) { flav = str; }
> >
> >   public List getSeeds() { return seedList; }
> >
> >   private List seedList = LazyCollections.lazyList(new ArrayList(),
> >SeedBean.class);
> >   private String flav;
> > }
> >
> >
> >
> > Nested beans are all about composition. Each nesting level will be
> > composed of that beneath it. Monkey's don't manage seeds, they manage
> > bananas. Seed management is up to the Banana. If there's another level,
> > then the seed bean will take care of that. The Monkey examples of my
> > site are an example of all this. What may be confusing is that they
> > build objects and at times their children for sake of convenience. But
> > the member collections themselves are always attached to the object
> > they're concerned with.
> >
> > So when the request comes in, it will make the monkey object for the
> > form. It'll then ask for the banana at the index. When the banana's made
> > it will make the lazy wrapped list of seeds. so when an update for a
> > seed comes in, then it will make the seed object for the banana.
> >
> > Once you have one level going, the rest are just as easy. From one to a
> > hundred list levels, it's all the same. Other things come to light
> > too... you don't have to always have the model start with monkey. Say
> > another form which is banana specific, you can use the same banana
> > object in another model, and it'll work just as well. Gotta love OOP :)
> >
> >
> > Arron.
> >
> >
> > On Wed, 2002-07-24 at 23:43, hemant wrote:
> > > Arron,
> > >
> > > Thanks for responding.
> > >
> > > Things seem to be clearer now. I have a question to ask though.
> > >
> > > We all know Bananas have seeds. (So a BananaBean can have a collection
> of
> > > seeds.)
> > >
> > > Now I have a situation where I have to set the property of the seed
> bean
> via
> > > the JSP on submit.
> > >
> > > Lets have a seed bean
> > >
> > > public class SeedBean {
> > >public String getColor() { return color; }
> > >public void setColor(String str) { color= str; }
> > >private String color;
> > >  }
> > >
> > > Now in the MonkeyBean (Which is the formbean ) can I say the
following?
> > >
> > > public class MonkeyBean {
> > >public List getBananas() { return bananas; }
> > >   private List bananas = LazyCollections.lazyList(new
> > > ArrayList(LazyCollections.lazyList(new ArrayList(),  SeedBean.class)),
> > > BananaBean.class);
> > >  }
> > >
> > >
> > > I tried doing the same but it didnt work :(
> > >
> > > Thanks for your time
> > > hemant
> > >
> > >
> > >
> > >
> > > - Original Me

RE: Font Size

2002-07-24 Thread Tero P Paananen

> Wanted a quick answer..so posting the query here..though this 
> has nothing to
> do with struts
> How do i change the font size in a drop down ?

You go to Google (or Google Groups), enter appropriate
keywords in the search form and hit the search button.
5 seconds later, you have your answer.

-TPP

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




Font Size

2002-07-24 Thread Susmita Pati


Hi Folks

Wanted a quick answer..so posting the query here..though this has nothing to
do with struts
How do i change the font size in a drop down ?

thanks in advance
susmita

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




Re: Error while using struts taglibs

2002-07-24 Thread Sridhara S.N.

Hi rakesh,

In web.xml (under WEB-INF folder) you have to specify the taglibrary path,
for eg.

If you have a folder "tags" inside WEB-INF and you have all the .tld files
inside that, than the web.xml should have the
taglib description as below


  struts-bean
  /WEB-INF/tags/struts-bean.tld
 

In JSP files use the taglib as below

<%@ page language="java"%>
<%@ taglib uri="struts-bean" prefix="bean" %>




Regards,
Sridhara S.N.
- Original Message -
From: "Rakesh N R" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, July 20, 2002 6:28 AM
Subject: Error while using struts taglibs


> Hi All,
>
>  I am using struts with weblogic5.1. I am getting a problem in a page
> which was functioning fine earlier. It has to do with initializing the
> taglibraries. This is given for all tag libraries not specifically with
> bean tags. What could be the reason for the same. I am pasting the stack
> trace. I am badly caught up because of this problem.
> Thanks in advance.
>
> Regards,
> Rakesh
>
> **
> taglib uri '/WEB-INF/struts-bean.tld' to taglib-location
> /WEB-INF/struts-bean.tl
> d:
> Sat Jul 20 16:52:52 GMT+05:30 2002: 
> Servlet fa
> iled with Exception
> weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
> 'bean': e
> rror introspecting class: 'org.apache.struts.taglib.bean.CookieTag':
> weblogic.se
> rvlet.jsp.JspException: (line -1): Error in tag library at: 'bean':
> class org.ap
> ache.struts.taglib.bean.CookieTag doesn't implement
> javax.servlet.jsp.tagext.Tag
>
> at
> weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:
> 138)
> at
> weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java, C
> ompiled Code)
> at
> weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib
> .java, Compiled Code)
> at
> weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:125)
> at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
> at
> weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java, C
> ompiled Code)
> at
> weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java, Compil
> ed Code)
> at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java,
> Compiled Code
> )
> at
> weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
> at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
> at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java,
> Compiled Code)
>
> at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled
> Code)
> at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled
> Code)
> at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
> at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
> at
> weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Co
> mpiled Code)
> at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java,
> Compiled Code)
>
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
>
> at
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
> java, Compiled Code)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java, Compiled Code)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java, Compiled Code)
> at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
> cherImpl.java:154)
> at
> org.apache.struts.action.ActionServlet.processActionForward(ActionSer
> vlet.java:1759)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:159
> 6)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java, Compiled Code)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java, Compiled Code)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java, Compiled Code)
> at
> weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
> ContextManager.java, Compiled Code)
> at
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
> a, Compiled Code)
> at
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Com
> piled Code)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
> Compiled Code)
>
>
>
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsub

Re: Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-24 Thread Jeff_Mychasiw


Two questions:
  1 - In our situation we will be getting a *result* object with an
internal list from the backend that is similar to the MonkeyBean.
  I would NOT be able to change it's implementation (ie:adding
LazyCollections) .  How could I achieve the same thing?  Would I need to
create to temporary list wrappers that would be used to  manually insert
the newly created lists ?

  2 - Are the LazyCollections public now. The last I heard they were on
there way to Commons. I have been checking Arrons site and have seen to
mention
of them.  I also understand that some of the tutorials will be updated with
the lazy collections instead of putting the list in session.  Is this the
case?

Thanks




"hemant" <[EMAIL PROTECTED]> on 07/24/2002 10:02:05 AM

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

To:"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:

Subject:Re: Wrapping Collections in LazyList to auto-populate form on
   Submit


Arron


Great answer!

Will experiment with my code based on your suggestions and let you know

Thanks for your time

Regards
hemant

- Original Message -
From: "Arron Bates" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 10:46 AM
Subject: Re: Wrapping Collections in LazyList to auto-populate form on
Submit


> The seed beans would be child beans to the banana beans. You'd ask the
> monkey bean for the collection of bananas, and once you have a banana,
> you'd ask the banana for the list of it's seeds. So, the list becomes a
> member of the banana. Looking a little like this...
>
>
> public class BananaBean {
>   public String getFlavour() { return flav; }
>   public void setFlavour(String str) { flav = str; }
>
>   public List getSeeds() { return seedList; }
>
>   private List seedList = LazyCollections.lazyList(new ArrayList(),
>SeedBean.class);
>   private String flav;
> }
>
>
>
> Nested beans are all about composition. Each nesting level will be
> composed of that beneath it. Monkey's don't manage seeds, they manage
> bananas. Seed management is up to the Banana. If there's another level,
> then the seed bean will take care of that. The Monkey examples of my
> site are an example of all this. What may be confusing is that they
> build objects and at times their children for sake of convenience. But
> the member collections themselves are always attached to the object
> they're concerned with.
>
> So when the request comes in, it will make the monkey object for the
> form. It'll then ask for the banana at the index. When the banana's made
> it will make the lazy wrapped list of seeds. so when an update for a
> seed comes in, then it will make the seed object for the banana.
>
> Once you have one level going, the rest are just as easy. From one to a
> hundred list levels, it's all the same. Other things come to light
> too... you don't have to always have the model start with monkey. Say
> another form which is banana specific, you can use the same banana
> object in another model, and it'll work just as well. Gotta love OOP :)
>
>
> Arron.
>
>
> On Wed, 2002-07-24 at 23:43, hemant wrote:
> > Arron,
> >
> > Thanks for responding.
> >
> > Things seem to be clearer now. I have a question to ask though.
> >
> > We all know Bananas have seeds. (So a BananaBean can have a collection
of
> > seeds.)
> >
> > Now I have a situation where I have to set the property of the seed
bean
via
> > the JSP on submit.
> >
> > Lets have a seed bean
> >
> > public class SeedBean {
> >public String getColor() { return color; }
> >public void setColor(String str) { color= str; }
> >private String color;
> >  }
> >
> > Now in the MonkeyBean (Which is the formbean ) can I say the following?
> >
> > public class MonkeyBean {
> >public List getBananas() { return bananas; }
> >   private List bananas = LazyCollections.lazyList(new
> > ArrayList(LazyCollections.lazyList(new ArrayList(),  SeedBean.class)),
> > BananaBean.class);
> >  }
> >
> >
> > I tried doing the same but it didnt work :(
> >
> > Thanks for your time
> > hemant
> >
> >
> >
> >
> > - Original Message -
> > From: "Arron Bates" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 23, 2002 10:19 AM
> > Subject: Re: Wrapping Collections in LazyList to auto-populate form on
> > Submit
> >
> >
> > > Hemant,
> > >
> > > Sorry about the issues you're having, but at face value it seems that
> > > you're almost trying too hard. Without seeing the rest of your code,
> > > it's hard to see what your generateWrappedCollection() method is
trying
> > > to acheive, so I'll try to answer with code...
> > >
> > >
> > > With the collection wrapping, it's a simple one liner in the bean.
For
> > > example, in all my monkey examples, they all return the collection as
> > > the indexed property type (because it's a valid index

Re: eclipse and Struts

2002-07-24 Thread Damien VIEL

Yes you can
Get the Tomcat plugin here : http://www.sysdeo.com/eclipse/tomcatPlugin.html

Regards
Dams
- Original Message -
From: "Hoang, Hai" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 4:50 PM
Subject: RE: eclipse and Struts


Can you debug Struts/Tomcat in eclipse?

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:48 AM
To: 'Struts Users Mailing List'
Subject: RE: eclipse and Struts

http://easystruts.sourceforge.net/

> -Message d'origine-
> De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Envoyé : mercredi 24 juillet 2002 16:40
> À : [EMAIL PROTECTED]
> Objet : eclipse and Struts
>
>
> Subject: eclipse and Struts
> From: "Eric" <[EMAIL PROTECTED]>
>  ===
> Anyone knows how to get eclipse working with Struts?
>
> Thanks
>
> Eric
>
>
>
> --
> 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: eclipse and Struts

2002-07-24 Thread @Basebeans.com

Subject: Re: eclipse and Struts
From: "Eric" <[EMAIL PROTECTED]>
 ===
I haven't try that, but this is the respond from Wayne,

Thanks Wayne.

I use Sysdeo Tomcat plugin with Easy Struts plugin.  I prefer the new
struts (the beta).  Easy Struts supports this.  You have to download
separately the Tomcat and the Struts.  If you want to debug the
generated jsps, you will need the sysdeo patch for Tomcat 4 (not for
3.x).  If you need to debug inside Struts code, you will need to
download Struts sources.  It is all pretty cool.

Eric

"Hoang, Hai" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
Can you debug Struts/Tomcat in eclipse?

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:48 AM
To: 'Struts Users Mailing List'
Subject: RE: eclipse and Struts

http://easystruts.sourceforge.net/

> -Message d'origine-
> De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Envoyé : mercredi 24 juillet 2002 16:40
> À : [EMAIL PROTECTED]
> Objet : eclipse and Struts
>
>
> Subject: eclipse and Struts
> From: "Eric" <[EMAIL PROTECTED]>
>  ===
> Anyone knows how to get eclipse working with Struts?
>
> Thanks
>
> Eric
>
>
>
> --
> 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: O'Reilly Struts Cover

2002-07-24 Thread David Mulligan

That one really big horse! And me thinking Struts was a lightweight
framework :-)


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 3:00 PM
To: 'Struts Users Mailing List'
Subject: RE: O'Reilly Struts Cover


It's got only 3 legs!!!

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:54 AM

Hey, that's a nice picture.
It's no SASQUATCH, but I like it.

James Mitchell

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-24 Thread hemant

Arron


Great answer!

Will experiment with my code based on your suggestions and let you know

Thanks for your time

Regards
hemant

- Original Message -
From: "Arron Bates" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 10:46 AM
Subject: Re: Wrapping Collections in LazyList to auto-populate form on
Submit


> The seed beans would be child beans to the banana beans. You'd ask the
> monkey bean for the collection of bananas, and once you have a banana,
> you'd ask the banana for the list of it's seeds. So, the list becomes a
> member of the banana. Looking a little like this...
>
>
> public class BananaBean {
>   public String getFlavour() { return flav; }
>   public void setFlavour(String str) { flav = str; }
>
>   public List getSeeds() { return seedList; }
>
>   private List seedList = LazyCollections.lazyList(new ArrayList(),
>SeedBean.class);
>   private String flav;
> }
>
>
>
> Nested beans are all about composition. Each nesting level will be
> composed of that beneath it. Monkey's don't manage seeds, they manage
> bananas. Seed management is up to the Banana. If there's another level,
> then the seed bean will take care of that. The Monkey examples of my
> site are an example of all this. What may be confusing is that they
> build objects and at times their children for sake of convenience. But
> the member collections themselves are always attached to the object
> they're concerned with.
>
> So when the request comes in, it will make the monkey object for the
> form. It'll then ask for the banana at the index. When the banana's made
> it will make the lazy wrapped list of seeds. so when an update for a
> seed comes in, then it will make the seed object for the banana.
>
> Once you have one level going, the rest are just as easy. From one to a
> hundred list levels, it's all the same. Other things come to light
> too... you don't have to always have the model start with monkey. Say
> another form which is banana specific, you can use the same banana
> object in another model, and it'll work just as well. Gotta love OOP :)
>
>
> Arron.
>
>
> On Wed, 2002-07-24 at 23:43, hemant wrote:
> > Arron,
> >
> > Thanks for responding.
> >
> > Things seem to be clearer now. I have a question to ask though.
> >
> > We all know Bananas have seeds. (So a BananaBean can have a collection
of
> > seeds.)
> >
> > Now I have a situation where I have to set the property of the seed bean
via
> > the JSP on submit.
> >
> > Lets have a seed bean
> >
> > public class SeedBean {
> >public String getColor() { return color; }
> >public void setColor(String str) { color= str; }
> >private String color;
> >  }
> >
> > Now in the MonkeyBean (Which is the formbean ) can I say the following?
> >
> > public class MonkeyBean {
> >public List getBananas() { return bananas; }
> >   private List bananas = LazyCollections.lazyList(new
> > ArrayList(LazyCollections.lazyList(new ArrayList(),  SeedBean.class)),
> > BananaBean.class);
> >  }
> >
> >
> > I tried doing the same but it didnt work :(
> >
> > Thanks for your time
> > hemant
> >
> >
> >
> >
> > - Original Message -
> > From: "Arron Bates" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 23, 2002 10:19 AM
> > Subject: Re: Wrapping Collections in LazyList to auto-populate form on
> > Submit
> >
> >
> > > Hemant,
> > >
> > > Sorry about the issues you're having, but at face value it seems that
> > > you're almost trying too hard. Without seeing the rest of your code,
> > > it's hard to see what your generateWrappedCollection() method is
trying
> > > to acheive, so I'll try to answer with code...
> > >
> > >
> > > With the collection wrapping, it's a simple one liner in the bean. For
> > > example, in all my monkey examples, they all return the collection as
> > > the indexed property type (because it's a valid indexed getter and the
> > > iterate tags can use the collection to get their thing going). All you
> > > need to do is wrap that collection directly.
> > >
> > >
> > > For example, two complete beans...
> > >
> > > public class MonkeyBean {
> > >   public List getBananas() { return bananas; }
> > >   private List bananas = LazyCollections.lazyList(new ArrayList(),
> > >   BananaBean.class);
> > > }
> > >
> > > public class BananaBean {
> > >   public String getFlavour() { return flav; }
> > >   public void setFlavour(String str) { flav = str; }
> > >   private String flav;
> > > }
> > >
> > >
> > >
> > > The MonkeyBean is the parent class that hold the collection. It has
> > > immediately wrapped the ArrayList in the LazyCollection, and passed it
> > > the class of the BananaBean object. You may want to keep a reference
to
> > > the wrapped ArrayList, generally I don't have the need to.
> > >
> > > These classes are all but ready to rock. I

RE: problem with HttpSession in Resin-2.1.2

2002-07-24 Thread David Mulligan

Now I'm really confused!!!

I'm using Velocity for the presentation, so no JSPs or tags. 
I'm guessing the LOCALE attribute is coming from the web 
browser! I also tried setting the session-timeout to 30 
minutes in web.xml and that didn't work either.

But this is where things get really strange! 

I started up K-Meleon (Mozilla browser) to check and see if 
MS-IE was sending my location in the request (Hence the 
LOCALE attribute) and everything worked just fine! 

Not one problem! I can login/logout etc. UserBean is getting 
saved in the Session. Everything works as expected!

Back to IE and it still doesn't work. IE is setup to check 
for newer page version with each request. So it's not a 
problem with the cache. 

Anyone else ever see something like this before?


-Original Message-
From: Jonathan Fuerth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 3:31 PM
To: Struts Users Mailing List
Subject: Re: problem with HttpSession in Resin-2.1.2


On Tue, Jul 23, 2002 at 06:06:08PM +0100, David Mulligan wrote:
> Everthing works just fine on Tomcat 4.0.3 and Websphere. 
> But for some strange reason the HttpSession I create in my LogonAction
loses
> an attribute (The UserBean) in the next request (only with Resin)!

Are there any JSPs involved in your testing?  They always seem to
create a session when they start up.  If for some reason (short
timeout or otherwise) the initial session you created and put the user
bean into was invalid when a JSP started, it would create a new
(empty) session, which could be what you're seeing in that second
servlet.  The locale attribute probably comes from a  tag in your JSP (assuming you are using a JSP).

Do try and set the session timeout in web.xml (as you mentioned).. a
very short session timeout is one possible explanation for what's
going on.

I don't know if this will help you solve the problem, but that's my
best guess at what's happening to your session.  Good luck with it!

-- 
Jonathan Fuerth - SQL Power Group Inc.
(416)218-5551 (Toronto); 1-866-SQL-POWR (Toll-Free)
Unleash the Power of your Corporate Data - http://www.sqlpower.ca/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: eclipse and Struts

2002-07-24 Thread Arnaud HERITIER

Yes you can but I don't use it personally.
I just tried eclipse and it seems very well done.
Unfortunately I don't have enough time to port my JBuilder projects under
Eclipse.
I think I will use it the next time I'll begin a new project

arnaud

> -Message d'origine-
> De : Hoang, Hai [mailto:[EMAIL PROTECTED]]
> Envoyé : mercredi 24 juillet 2002 16:50
> À : 'Struts Users Mailing List'
> Objet : RE: eclipse and Struts
>
>
> Can you debug Struts/Tomcat in eclipse?
>
> -Original Message-
> From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 9:48 AM
> To: 'Struts Users Mailing List'
> Subject: RE: eclipse and Struts
>
> http://easystruts.sourceforge.net/
>
> > -Message d'origine-
> > De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> > Envoyé : mercredi 24 juillet 2002 16:40
> > À : [EMAIL PROTECTED]
> > Objet : eclipse and Struts
> >
> >
> > Subject: eclipse and Struts
> > From: "Eric" <[EMAIL PROTECTED]>
> >  ===
> > Anyone knows how to get eclipse working with Struts?
> >
> > Thanks
> >
> > Eric
> >
> >
> >
> > --
> > 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: eclipse and Struts

2002-07-24 Thread Hoang, Hai

Can you debug Struts/Tomcat in eclipse?

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 24, 2002 9:48 AM
To: 'Struts Users Mailing List'
Subject: RE: eclipse and Struts

http://easystruts.sourceforge.net/

> -Message d'origine-
> De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Envoyé : mercredi 24 juillet 2002 16:40
> À : [EMAIL PROTECTED]
> Objet : eclipse and Struts
>
>
> Subject: eclipse and Struts
> From: "Eric" <[EMAIL PROTECTED]>
>  ===
> Anyone knows how to get eclipse working with Struts?
>
> Thanks
>
> Eric
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: eclipse and Struts

2002-07-24 Thread Arnaud HERITIER

http://easystruts.sourceforge.net/

> -Message d'origine-
> De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Envoyé : mercredi 24 juillet 2002 16:40
> À : [EMAIL PROTECTED]
> Objet : eclipse and Struts
>
>
> Subject: eclipse and Struts
> From: "Eric" <[EMAIL PROTECTED]>
>  ===
> Anyone knows how to get eclipse working with Struts?
>
> Thanks
>
> Eric
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




Re: Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-24 Thread Arron Bates

The seed beans would be child beans to the banana beans. You'd ask the
monkey bean for the collection of bananas, and once you have a banana,
you'd ask the banana for the list of it's seeds. So, the list becomes a
member of the banana. Looking a little like this...


public class BananaBean {
  public String getFlavour() { return flav; }
  public void setFlavour(String str) { flav = str; }

  public List getSeeds() { return seedList; }

  private List seedList = LazyCollections.lazyList(new ArrayList(),
   SeedBean.class);
  private String flav;
}



Nested beans are all about composition. Each nesting level will be
composed of that beneath it. Monkey's don't manage seeds, they manage
bananas. Seed management is up to the Banana. If there's another level,
then the seed bean will take care of that. The Monkey examples of my
site are an example of all this. What may be confusing is that they
build objects and at times their children for sake of convenience. But
the member collections themselves are always attached to the object
they're concerned with.

So when the request comes in, it will make the monkey object for the
form. It'll then ask for the banana at the index. When the banana's made
it will make the lazy wrapped list of seeds. so when an update for a
seed comes in, then it will make the seed object for the banana. 

Once you have one level going, the rest are just as easy. From one to a
hundred list levels, it's all the same. Other things come to light
too... you don't have to always have the model start with monkey. Say
another form which is banana specific, you can use the same banana
object in another model, and it'll work just as well. Gotta love OOP :)


Arron.


On Wed, 2002-07-24 at 23:43, hemant wrote:
> Arron,
> 
> Thanks for responding.
> 
> Things seem to be clearer now. I have a question to ask though.
> 
> We all know Bananas have seeds. (So a BananaBean can have a collection of
> seeds.)
> 
> Now I have a situation where I have to set the property of the seed bean via
> the JSP on submit.
> 
> Lets have a seed bean
> 
> public class SeedBean {
>public String getColor() { return color; }
>public void setColor(String str) { color= str; }
>private String color;
>  }
> 
> Now in the MonkeyBean (Which is the formbean ) can I say the following?
> 
> public class MonkeyBean {
>public List getBananas() { return bananas; }
>   private List bananas = LazyCollections.lazyList(new
> ArrayList(LazyCollections.lazyList(new ArrayList(),  SeedBean.class)),
> BananaBean.class);
>  }
> 
> 
> I tried doing the same but it didnt work :(
> 
> Thanks for your time
> hemant
> 
> 
> 
> 
> - Original Message -
> From: "Arron Bates" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 23, 2002 10:19 AM
> Subject: Re: Wrapping Collections in LazyList to auto-populate form on
> Submit
> 
> 
> > Hemant,
> >
> > Sorry about the issues you're having, but at face value it seems that
> > you're almost trying too hard. Without seeing the rest of your code,
> > it's hard to see what your generateWrappedCollection() method is trying
> > to acheive, so I'll try to answer with code...
> >
> >
> > With the collection wrapping, it's a simple one liner in the bean. For
> > example, in all my monkey examples, they all return the collection as
> > the indexed property type (because it's a valid indexed getter and the
> > iterate tags can use the collection to get their thing going). All you
> > need to do is wrap that collection directly.
> >
> >
> > For example, two complete beans...
> >
> > public class MonkeyBean {
> >   public List getBananas() { return bananas; }
> >   private List bananas = LazyCollections.lazyList(new ArrayList(),
> >   BananaBean.class);
> > }
> >
> > public class BananaBean {
> >   public String getFlavour() { return flav; }
> >   public void setFlavour(String str) { flav = str; }
> >   private String flav;
> > }
> >
> >
> >
> > The MonkeyBean is the parent class that hold the collection. It has
> > immediately wrapped the ArrayList in the LazyCollection, and passed it
> > the class of the BananaBean object. You may want to keep a reference to
> > the wrapped ArrayList, generally I don't have the need to.
> >
> > These classes are all but ready to rock. In the action class, query the
> > database or whatever and populate the MonkeyBean with the BananaBean
> > data. Serve the result to the JSP.
> >
> > JSP write out a list of text boxes using iterate tags. Submit this, and
> > after the monkeybean is built, the lazy collection will grow the banana
> > list with banana beans as the indexed requests come in.
> >
> > When it gets back to your action class, you'll have your collection of
> > banana beans.
> >
> > Hope this helps, you know where we are if it doesn't.
> >
> >
> > Arron.
> >
> >
> >
> > On Mon, 2002-07-22 at 22:59, hemant wrote:
> >

eclipse and Struts

2002-07-24 Thread @Basebeans.com

Subject: eclipse and Struts
From: "Eric" <[EMAIL PROTECTED]>
 ===
Anyone knows how to get eclipse working with Struts?

Thanks

Eric



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




RE: html:radio and iterate tag

2002-07-24 Thread Arnaud HERITIER

if someone can help Sergei please because I'm very busy these days.

Thx

> -Message d'origine-
> De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
> Envoye : mercredi 24 juillet 2002 16:22
> A : Struts Users Mailing List (E-mail)
> Objet : TR: html:radio and iterate tag
> 
> 
> Hi Arnaud,
> Could you pleased to show an example for more general and 
> frequent case of
> iterating radio - usually one have a set of groups of radios and first
> iteration is over groups and second iteration is over radios 
> in every group.
> I surprise that there was no example before on this situation 
> because it is
> quite frequently occurs I suppose. I tried to do this work myself but
> couldn't:) With checkbox for this situation there is a good 
> type - multibox
> and I use it fine. Why not to write the similar type for radio case?
> Sergei.
> 

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




Re: problem with HttpSession in Resin-2.1.2

2002-07-24 Thread Jonathan Fuerth

On Tue, Jul 23, 2002 at 06:06:08PM +0100, David Mulligan wrote:
> Everthing works just fine on Tomcat 4.0.3 and Websphere. 
> But for some strange reason the HttpSession I create in my LogonAction loses
> an attribute (The UserBean) in the next request (only with Resin)!

Are there any JSPs involved in your testing?  They always seem to
create a session when they start up.  If for some reason (short
timeout or otherwise) the initial session you created and put the user
bean into was invalid when a JSP started, it would create a new
(empty) session, which could be what you're seeing in that second
servlet.  The locale attribute probably comes from a  tag in your JSP (assuming you are using a JSP).

Do try and set the session timeout in web.xml (as you mentioned).. a
very short session timeout is one possible explanation for what's
going on.

I don't know if this will help you solve the problem, but that's my
best guess at what's happening to your session.  Good luck with it!

-- 
Jonathan Fuerth - SQL Power Group Inc.
(416)218-5551 (Toronto); 1-866-SQL-POWR (Toll-Free)
Unleash the Power of your Corporate Data - http://www.sqlpower.ca/

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




File upload: no multipart request data sent

2002-07-24 Thread Pete Serafin

I have a jsp used to do a simple file upload.  I am retrieving and
processing the file without any problems.  However, when I try to
forward to the same action ( or another action ) after the processing
is done, I get the following error:

javax.servlet.ServletException: MultipartIterator: no multipart request
data sent at org.apache.struts.upload.MultipartIterator.parseRequest
(MultipartIterator.java:342)

When I forward to a JSP, I dont get this error.  I am not doing any
validation on this form, but I cant seem locate where the error is
occuring.  My form does have the following header:



The error appears to be happing after the action forward, but before
the perform method of the ensuing action.  Any advise is greatly
appreciated as I am completely stuck


Pete Serafin


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




RE: Setting indexed properties - ArrayIndexOutOfBounds

2002-07-24 Thread Colin Wilson-Salt

Does anyone have an example of receiving tabular data from a form, where you
don't know how many rows of data are going to be in the form beforehand?

-Original Message-
From: Colin Wilson-Salt [mailto:[EMAIL PROTECTED]]
Sent: 23 July 2002 09:36
To: Struts Users Mailing List
Subject: Setting indexed properties - ArrayIndexOutOfBounds


Hi everyone. I've looked through the archives for this and the commons list,
without finding an answer to my problems with receiving indexed properties
from a form.

I've tried with both 1.1 beta and a nightly build from a couple of nights
ago. I'm not sure if my problem is with Struts, Commons / BeanUtils, or my
understanding of how indexed properties on a bean work.

I have a form which, amongst other things, has a tabular set of data:

...



Paint colour


  
  ...

In my form bean I have represented this with an indexed property.

...
public Row [] getRows() {
if (rows == null)
setRows(new Row [0]);

return rows;
}

public void setRows(Row [] rows) {
this.rows = rows;
}
...

Where Row is an inner (nested? never sure of the terminology - defined as
public static inside the form bean, anyway).

My problem is when Struts comes to populate my form bean with values from
the form. Instead of creating a new Row [] and calling setRows, it calls
getRows and then attempts to set values within the array. Trouble is, the
array isn't big enough, leading to an ArrayIndexOutOfBoundsException. And
there's no way I can tell how big to make the array, as the size of the form
varies.

So, I tried using a List instead of an array. But with the same result -
Struts would grab the list from public List getRows(), and then attempt to
set values at indexes within the list.

So, in desperation, I went back to my array version and added a getter and
setter that would take an index, but would 'resize' the array when the index
would be out of bounds:

...
public Row getRows(int i) {
if (i >= getRows().length)
increaseRows(i + 1);

return getRows()[i];
}

public void setRows(int i, Row row) {
if (i >= getRows().length)
increaseRows(i + 1);

getRows()[i] = row;
}
...

Now, that works. But I'm not very satisfied. I would have thought that, in
my original code, the only proper way to change values of the property would
be to create a new array and pass it to public void setRows(Row [] rows).
One argument for this is (thinking only of JavaBeans, not Struts) if the
property was bound, and the array was changed behind the objects back, it
wouldn't know to fire a PropertyChangeEvent.

So, is this a bug in Struts / Commons-BeanUtils? Or a flaw in my
understanding of JavaBeans? Or just a limitation I have to live with? Is the
workaround above 'legal' in terms of the JavaBeans spec? Is there a nicer
way to achieve what I'm trying to do?

Thanks in advance...

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: O'Reilly Struts Cover

2002-07-24 Thread Tony Baity


 It needs a cart or a plow hitch...
  "Galbreath, Mark" <[EMAIL PROTECTED]> wrote: I dunno...you sure that's a hoof and 
not a road apple?

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 10:10 AM

LOL..that's what I thought to at first.

The tail is hiding a leg.actually the horse is depicted in mid-strut.

I'm not a horse expert, but I know it takes a lot of training for horses to
do that.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 10:00 AM
> To: 'Struts Users Mailing List'
> Subject: RE: O'Reilly Struts Cover
>
>
> It's got only 3 legs!!!
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 9:54 AM
>
> Hey, that's a nice picture.
> It's no SASQUATCH, but I like it.
>
> James Mitchell
>
> --
> 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: 



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better


TR: html:radio and iterate tag

2002-07-24 Thread Arnaud HERITIER


-Message d'origine-
De : Sergei P. Volin [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 24 juillet 2002 15:45
A : [EMAIL PROTECTED]
Objet : RE: html:radio and iterate tag


Sorry, one comment - groups are in array (ArrayList etc.) and radio values
in every group are stored also in arrays, note in every group not a scalar
property value but array!

Sergei.



TR: html:radio and iterate tag

2002-07-24 Thread Arnaud HERITIER

Hi Arnaud,
Could you pleased to show an example for more general and frequent case of
iterating radio - usually one have a set of groups of radios and first
iteration is over groups and second iteration is over radios in every group.
I surprise that there was no example before on this situation because it is
quite frequently occurs I suppose. I tried to do this work myself but
couldn't:) With checkbox for this situation there is a good type - multibox
and I use it fine. Why not to write the similar type for radio case?
Sergei.



RE: O'Reilly Struts Cover

2002-07-24 Thread Galbreath, Mark

I dunno...you sure that's a hoof and not a road apple?

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 10:10 AM

LOL..that's what I thought to at first.

The tail is hiding a leg.actually the horse is depicted in mid-strut.

I'm not a horse expert, but I know it takes a lot of training for horses to
do that.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 10:00 AM
> To: 'Struts Users Mailing List'
> Subject: RE: O'Reilly Struts Cover
>
>
> It's got only 3 legs!!!
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 9:54 AM
>
> Hey, that's a nice picture.
> It's no SASQUATCH, but I like it.
>
> James Mitchell
>
> --
> 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: O'Reilly Struts Cover

2002-07-24 Thread James Mitchell

LOL..that's what I thought to at first.

The tail is hiding a leg.actually the horse is depicted in mid-strut.

I'm not a horse expert, but I know it takes a lot of training for horses to
do that.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 10:00 AM
> To: 'Struts Users Mailing List'
> Subject: RE: O'Reilly Struts Cover
>
>
> It's got only 3 legs!!!
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 9:54 AM
>
> Hey, that's a nice picture.
> It's no SASQUATCH, but I like it.
>
> James Mitchell
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: O'Reilly Struts Cover

2002-07-24 Thread Tero P Paananen

> It's got only 3 legs!!!

God, you're right This is awful!

Might as well put the ostrich buried in sand in it :)

-TPP

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




RE: O'Reilly Struts Cover

2002-07-24 Thread Galbreath, Mark

It's got only 3 legs!!!

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:54 AM

Hey, that's a nice picture.
It's no SASQUATCH, but I like it.

James Mitchell

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




RE: O'Reilly Struts Cover

2002-07-24 Thread Galbreath, Mark

Here it is (attached)!

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:44 AM

Cost of Struts framework:  $0
Cost of the O'Reilly Struts book   $40
Knowing what the animal on the cover
  is before everyone else  Priceless




aniHare.gif
Description: GIF image

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


Re: Login Question

2002-07-24 Thread @Basebeans.com

Subject: Re: Login Question
From: "Vic C." <[EMAIL PROTECTED]>
 ===
As this post says
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg36670.html

to extend JAAS you do this:
(i cut and paste now)
"
Then if you want more you do servlet api, getuserpricipal or 
getremoteuser, snipet:
 String authenUser = ae.getReq().getUserPrincipal().getName(); 
//security
 UserBean userBn = new UserBean();
 userBn.find(authenUser);
 String userid = userBn.getId();
 frm.setUserid(userid);

Here is a link on servlet api
http://java.sun.com/webservices/docs/ea2/api/";

V




Graham Lounder wrote:
> I've searched the archives on this one.  There is a lot of information but I
> can't seem to find what I'm looking for.
> 
> I'm currently using form based authentication in my application.  Works
> great.  The problem is that now I need to add some business logic checks to
> the mix (such as 'does the current user have an active account').  What is
> the recommended way of doing this?  Add a filter?  Session Listener?  Do I
> need to get rid of my form based authentication and role my own solution?
> 
> 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: 
> 


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




RE: O'Reilly Struts Cover

2002-07-24 Thread James Mitchell

Hey, that's a nice picture.
It's no SASQUATCH, but I like it.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Elderclei R Reami [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 10:47 AM
> To: Struts Users Mailing List
> Subject: RE: O'Reilly Struts Cover
>
>
> Yep. They showed it.
>
> On Wed, 24 Jul 2002 14:43:42 +0100, John Martin
> <[EMAIL PROTECTED]> escreveu :
>
> > De: John Martin <[EMAIL PROTECTED]>
> > Data: Wed, 24 Jul 2002 14:43:42 +0100
> > Para: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > Assunto: RE: O'Reilly Struts Cover
> >
> > maybe its incorrect but amazon in the uk have a front cover for
> the book,
> > but maybe i have erred
> >
> > > -Original Message-
> > > From: Chuck Cavaness [SMTP:[EMAIL PROTECTED]]
> > > Sent: 24 July 2002 14:19
> > > To:   [EMAIL PROTECTED]
> > > Subject:  O'Reilly Struts Cover
> > >
> > > For all of those guessing and suggesting earlier this week on
> an animal
> > > for
> > > the Struts book, I've finally seen it and it's NONE of the ones
> suggested
> > > so far. It's really good though and does the framework proud. I'm told
> > > that
> > > the book will be available for pre-orders this week or next and the
> cover
> > > will be visible then and no matter how much money you offer, I won't
> tell
> > > :)
> > >
> > > Chuck
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> >
> > --
> > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > For additional commands, e-mail:  [EMAIL PROTECTED]>
> >
> >
> >
> >
>
> Elderclei R Reami
> Vertis Tecnologia
> +55 11 3887-0835
> www.vertisnet.com.br
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: O'Reilly Struts Cover

2002-07-24 Thread Schneider, Eric

Has anyone suggested a pigeon?  Spend some time in NYCnothing struts
like some of these dirty pigeons.

e.

> -Original Message-
> From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 9:19 AM
> To: [EMAIL PROTECTED]
> Subject: O'Reilly Struts Cover
> 
> 
> For all of those guessing and suggesting earlier this week on 
> an animal for 
> the Struts book, I've finally seen it and it's NONE of the 
> ones suggested 
> so far. It's really good though and does the framework proud. 
> I'm told that 
> the book will be available for pre-orders this week or next 
> and the cover 
> will be visible then and no matter how much money you offer, 
> I won't tell :)
> 
> Chuck
> 
> 
> --
> 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
**

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




RE: O'Reilly Struts Cover

2002-07-24 Thread Elderclei R Reami

Yep. They showed it.

On Wed, 24 Jul 2002 14:43:42 +0100, John Martin 
<[EMAIL PROTECTED]> escreveu :

> De: John Martin <[EMAIL PROTECTED]>
> Data: Wed, 24 Jul 2002 14:43:42 +0100
> Para: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Assunto: RE: O'Reilly Struts Cover
> 
> maybe its incorrect but amazon in the uk have a front cover for the book,
> but maybe i have erred
> 
> > -Original Message-
> > From:   Chuck Cavaness [SMTP:[EMAIL PROTECTED]]
> > Sent:   24 July 2002 14:19
> > To: [EMAIL PROTECTED]
> > Subject:O'Reilly Struts Cover
> > 
> > For all of those guessing and suggesting earlier this week on an animal
> > for 
> > the Struts book, I've finally seen it and it's NONE of the ones 
suggested 
> > so far. It's really good though and does the framework proud. I'm told
> > that 
> > the book will be available for pre-orders this week or next and the 
cover 
> > will be visible then and no matter how much money you offer, I won't 
tell
> > :)
> > 
> > Chuck
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 
> 

Elderclei R Reami
Vertis Tecnologia
+55 11 3887-0835
www.vertisnet.com.br


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




Re: Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-24 Thread hemant

Arron,

Thanks for responding.

Things seem to be clearer now. I have a question to ask though.

We all know Bananas have seeds. (So a BananaBean can have a collection of
seeds.)

Now I have a situation where I have to set the property of the seed bean via
the JSP on submit.

Lets have a seed bean

public class SeedBean {
   public String getColor() { return color; }
   public void setColor(String str) { color= str; }
   private String color;
 }

Now in the MonkeyBean (Which is the formbean ) can I say the following?

public class MonkeyBean {
   public List getBananas() { return bananas; }
  private List bananas = LazyCollections.lazyList(new
ArrayList(LazyCollections.lazyList(new ArrayList(),  SeedBean.class)),
BananaBean.class);
 }


I tried doing the same but it didnt work :(

Thanks for your time
hemant




- Original Message -
From: "Arron Bates" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 10:19 AM
Subject: Re: Wrapping Collections in LazyList to auto-populate form on
Submit


> Hemant,
>
> Sorry about the issues you're having, but at face value it seems that
> you're almost trying too hard. Without seeing the rest of your code,
> it's hard to see what your generateWrappedCollection() method is trying
> to acheive, so I'll try to answer with code...
>
>
> With the collection wrapping, it's a simple one liner in the bean. For
> example, in all my monkey examples, they all return the collection as
> the indexed property type (because it's a valid indexed getter and the
> iterate tags can use the collection to get their thing going). All you
> need to do is wrap that collection directly.
>
>
> For example, two complete beans...
>
> public class MonkeyBean {
>   public List getBananas() { return bananas; }
>   private List bananas = LazyCollections.lazyList(new ArrayList(),
>   BananaBean.class);
> }
>
> public class BananaBean {
>   public String getFlavour() { return flav; }
>   public void setFlavour(String str) { flav = str; }
>   private String flav;
> }
>
>
>
> The MonkeyBean is the parent class that hold the collection. It has
> immediately wrapped the ArrayList in the LazyCollection, and passed it
> the class of the BananaBean object. You may want to keep a reference to
> the wrapped ArrayList, generally I don't have the need to.
>
> These classes are all but ready to rock. In the action class, query the
> database or whatever and populate the MonkeyBean with the BananaBean
> data. Serve the result to the JSP.
>
> JSP write out a list of text boxes using iterate tags. Submit this, and
> after the monkeybean is built, the lazy collection will grow the banana
> list with banana beans as the indexed requests come in.
>
> When it gets back to your action class, you'll have your collection of
> banana beans.
>
> Hope this helps, you know where we are if it doesn't.
>
>
> Arron.
>
>
>
> On Mon, 2002-07-22 at 22:59, hemant wrote:
> > Comrades,
> >
> >
> > Objective: To autopopulate forms on submit. The formbean "has a"
collection of collections of ValueObjects. Each valueObject contains a pair
of other Value Objects.
> >
> > Before people beat me up,  The following possibilities have been dealt
with:
> >
> > 1>> No, this is not a case of reset() I have the collections initialized
and things are fine.
> >
> > 2>> It is not a case of bean being in request scope. By default the bean
is in session scope (Unless we explicitly mention the action attribute that
it is request scope.)
>
> [ ...cut...]
>
> >
> > I am about to give up on form auto populate as I am out of time. I will
be populating them by hand but anyway... one last attempt. We dont like to
lose... do we?
> >
> >
> >
> > Thanks In Advance
> >
> > hemant
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: O'Reilly Struts Cover

2002-07-24 Thread Chappell, Simon P

Cost of Struts framework:  $0
Cost of the O'Reilly Struts book   $40
Knowing what the animal on the cover
  is before everyone else  Priceless

>-Original Message-
>From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 24, 2002 8:19 AM
>To: [EMAIL PROTECTED]
>Subject: O'Reilly Struts Cover
>
>
>For all of those guessing and suggesting earlier this week on 
>an animal for 
>the Struts book, I've finally seen it and it's NONE of the 
>ones suggested 
>so far. It's really good though and does the framework proud. 
>I'm told that 
>the book will be available for pre-orders this week or next 
>and the cover 
>will be visible then and no matter how much money you offer, I 
>won't tell :)
>
>Chuck
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

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




RE: O'Reilly Struts Cover

2002-07-24 Thread John Martin

maybe its incorrect but amazon in the uk have a front cover for the book,
but maybe i have erred

> -Original Message-
> From: Chuck Cavaness [SMTP:[EMAIL PROTECTED]]
> Sent: 24 July 2002 14:19
> To:   [EMAIL PROTECTED]
> Subject:  O'Reilly Struts Cover
> 
> For all of those guessing and suggesting earlier this week on an animal
> for 
> the Struts book, I've finally seen it and it's NONE of the ones suggested 
> so far. It's really good though and does the framework proud. I'm told
> that 
> the book will be available for pre-orders this week or next and the cover 
> will be visible then and no matter how much money you offer, I won't tell
> :)
> 
> Chuck
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: Number of Radio button groups not known until run-time

2002-07-24 Thread Bensman, Jeff [EESUS]

Unfortunately my environment is mandating user of v 1.0.2 for now. :-(

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:24 AM
To: 'Struts Users Mailing List'
Subject: RE: Number of Radio button groups not known until run-time


I think it can help you :

http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
he.org&msgNo=40180

But you'll need to use struts 1.1 !

> -Message d'origine-
> De : Bensman, Jeff [EESUS] [mailto:[EMAIL PROTECTED]]
> Envoyé : mercredi 24 juillet 2002 15:03
> À : '[EMAIL PROTECTED]'
> Objet : Number of Radio button groups not known until run-time
>
>
> I'm somewhat of a struts newbie, but I have researched this
> problem through
> all available means I'm aware of, and I now humbly turn to
> this list for
> assistance.
>
> I'm trying to use a Struts ActionForm (v 1.0.2) to deal with
> a situation
> where I don't know the number of radio button groups until run-time.
>
> For example, imagine a table where every row is some product a company
> sells, and there is a column with a yes/no radio button
> group. I need the
> yes/no decision for every product, but the product list is
> dynamic and not
> known until runtime.
>
> I tried to eliminate half of my problem by generating the input page
> through old fashion means rather than using  tags.
> Instead, I've tried using iteration to get resulting HTML in
> each row of
> my table that looks like this:
>
> 
> 
>
> and then of course I increment the counter, so 1 becomes 2 on the next
> row, and so on and so on...
>
> I've setup the ActionForm used in the page I post to like this:
>
> private String[] decision= {};
> public void setDecision(String decision[])
> public String getDecision(int i)
> public String[] getDecision()
>
> However, as Struts populates the form it generates a
> BeanUtils.populate
> error. I checked out the source code, and while I see a line
> that checkes
> for the "[" in the name, it doesn't appear to do anything with this
> information.
>
> And remember, these are radio buttons, so each row of my
> table needs a
> unique name in order for the radio buttons to work as
> desired.  I can't
> give them ALL the same name, or making a decisino on one row
> would undo
> my decision on any other row.
>
> Any ideas how I can do this sort of thing without simply
> bypassing the use
> of the ActionForm?
>
> Thanks in advance for any advice.
>
> BTW, the search of the struts-user list at
> http://www.mail-archive.com/struts-dev%40jakarta.apache.org/
> appears to be
> down.
> For the last several days I get an error message for any type
> of search.  I
> sent the error to [EMAIL PROTECTED] as instructed by
> the error
> message
> but I haven't heard anything yet.  Does anyone else see this problem?
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Number of Radio button groups not known until run-time

2002-07-24 Thread Arnaud HERITIER

I think it can help you :

http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
he.org&msgNo=40180

But you'll need to use struts 1.1 !

> -Message d'origine-
> De : Bensman, Jeff [EESUS] [mailto:[EMAIL PROTECTED]]
> Envoyé : mercredi 24 juillet 2002 15:03
> À : '[EMAIL PROTECTED]'
> Objet : Number of Radio button groups not known until run-time
>
>
> I'm somewhat of a struts newbie, but I have researched this
> problem through
> all available means I'm aware of, and I now humbly turn to
> this list for
> assistance.
>
> I'm trying to use a Struts ActionForm (v 1.0.2) to deal with
> a situation
> where I don't know the number of radio button groups until run-time.
>
> For example, imagine a table where every row is some product a company
> sells, and there is a column with a yes/no radio button
> group. I need the
> yes/no decision for every product, but the product list is
> dynamic and not
> known until runtime.
>
> I tried to eliminate half of my problem by generating the input page
> through old fashion means rather than using  tags.
> Instead, I've tried using iteration to get resulting HTML in
> each row of
> my table that looks like this:
>
> 
> 
>
> and then of course I increment the counter, so 1 becomes 2 on the next
> row, and so on and so on...
>
> I've setup the ActionForm used in the page I post to like this:
>
> private String[] decision= {};
> public void setDecision(String decision[])
> public String getDecision(int i)
> public String[] getDecision()
>
> However, as Struts populates the form it generates a
> BeanUtils.populate
> error. I checked out the source code, and while I see a line
> that checkes
> for the "[" in the name, it doesn't appear to do anything with this
> information.
>
> And remember, these are radio buttons, so each row of my
> table needs a
> unique name in order for the radio buttons to work as
> desired.  I can't
> give them ALL the same name, or making a decisino on one row
> would undo
> my decision on any other row.
>
> Any ideas how I can do this sort of thing without simply
> bypassing the use
> of the ActionForm?
>
> Thanks in advance for any advice.
>
> BTW, the search of the struts-user list at
> http://www.mail-archive.com/struts-dev%40jakarta.apache.org/
> appears to be
> down.
> For the last several days I get an error message for any type
> of search.  I
> sent the error to [EMAIL PROTECTED] as instructed by
> the error
> message
> but I haven't heard anything yet.  Does anyone else see this problem?
>


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




RE: Using Data-source's with Struts

2002-07-24 Thread Robert Taylor

Shawn, our company had a need to access JDBC Connections
in web apps, stand alone applications, and for testing.

We have an object, ConnectionManager that operates in one
of three modes; dependent, stand alone, and manual. It
provides a simple API for accessing connections from
different data sources.

Each mode utilizes javax.naming.InitialContext so I can
look up the data sources in a standard manner.

Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup(dataSourceName);

In dependent mode, it assumes that an InitialContextFactory
has been defined in the System.properties and that the data
sources have been bound to the InitialContext by some other
object.

In stand alone mode, it sets the InitialContextFactory in
the System.properties, reads from a datasource-config.xml
file, creates the data sources, and binds them to the
InitialContext.

In manual mode, it sets the InitialContextFactory in
the System.properties and binds a set of default data sources to
the InitialContext. It also allows you to manually add data sources
to be bound to the InitialContext.

The ConnectionManager has 3 API calls for accessing Connections.

ConnectionManager.getConnection() // uses default dsn
ConnectionManager.getConnection(String dsn)
ConnectionManager.getConnection(String dsn,
String user, String pwd)

ConnectionManager is a singleton, and therefore is accessible
to any object via ConnectionManager.getInstance() so it can
be used in the web tier or business tier.

So you would basically have to subclass javax.naming.InitialContext
and javax.naming.spi.InitialContextFactory, and then write your
own object that manages data sources or Connections.

In your ServletContextListener, BootStrapServlet, main method, etc...

ConnectionManager cm = ConnectionManager.getInstance();
cm.setMode(mode);
cm.init();


So in your manager classes, you could just use do the following:

public void doSomething() throws Exception {

Connection conn = null;

try {

   // assume the ConnectionManager has been initialized
   conn = ConnectionManager.getConnection(dsn);

   // do something

} catch (SQLException sqle) {

   throw new Exception(sqle);

} finally {

   // commit or rollback connection

}


}

If you think about it, you will have to write your own caching/lookup
mechanism any ways, why not use standard Java APIs and if your move
to application server that support JNDI, then your code does not have
to change, you just configure your data sources differently.

Any servlet container that conforms to the Servelt2.3 specification
will provide a way for you to utilize InitialContext to look up
data sources.

Take a look at
http://java.sun.com/j2se/1.4/docs/api/javax/naming/Context.html

There are probably many ways to skin this cat, but this has worked for us.


robert


> -Original Message-
> From: Shaun Whyte [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 7:46 AM
> To: Struts Users Mailing List
> Subject: Using Data-source's with Struts
>
>
> I am trying to find a good way of using the data sources within a Stuts
> application.
>
> Supposing I have some Manager classes (like Facades); each of which have
> methods which perform a set of related use-cases, which abstract
> complexity
> of communicating with the beans.  The idea being that a Struts
> Action class
> would use the manager classes to perform the detailed operations, and
> therefore not only can a Stuts Action class use the facades (manager
> classes), but any other class which needs to perform the same
> functionality
> can also use them (e.g. it may not be an HTTP request).  My
> manager classes
> are created in a sub-class of ActionServlet and stored in the servlet
> context for use by Struts actions.  If it is not a Struts
> application which
> is not using them, then they are created in some other way.
>
> With regards to the DataSources, supposing my manager class needs to use
> data-source(s).  I don't want my manager classes to be tied to HTTP, so I
> don't want them to look in the ServletContext for the data
> source, which is
> where Struts stored them.
>
> Is the best solution, to create a List of the DataSource object in my
> sub-class of ActionServlet, then when I create the managers, just pass in
> the list for them to use.  That way, if another type of application which
> needs to use the managers (which isn't using Struts), it would create the
> DataSources itself, put them in a list, and, similar to my ActionServlet,
> pass them in to the manager classes when it created them.
>
> If anyone has any ideas for me, or if this is a good way of doing things,
> please reply.
>
> Also as a second question, I have been looking at the JavaDoc's
> for the JDBC
> Connection Pool (from bitmechanic.com), and cannot find a class which
> implements javax.sql.DataSource to use within Struts, is this correct?
>
> Many thanks!
>
> Shaun.
>
>
> --
> To unsubscribe, e-mail:


O'Reilly Struts Cover

2002-07-24 Thread Chuck Cavaness

For all of those guessing and suggesting earlier this week on an animal for 
the Struts book, I've finally seen it and it's NONE of the ones suggested 
so far. It's really good though and does the framework proud. I'm told that 
the book will be available for pre-orders this week or next and the cover 
will be visible then and no matter how much money you offer, I won't tell :)

Chuck


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




multi-value parameters

2002-07-24 Thread Remedia Filippo

How to manage multi-value request parameters ?
Thanks
Filippo


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




Number of Radio button groups not known until run-time

2002-07-24 Thread Bensman, Jeff [EESUS]

I'm somewhat of a struts newbie, but I have researched this problem through
all available means I'm aware of, and I now humbly turn to this list for
assistance.

I'm trying to use a Struts ActionForm (v 1.0.2) to deal with a situation
where I don't know the number of radio button groups until run-time.
 
For example, imagine a table where every row is some product a company
sells, and there is a column with a yes/no radio button group. I need the
yes/no decision for every product, but the product list is dynamic and not
known until runtime. 

I tried to eliminate half of my problem by generating the input page
through old fashion means rather than using  tags.
Instead, I've tried using iteration to get resulting HTML in each row of
my table that looks like this: 




and then of course I increment the counter, so 1 becomes 2 on the next
row, and so on and so on... 

I've setup the ActionForm used in the page I post to like this: 

private String[] decision= {};
public void setDecision(String decision[]) 
public String getDecision(int i)
public String[] getDecision()

However, as Struts populates the form it generates a BeanUtils.populate
error. I checked out the source code, and while I see a line that checkes
for the "[" in the name, it doesn't appear to do anything with this 
information.

And remember, these are radio buttons, so each row of my table needs a 
unique name in order for the radio buttons to work as desired.  I can't
give them ALL the same name, or making a decisino on one row would undo
my decision on any other row.

Any ideas how I can do this sort of thing without simply bypassing the use
of the ActionForm?

Thanks in advance for any advice.

BTW, the search of the struts-user list at 
http://www.mail-archive.com/struts-dev%40jakarta.apache.org/ appears to be
down.
For the last several days I get an error message for any type of search.  I
sent the error to [EMAIL PROTECTED] as instructed by the error
message
but I haven't heard anything yet.  Does anyone else see this problem?



RE: How to stuff the form bean into the (new) request???

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

Hey,
Just use the setAttribute() method of the session or request.  Check out the
API at: http://java.sun.com/products/servlet/2.2/javadoc/index.html

I hope this helps.


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



-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 7:55 AM
To: [EMAIL PROTECTED]
Subject: How to stuff the form bean into the (new) request???


Subject: How to stuff the form bean into the (new) request???
From: "Xero" <[EMAIL PROTECTED]>
 ===
Can somebody show me how to stuff a form bean into a new request or session
that come from a previous form.  Kinda like a '3 step registration senario'.

Thanks



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: how can I invoke a Tile Definition directly from the browser

2002-07-24 Thread Cedric Dumoulin



[EMAIL PROTECTED] wrote:

>Thanks again Cedric ;-)
>
>btw ... any idea when beta2 will be released ?
>
  as soon as possible ;-)

>  
>



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




Re: Not necessary to specify Tiles plugin in struts-config.xml?

2002-07-24 Thread Cedric Dumoulin


  You are right. The initialization strategy is only needed if you use 
definitions from a centralized file. Otherwise, you don't need any 
initialization.
All of this is now explained in Struts pages:
http://jakarta.apache.org/struts/userGuide/dev_tiles.html

  Cedric

David M. Karr wrote:

>>"Cedric" == Cedric Dumoulin <[EMAIL PROTECTED]> writes:
>>
>>
>
>Cedric>   Hi,
>
>Cedric>   The prefer way to enable Tiles in Struts1.1 is now to specify the Tiles
>Cedric> plugin in each struts-config. If you do that, you don't need to specify 
>the
>Cedric> TilesRequestProcessor and the ActionComponentServlet.
>
>Cedric>   For backward compatibility, the old methods to initialize Tiles still 
>working
>Cedric> (i.e: ActionComponentServlet + TilesRequestProcessor). Using such methods 
>will
>Cedric> generate some warning messages incitating you to use the new methods.
>
>Curious.  I'm not initializing Tiles in any way.  My JSP page uses a
>"tiles:insert" wrapping some "put"s with specified content, and my layout page
>uses "tiles:insert" and "tiles:getAsString" elements.  All of this works fine.
>I don't see any warnings.  Perhaps the initialization strategies are only
>necessary if you use definitions and definition references?
>
>  
>



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




Urgent: Loading message resources from Database

2002-07-24 Thread Rajesh P

Hi,
Can anybody give me the steps to fetch the message resources from a
database table rather than from a .properties file.
Please do help.
Thanks in advance,
Regards,
Rajesh

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




  1   2   >