RE: keeping the old debate open...

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

23 bugs... ooo, sounds close to beta 2 =)

Just a big thank you to all those who are solving bugs.


Regards,
Daniel

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:37 AM
To: [EMAIL PROTECTED]
Subject: RE: keeping the old debate open...



Okay, if I do that and further refine it by:

All SEVERITY except enhancement
Versions 1.1b1, Nightly Build, Unknown

I am down to 23 bugs.  Is this an accurate representation of what has to
happen before the next beta release?   Are Enhancements planned to be
done before the next beta?

Saying there are 23 known bugs to be fixed sounds much better for the
project than including all the enhancement requests too!







-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:09 PM
To: struts-user
Subject: RE: keeping the old debate open...




On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 11 Jul 2002 10:55:14 -0400
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: keeping the old debate open...
>
>
> I cant get more than 15 bugs to be displayed and half of those are
> enhancements...
> On the summary page I can see a bunch, but under a query forget it!
>

As you might imagine :-), I have a saved query on Bugzilla to select
Struts bug reports.  As of a few seconds ago, it finds 92 of them (many
enhancements, many bugs against 1.0.x, and a few outstanding against
1.1).

The search criteria I use:
- Status = UNCONFIRMED, NEW, ASSIGNED, REOPENED
- Program = Struts

For reference, our bug tracking system (for all Jakarta and
Xml.apache.org
projects) is at:

  http://nagoya.apache.org/bugzilla/

Craig



>
>
>
>
> -Original Message-
> From: Kevin.Bedell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 10:18 AM
> To: struts-user
> Subject: Re: keeping the old debate open...
>
>
>
>
>
>
> > just a question about how open-source projects are managed at
> > apache's : how do you know you run out of bugs to fix ? what's the
way
> the
> > projects are tested ? thanks, since my boss wonders about
open-source
> and
> > fears it a bit...
>
> One of fundamental advantages of Open Source is that finding bugs
> generally
> occurs much faster. Plus, as a user you have direct access to the bug
> tracking system (bugzilla, in this case at
> http://nagoya.apache.org/bugzilla/ ).
>
> There are currently 90 open bugs for Struts. How do I know this? I
just
> looked - it's on-line for everyone to see. If you find a bug, you can
> add
> one yourself and someone with appropriate rights in bugzilla will have
> to
> address it before it dissapears - it's an extremely 'open book'
approach
> that no vendor would dream of giving you. I've worked for software
> companies and we would NEVER have opened our bug lists - our
competitors
> would have printed them out and used them against us in sales calls.
>
> Eric Raymond, in his essay "The Cathedral and the Bazaar" says that
> ``Given
> enough eyeballs, all bugs are shallow.'' And, "at least, that they
turn
> shallow pretty quickly when exposed to a thousand eager co-developers
> pounding on every single new release".
>
> This is why Linux is more stable than NT and Apache dominates the web
> server market - it's not because it's free, it's because it's BETTER
and
> FREER of BUGS. If I were your boss, I'd worry more about the quality
of
> commercial software than I would about open source.
>
>
> If your manager is concerned about using Open Source becuase of
software
> quality, then get them a copy of Eric's book: The Cathedral and the
> Bazaar
> - it's a very short and easy read.
>
>
> The Cathedral and the Bazaar is available at either:
>
>on-line free:
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/
>
>   - or -
>
>   from Amazon:
>
http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=
sr_8_1/103-4271210-7048648
>
>
> The discussion about Open Source projects and debugging is at:
>
>
>
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.h
tml
>
>
> Best of luck,
>
> Kevin
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Error - Resouce Bundle error ?

2002-07-11 Thread Radhakrishnan R

I deployed the strorefront sample application on Tomcat 4.03. I am getting
the following message while accessing from
the browser.

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE

Any ideas?

Thanks in advance



Re: Using Reset to Load Drop Downs?

2002-07-11 Thread Adam Hardy

I don't have any reluctance to use another action in the action's xml 
input parameter - it had just never occurred to me.

It's going to double the size of my struts-config.xml though.

And if you're keeping the stuff in the session, then you're occasionally 
going to get orphaned lists - but I guess that's not a huge issue.

Adam

Jesse Alexander (KADA 11) wrote:
> Hi,
> 
> I usually do it within an action called to prepare a form I want to show.
> Instead of forwarding to FORM_B from ACTION_A processing the input from FORM_A
> I forward to ACTION_B_PREPARE setting up all FORM_B needs and then from there
> go to FORM_B. I can now add the contents of the collections for the dropdowns
> to the session. When I process FORM_B and realize that this form is completely
> processed I can remove the specigfic objects from the session.
> 
> I know there is some reluctance against this action-to-action forwarding, but
> I think it is an elegant solution to have an action per form (ACTION_B and
> ACTION_B_PREPARE can be united, called from 2 different action-mappings).
> I find that preparing the FORM_B-content in ACTION_A creates a dependency
> that does not please me...
> 
> hope this helps
> Alexander
> 
> -Original Message-
> From: Graham Lounder [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 8. Juli 2002 20:47
> To: Struts Users Mailing List
> Subject: Using Reset to Load Drop Downs?
> 
> 
> Hell All,
> 
> I'm having a small problem with loading my drop downs after a validation
> error (since my action is not being called again).  It is recomended/good
> practice to load my drop downs in the reset method of the form?  Is it
> possible?  I would load them once my application starts, but I need to
> modify the list before it is displayed.
> 
> Any Ideas?
> Graham
> 
> 
>   Graham Lounder
>   Java Developer
>   Spatial Components Division
>   CARIS
>   264 Rookwood Ave
>   Fredericton NB E3B-2M2
>   Office 506 462-4218
>   Fax506 459-3849
>   [EMAIL PROTECTED]
>   http://www.spatialcomponents.com
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




Re: DynaBeans, DynaClass, DynaMen

2002-07-11 Thread Thorbjoern Ravn Andersen

[EMAIL PROTECTED] skrev:

>...anyone remember DynaMen?  
>
>Anyhow...  I got a Dynabean mechanism working that builds a DynaBean 
>based on the metadata of a SQL result set, populates and array of the 
>little buggers and passes it back to me.  For displaying I have a tag 
>library that does not like a call to get('name') as the field name.   
>What is the best way to get around this?
>
I wrote an AnonyBeans package which uses BCEL to generate beans on the 
fly based on a ResultSet.  It is alpha code but works for me, and is 
usable anywhere where you need a real traditional bean, but where you do 
not want to serialize it or  use its type in Java source.

Is this interesting?

-- 
  Thorbjørn Ravn Andersen http://biobase.dk/~tra
  Scandiatransplant, Skejby Hospital
  Brendstrupgaardsvej, Entrance 3
  DK-8200 Århus N +45 89 49 53 01




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




BeanUtils.populate with native types

2002-07-11 Thread Developer

Apparently BeanUtils.populate chokes with native type properties.  Is there a way to 
handle that other than change all the Model beans attributes to use Objects?

Thank you.



RE: FormFile/DiskFile and form validation/redisplay during file upload

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

Charles,

>Also, it does not appear that the original filename is guaranteed to be
supplied either

FormFile has a method getFileName() which returns you the filename (without
any path). Trying to obtain the client's path is not possible from an mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 10:09 PM
To: '[EMAIL PROTECTED]'
Cc: Scalio, Jim; Spyker, Jason
Subject: FormFile/DiskFile and form validation/redisplay during file
upload


Hi All

I've searched the list for this issue, and only found one thread that was
related (pre-setting the file value), but didn't really address this issue.

I have a form with a file input as well as other inputs (assume they are
metadata associated with the file).

If the user enters a path to a file and submits, and my validation checks on
the other inputs return ActionErrors for those inputs, the form is
redisplayed but the file value is not retained.

If I view the source, I see



So it looks like DiskFile needs a toString() implemented that returns this
path. BUT, I think this is not going to be as easy to fix as it sounds. The
DiskFile class only has the original filename and the full server side path,
but not the original client side path.

Am I missing something, or does anyone know how I can get the full client
side path to the file? I scrounged around the upload source a bit, but can't
see where this would be done. Also, it does not appear that the original
filename is guaranteed to be supplied either ( see
http://www.ietf.org/rfc/rfc1867.txt)

Oh, I am running the nightly snapshot (20020711) to get past other file
upload problems under weblogic 7.0.

Thanks
charles





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




RE: Struts + MVC Philosophical question

2002-07-11 Thread Ade Barkah

Ummm, no. The Model can insulate (nay, even represent!) error
conditions as well as (or even better than) the controller. :)

Allowing the View to "write" to the Model is a (very) bad idea,
but letting the View "read" from the Model is a good idea.

regards,
-Ade


-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts + MVC Philosophical question


My favorite reason for insulating the view from the model is because
otherwise, you could encounter errors in the middle of serving a page and
the users would see a half-finished page.  With insulation (via controller),
you can make sure that all data retrieval by a page is foolproof.  When you
don't have web pages that start going to the browser before they are totally
done being generated, you don't have to worry about this problem.


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




Re: [ANNOUNCE] Scioworks Camino v2.0

2002-07-11 Thread John Yu



Support for Validator is one of planned features in v2.1.
Stay tuned. :-)


At 09:15 am 11-07-2002 -0400, you wrote:
>How about support for Tiles & Validator?
>
>- Original Message -
>From: "John Yu" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, July 11, 2002 6:46 AM
>Subject: [ANNOUNCE] Scioworks Camino v2.0
>
>
> > Dear Struts Users,
> >
> > We are pleased to announce the release of Scioworks Camino v2.0, a visual
> > tool for Struts application development.
> >
> > You can download Camino v2.0 from:
> >
> >http://www.scioworks.net/servlets/Redirect?pid=15&dp=2
> >
> > What's new in v2.0:
> > * Supports Struts 1.1 features - Manages multiple sub-apps on multiple
> > Storyboards, declarative exception handling, dynamic FormBeans, etc.
> >
> > * Enhanced Zoomable Storyboards - Manages each sub-app on its own
> > Storyboard with cross sub-application connectivities. Supports zooming,
> > snap-to-grid, auto-alignment and multiple segements paths.
> >
> > * Built-in JSP source editor with syntax-highlighting - Automatic
> > two-way synchronization between the editors and the Storyboards.
> >
> > * Auto file synchronization - Detects external modifications of the
>JSPs.
> >
> > * Inspector and Cross Referencing Tool - Allows quick viewing and
> > modifying attributes of the elements and provide powerful
>cross-referencing
> > facility.
> >
> > * Enhanced Code Generator Wizard - Supports different generated code
> > styles of FormBean and Action classes to suit your need.
> >
> > * Enhanced JSP Parser - Revised and more forgiving on non-standard
>HTML
> > syntax.
> >
> > * Revised User Inteface
> >
> > * Expanded XML Character Encoding Support - Allows customized setting.
> >
> > * Supports both JVM 1.4 and JVM 1.3.
> >
> >
> > Sincerely,
> > --
> > Scioworks Technologies - Camino Team
> >

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com  m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"


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




Validating DynaBeans

2002-07-11 Thread James Turner

More Dynabean stuff.

Looking over the new form-property DynaBean stuff in the struts config 
file, it strikes me that the one thing that would make it work seamlessly 
for 90% of all forms I ever code would be to allow the individual 
properties to have validation functions rather than require a validation 
function for the bean at as a whole.

For example, I could define a user login form as such:





Then, in FormValidators:

public static void requiredFieldValidate(String fieldValue, String 
fieldName, ActionErrors errors) {
if ((fieldValue == null) || (fieldValue.size() == 0)) {
ActionErrors.add(fieldName, new ActionError("validator.required.field"));  
 
}
  }

The nice thing about this is that you can reuse the same validation 
functions across many similar fields.

I know this is somewhat redundant with the DynaValidator stuff, but I'd 
like to be able to use my own validation
approach with DynaForms if I want.

Is there merit in this.  Have I yet again missed a an easier way of doing this?

James


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




Re: unsubscribe me

2002-07-11 Thread Joel Rees

In case no one has put you out of our misery yet, 

 To unsubscribe, e-mail:
<[EMAIL PROTECTED]>

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

Deepak Konale wrote

> Subject: unsubscribe me
>
> Deepak Konale

...

and Anjali Jain requested

> unsubscribe me
> 

...

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

Unfortunately, you have to do it yourself. It helps if you know what
account you signed up on, but you can find that out from the e-mail headers
if you look.

(If you still have problems, there are people to contact, but they are
pretty busy, too.)

-- 
Joel Rees <[EMAIL PROTECTED]>


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




Iterate with multicolumn data...

2002-07-11 Thread Michael Marrotte

What's the best way to display multicolumn (e.g. 2-column) lists in Struts,
with say Iterate?

Say I have the list a,b,c,d,e,f...  But, I want to display it as:
C1 C2
a  b
c  d
e  f
...

Any help is greatly appreciated.

Thanks,

--Michael Marrotte


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




Re: unsubscribe me

2002-07-11 Thread Joel Rees

> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > All your base are belong to us!!

Do you want my unclean, too?

> In A.D. 2002
> Struts v1.1 was beginning. 
> Craig: What happen ? 
> Ted: Somebody set up us the struts-config.xml 
> ActionServlet: We get incoming HTTP request
> Craig: What ! 
> ActionServlet: processPerform() 
> Craig: It's You !! 
> James: How are you gentlemen !! 
> James: All your action are belong to us 
> James: You are on the way to ActionForward
> Captain: What you say !! 
> 
> Oh, never mind.

It's Friday here. Is it Friday there, yet?

-- 
Joel Rees <[EMAIL PROTECTED]>


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




Re: Altering Configuration from command line

2002-07-11 Thread Duke Ronlund

Hi, 

On Fri, 2002-07-12 at 05:17, Brian Kirsch wrote:
> 
> Does any one know of a way to reload the struts-config.xml 
> from a command line interface with out rebooting the servlet container.

If you are using Tomcat 4 you can reload the web application using the
manager app that Craig pointed out.

>From the command line you could use the perl lwp lib or wget.

eg.

$ GET http://localhost/manager/reload?path=/appPath

Cheers

> 
> Can new features be added to a struts application ( action mappings, form beans, and 
> jsp templates ) through an automated command line script?
> 
> 
> Brian
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: where is ApplicationResources.properties defined?

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, bryan hansen wrote:

> Date: Thu, 11 Jul 2002 17:22:06 -0700 (PDT)
> From: bryan hansen <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: where is ApplicationResources.properties defined?
>
> I am running into similar problems, but I have
> verified that my ApplicationResources.properties file
> is infact included in my classes directory. I still
> can not find items that are listed in the properties
> file. Any suggestions?
>

Resource files are located just like classes are -- if you declare a fully
qualified name for them (the example app uses
"org.apache.struts.webapp.example.ApplicationResources"), then your
directory structure under /WEB-INF/classes has to reflect that.

If you put your resources in
/WEB-INF/classes/ApplicationResources.properties, then you should specify
just "ApplicationResources" as the location.

I'd also scan the log files from your servlet container for any error
messages that might point you at a problem accessing the resources.

> Bryan
>

Craig


>
> --- [EMAIL PROTECTED] wrote:
> >
> > The ApplicationResources.properties needs to be on
> > your classpath - which
> > implies being in the classes directoy.
> >
> > If your 'clean' operation wipes out the classes
> > directory, then your
> > 'build' operation needs to copy the .properties
> > files back again.
> >
> > For examples of how to do this, examine the example
> > applications delivered
> > with Struts. Also, review the build file for the web
> > applications (
> > build-webapp.xml) to see how the web app is built.
> >
> > If you have specific quesitons on the build process
> > and how the .properties
> > file(s) get copied, post them back to the list and
> > someone will help -
> >
> > Best of luck,
> >
> > Keivn
> >
> >
> >
> >
> >
> >
> >
> > Struts Newsgroup (@Basebeans.com)  > 07/11/2002 07:40:02 PM
> >
> > Please respond to "Struts Users Mailing List"
> ><[EMAIL PROTECTED]>
> >
> > To:[EMAIL PROTECTED]
> > cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
> > Subject:where is ApplicationResources.properties
> > defined?
> >
> >
> > Subject: where is ApplicationResources.properties
> > defined?
> > From: "David Chu" <[EMAIL PROTECTED]>
> >  ===
> > I am very confused on how to define a new path for
> > the file currently named
> > "ApplicationResources.properties"  I did not see any
> > definition in either
> > web.xml nor struts-confug.xml.   Specifically, is
> > there any way to define
> > it
> > to live outside of the "WEB-INF/classes" directory?
> > (this is because a
> > clean operation deletes my whole classes directory,
> > including the
> > ApplicationResources.properties file!)  Thanks very
> > much for the help.
> >
> >
> > --
> > -david
> >
> > --
> > David C. Chu
> > America Online
> > Network Tools Intern
> > --
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <
> > mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <
> > mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: where is ApplicationResources.properties defined?

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, Struts Newsgroup wrote:

> Date: Thu, 11 Jul 2002 16:40:02 -0700
> From: Struts Newsgroup <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: where is ApplicationResources.properties defined?
>
> Subject: where is ApplicationResources.properties defined?
> From: "David Chu" <[EMAIL PROTECTED]>
>  ===
> I am very confused on how to define a new path for the file currently named
> "ApplicationResources.properties"  I did not see any definition in either
> web.xml nor struts-confug.xml.   Specifically, is there any way to define it
> to live outside of the "WEB-INF/classes" directory?  (this is because a
> clean operation deletes my whole classes directory, including the
> ApplicationResources.properties file!)  Thanks very much for the help.
>

Struts uses the web application class loader to load the application
resources file for your application.  Therefore, it must either be in
/WEB-INF/classes, or inside a JAR file in /WEB-INF/lib.

In Struts 1.0, you configure the "class name" of the application resources
by using the "application" servlet initialization parameter on the
controller servlet.  In Struts 1.1, you configure this with a
 element in struts-config.xml instead.

In the Struts example application, the application resources are
initialized to "org.apache.struts.webapp.example.ApplicationResources",
which means that they must either exist as files named

  /WEB-INF/classes/org/apache/struts/webapp/example/ApplicationResources.properties

or be in a JAR file in /WEB-INF/lib with the pathname

  org/apache/struts/webapp/example/ApplicationResources.properties

My developemnet setup is similar to yours, in that a "clean" operation
deletes the entire web application output directory.  I solve this by
keeping the properties files for the application resources in the same
directory as the Java source code for the corresponding package (in this
case, the package is org.apache.struts.webapp.example).  Then, in my Ant
build script, I copy all the non-Java source files after compiling, like
this:

  
  


  

  


  






  

  

  

In my CVS repository, all the Java sources and properties files are under
"src", and all the JSP pages and WEB-INF stuff is under "web".  Thus, I
can reassemble the entire webapp under the "target" directory" any time I
want to.

If you're not using Ant, you should be able to set up something equivalent
to this with your preferred build tools.

>
> --
> -david

Craig


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




Re: where is ApplicationResources.properties defined?

2002-07-11 Thread bryan hansen

I am running into similar problems, but I have
verified that my ApplicationResources.properties file
is infact included in my classes directory. I still
can not find items that are listed in the properties
file. Any suggestions?

Bryan


--- [EMAIL PROTECTED] wrote:
> 
> The ApplicationResources.properties needs to be on
> your classpath - which
> implies being in the classes directoy.
> 
> If your 'clean' operation wipes out the classes
> directory, then your
> 'build' operation needs to copy the .properties
> files back again.
> 
> For examples of how to do this, examine the example
> applications delivered
> with Struts. Also, review the build file for the web
> applications (
> build-webapp.xml) to see how the web app is built.
> 
> If you have specific quesitons on the build process
> and how the .properties
> file(s) get copied, post them back to the list and
> someone will help -
> 
> Best of luck,
> 
> Keivn
> 
> 
> 
> 
> 
> 
> 
> Struts Newsgroup (@Basebeans.com)  07/11/2002 07:40:02 PM
> 
> Please respond to "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> 
> To:[EMAIL PROTECTED]
> cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
> Subject:where is ApplicationResources.properties
> defined?
> 
> 
> Subject: where is ApplicationResources.properties
> defined?
> From: "David Chu" <[EMAIL PROTECTED]>
>  ===
> I am very confused on how to define a new path for
> the file currently named
> "ApplicationResources.properties"  I did not see any
> definition in either
> web.xml nor struts-confug.xml.   Specifically, is
> there any way to define
> it
> to live outside of the "WEB-INF/classes" directory? 
> (this is because a
> clean operation deletes my whole classes directory,
> including the
> ApplicationResources.properties file!)  Thanks very
> much for the help.
> 
> 
> --
> -david
> 
> --
> David C. Chu
> America Online
> Network Tools Intern
> --
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

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




Re: where is ApplicationResources.properties defined?

2002-07-11 Thread Kevin . Bedell


The ApplicationResources.properties needs to be on your classpath - which
implies being in the classes directoy.

If your 'clean' operation wipes out the classes directory, then your
'build' operation needs to copy the .properties files back again.

For examples of how to do this, examine the example applications delivered
with Struts. Also, review the build file for the web applications (
build-webapp.xml) to see how the web app is built.

If you have specific quesitons on the build process and how the .properties
file(s) get copied, post them back to the list and someone will help -

Best of luck,

Keivn







Struts Newsgroup (@Basebeans.com) 

To:[EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:where is ApplicationResources.properties defined?


Subject: where is ApplicationResources.properties defined?
From: "David Chu" <[EMAIL PROTECTED]>
 ===
I am very confused on how to define a new path for the file currently named
"ApplicationResources.properties"  I did not see any definition in either
web.xml nor struts-confug.xml.   Specifically, is there any way to define
it
to live outside of the "WEB-INF/classes" directory?  (this is because a
clean operation deletes my whole classes directory, including the
ApplicationResources.properties file!)  Thanks very much for the help.


--
-david

--
David C. Chu
America Online
Network Tools Intern
--



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









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




where is ApplicationResources.properties defined?

2002-07-11 Thread @Basebeans.com

Subject: where is ApplicationResources.properties defined?
From: "David Chu" <[EMAIL PROTECTED]>
 ===
I am very confused on how to define a new path for the file currently named
"ApplicationResources.properties"  I did not see any definition in either
web.xml nor struts-confug.xml.   Specifically, is there any way to define it
to live outside of the "WEB-INF/classes" directory?  (this is because a
clean operation deletes my whole classes directory, including the
ApplicationResources.properties file!)  Thanks very much for the help.


--
-david

--
David C. Chu
America Online
Network Tools Intern
--



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




RE: tiles as attribute's value - is it possible ?

2002-07-11 Thread Martin Cooper

If  is really your own tag, then you could modify it to
alternatively take its value from the body, so you could use it like this:





If you still need to be able to use the 'value' attribute in other
situations, then you could have the tag look for the 'value' attribute, and
only use the body if the attribute is not present.

--
Martin Cooper


> -Original Message-
> From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 10:33 AM
> To: Struts Users Mailing List
> Subject: tiles as attribute's value - is it possible ?
> 
> 
>  
> Hi all.
>  
> I have some tag which I want it to be 
> like this:
>  
>  value=" name="title" />" />
>  
>  
> As I saw after some searching I saw 
> that some of you
> out there did it like this:
>  
> classname="java.lang.String" ignore="true"/>
>
>  
> Did somebody has manage to come up 
> with a cleaner
> idea?
> 


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




logon.title not found

2002-07-11 Thread bryan hansen

I am trying to take the struts-example.war and modify
it to start development. I have stripped out the stuff
that I needed to get going and am having a problem
with the ApplicationResources file. Inside the
login.jsp it specifies that it is looking for
login.title in a bean tag to display the title for
this page. Well I have included the
ApplicationResources.properties file in my war and
specified in the web.xml file the updated path to
where the file is located at and I still keep getting
hte error saying that the logon.title can not be
found.

javax.servlet.jsp.JspException: Missing message for
key logon.title

Is there something that I am overlooking on how to
include the this?

Thanks,

Bryan

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

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




RE: FormFile/DiskFile and form validation/redisplay during fileu ploa d

2002-07-11 Thread Martin Cooper

My understanding is that the 'value' field is ignored for security reasons,
and RFC 1867 does not require that the original file name be supplied for
those same security reasons.

--
Martin Cooper


> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 2:39 PM
> To: Struts Users Mailing List
> Subject: Re: FormFile/DiskFile and form validation/redisplay 
> during file
> uploa d
> 
> 
> I don't know of any browser which actually does anything with the 
> "value" field of an input type "file".  The fact that the html:file 
> tag puts a value in is just a side effect of FileTag extending 
> BaseFieldTag.
> 
> Sorry.  This isn't a Struts thing, it's a browser thing.  Try making 
> a static HTML form and setting some value in that field which makes 
> your browser pre-fill the field.  I just tried it on Mozilla 1.0/Mac 
> OS X, just to make sure I wasn't speaking too quickly, but the value 
> was completely ignored.
> 
> Joe
> 
> 
> >Am I missing something, or does anyone know how I can get 
> the full client
> >side path to the file? I scrounged around the upload source 
> a bit, but can't
> >see where this would be done. Also, it does not appear that 
> the original
> >filename is guaranteed to be supplied either ( see
> >http://www.ietf.org/rfc/rfc1867.txt)
> 
> -- 
> --
> * Joe Germuska{ [EMAIL PROTECTED] }
> "It's pitiful, sometimes, if they've got it bad. Their eyes get 
> glazed, they go white, their hands tremble As I watch them I 
> often feel that a dope peddler is a gentleman compared with the man 
> who sells records."
>   --Sam Goody, 1956
> tune in posse radio: 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




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




dynamic mapping to specific page

2002-07-11 Thread Mutiso, Anthony

Hi,

A the following action class configuration:

ListUsersAction -> EditUserAction(userId) -> ListUsersAction
-> CreateUserAction-> ListUsersAction


ListProjectsAction -> ProjectDetailAction(projectId) ->
AddUserToProjectAction(projectId) -> ProjectDetailAction(projectId)
 
-> ListProjectsActions

This works okay.

The issues arise when I try to create the following arragement

 ListProjectsAction -> ProjectDetailAction(projectId) ->
AddUserToProjectAction(projectId) -> ProjectDetailAction(projectId)
 
-> CreateUserAction  ->
ProjectDetailAction(projectId)
 
-> ListProjectsActions

If cannot define a mapping that would take the projectId into concideration.

Has anyone had call for a dynamic map to a page the was in the middle of a
work flow / request chain?

Thanks

Anthony


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




RE: Calls another action from one action?

2002-07-11 Thread I-Sampige, Srinivas

If I understood your question right you want to forward  to another from
within an action. You can do this like this (after reading the code pastings
read the explanation right at the bottom)-
-struts-config.xml-











--

---SingleSearchAction.java-
public org.apache.struts.action.ActionForward
performAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) throws
javax.servlet.ServletException, java.io.IOException 
{
//create a dummy light shortagerecord and put it in the record
container  
//contains at lease one element. This is for the RecordInfoTag to
work
//properly.
LightShortageRec  rec = new LightShortageRec();
Vector list =  new Vector();
list.addElement(rec);
RecordsContainer container = new RecordsContainer(list);
UserSessionInfo sessionInfo =
EtracSessionManager.getUserSessionInfo(request.getSession());
sessionInfo.setRecordsContainer(container);

//forward to the appropriate action to continue processing.
return mapping.findForward("retrieveLookAheadAction");
}
- 

What I am doing is, in the SingleSearchAction I am doing some preocessing
and then forwarding to the RetrieveLookaAheadRecordAction which is declared
as a forward in the declaration of the SingleSearchAction(see the
struts-config.xml).

thanks
Srinivas







-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Calls another action from one action?


Subject: Calls another action from one action?
From: "Hu Ji Rong" <[EMAIL PROTECTED]>
 ===
Hi,

As I described in my previous post: "Question on implementation with
frames", I have some links pointing to some pages in which all form fields
actually belong to the same domain object, eg. Airport has pages like
AirportDef, Notes, Remarks,...

So I will implement the links with one single action, AirportAction, with
parameters, the AirportAction forward to different pages based on the link
clicked. Normally, we have the submit button inside each page(form) to
submit the form. But I can't have that, the requirement is when the user
click other links, current form will be submited.(eg. when user has
completed the AirportDef page and click the next link to Notes, the form in
AirportDef must be submitted.)

So, when a link is clicked, there are two things the action need to do,
submit the current form and forward to next page. Since the forwarding is
done in AirportAction, while CRUD of AirportDef is done in AirportDefAction,
I have to call the function in AirportDefAction inside AirportAction before
forward to next page.

So the question is can I invoke another action inside one action? Or how to
achieve it?

JiRong



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: where can caching help performance?

2002-07-11 Thread Chappell, Simon P

Yeah. We wanted to do that, but we couldn't get the JMS to work between servers in 
JRun 4. We have it working in JBoss, but we're not certain that we'll get approval to 
go live with JBoss.

Simon

>-Original Message-
>From: Jamie M [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 4:14 PM
>To: Struts Users Mailing List
>Subject: RE: where can caching help performance?
>
>
>on the topic of cache freshness, one idea that I
>thought was interesting was something IBM was
>reportedly doing for the Olympics (or some other very
>high-traffic) website.  Changes to the data in the
>database triggered messages to the cache to invalidate
>certain cached objects.  This removes then need to
>check the freshness of the cached objects.
>
>I'm guessing at how they achieved this, but I'd expect
>they were using a trigger in db2 to send an MQ message
>(its very simple using these products).  Obviously
>this could be achieved with non-IBM components too.
>
>--
>jamie
>
>--- "Chappell, Simon P" <[EMAIL PROTECTED]>
>wrote:
>> We have found that the biggest bang for the buck
>> comes with pre-fetching data out of the database and
>> building our business objects ahead of time and
>> storing them in an in-memory cache. This means that
>> we have a very large cache (we estimate at least a
>> gig when we get fully ramped up for phase one and
>> more after that), but we get phenominal throughput
>> from it. Our reason for this was a maximum
>> processing time of 3.6 seconds and we knew that we
>> could not allow the database access to be the choke
>> point in the system.
>> 
>> Concerning cache freshness, we confirm with a simple
>> database query that the timestamp has not changed
>> since we cached the data. This simple check takes
>> less than 10ms, while the big multiple table joins
>> to build our main object can total between a quarter
>> and a half a second.
>> 
>> And of course we have database pooling active.
>> 
>> Hope this helps.
>> 
>> Simon
>> 
>>
>-
>> Simon P. Chappell
>> [EMAIL PROTECTED]
>> Java Programming Specialist 
>> www.landsend.com
>> Lands' End, Inc.  
>> (608) 935-4526
>> 
>> 
>> >-Original Message-
>> >From: Jamie J [mailto:[EMAIL PROTECTED]]
>> >Sent: Thursday, July 11, 2002 2:51 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: where can caching help performance?
>> >
>> >
>> >I'm wondering how people speed up their MVC
>> webapps.
>> >
>> >Taglibs for caching parts of jsps seem like a good
>> way
>> >of improving the speed of a web app (see:
>>
>>http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
>> > http://www.opensymphony.com/oscache/tags.html, the
>> >one that comes with weblogic etc).  
>> >
>> >e.g. (pseudo-tag):
>> >
>> >
>> >
>> >
>> >
>> >
>> >However they don't help much if you've got an MVC
>> app,
>> >because all your database access etc happens before
>> >the view of it is rendered, as opposed to as it is
>> >rendered  which is where these taglibs are useful. 
>> 
>> >
>> >Is the only option with MVC to cache the data?  The
>> >idea of caching the rendering of it too is
>> appealing -
>> >if they data hasn't changed, why keep re-rendering
>> it?
>> >(assuming everyone's view of it is the same).  It
>> is
>> >particularly appealing when you consider that it
>> can
>> >be done with no code changes - you can put a
>> (servlet
>> >2.3) filter in front of servlets/jsps you wanted
>> >cached.
>> >
>> >Its portal-style applications that I'm thinking of
>> >here, where you have discrete components of a page
>> >which all may involve some database (or other
>> >timeconsuming) activity, but the data doesn't
>> change
>> >often so the cached view of it can be updated every
>> >X-minutes or so.
>> >
>> >What approaches do people use to speed up such
>> apps? 
>> >Is caching really only an option in the model,
>> rather
>> >than the view? (assuming its not the whole page
>> you're
>> >caching).
>> >
>> >--
>> >jamie
>> >
>> >__
>> >Do You Yahoo!?
>> >Sign up for SBC Yahoo! Dial - First Month Free
>> >http://sbc.yahoo.com
>> >
>> >--
>> >To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail:
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:  
>> 
>> For additional commands, e-mail:
>> 
>> 
>
>
>__
>Do You Yahoo!?
>Sign up for SBC Yahoo! Dial - First Month Free
>http://sbc.yahoo.com
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Re: Struts + EJB ?

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, Adam Young wrote:

> Date: Thu, 11 Jul 2002 12:10:34 -0700
> From: Adam Young <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Re: Struts + EJB ?
>
> Seems to me the real solution would be to put a session layer between the
> entity and session beans.  The sesion layer would expose a serializable
> JavaBean that the form could wrap, and the session bean would be
> reponsible for building and processing the serialiable bean.  Trying to
> get struts to do all thios for you prevents you from interjecting any
> business logic into it at all.
>

On some apps where I've built a DAO layer (for example, with something
like a getCustomer(String customerId) method), I've built caching directly
into the DAO itself, and the used the DAO from the view layer to retrieve
needed information.  The nice thing about this is that it's transparent
to the code in the view layer that retrieves customers -- in fact, you can
do a simpleminded database lookup every time at first, and then implement
caching later if you find it to be a performance bottleneck, without ever
touching your view layer code.

>
> Adam Young
> Lead Programmer
> RTZ Associates
> 510-986-6700
>

Craig


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




Re: Display Tag Library

2002-07-11 Thread @Basebeans.com

Subject: Re: Display Tag Library
From: "Matt Raible" <[EMAIL PROTECTED]>
 ===
You can do this with a decorator.  I created my own ListWrapper.java
decorator class:


public class ListWrapper extends TableDecorator {
 /**
  * Creates a new Wrapper decorator who's job is to reformat some of the
  * data located in our forms.
  */

 public ListWrapper() {
  super();
 }

 /**
  *  Returns an xhtml-compliant checkbox used to select multiple rows
  */
 public String getAssetBox() {
  AssetForm form = (AssetForm) this.getObject();
  String assetId = form.getAssetId();

  return "";
 }
}


In my assetList.jsp:





"/>
   ... continue rest of columns

And the checkAll javascript function:

function checkAll(theForm) { // check all the checkboxes in the list
  for (var i=0;i wrote in message
news:[EMAIL PROTECTED]...
>
> You mentioned that you had a bunch of features You dont happen to
> have one that works with the multicheckbox control?  I want to add a
> delete checkbox to each row...
>
>
>
>
>
>
> -Original Message-
> From: lists [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 04, 2002 12:29 AM
> To: struts-user
> Subject: RE: Wow - Continued...
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > ---
> > The Display Tag library  ( http://edhill.its.uiowa.edu/display/ )
> > This was the best one I could find for it, although the documentation
> is
> > somewhat lacking and required some source diving to learn that I could
> > do grouping and such.  It supports Dynabeans and does all kinds of
> nice
> > looking things...  I could go into it all now, but if you go to the
> web
> > site its all already described.
>
> Ed had a BOF at JavaOne this year to sort of show how he came up with
> that
> tag lib and how it works. It's very straightforward, easy to use, and
> easy
> to modify. I've already added a bunch of features that I'm going to
> submit
> back to him, and they all were extremely easy to implement. If anybody
> has a
> table tag they are in love with that seems like it's better than this,
> I'd
> love to hear about it!
>
> Joe
>
>
> --
> 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: FormFile/DiskFile and form validation/redisplay during fileuploa d

2002-07-11 Thread Joe Germuska

I don't know of any browser which actually does anything with the 
"value" field of an input type "file".  The fact that the html:file 
tag puts a value in is just a side effect of FileTag extending 
BaseFieldTag.

Sorry.  This isn't a Struts thing, it's a browser thing.  Try making 
a static HTML form and setting some value in that field which makes 
your browser pre-fill the field.  I just tried it on Mozilla 1.0/Mac 
OS X, just to make sure I wasn't speaking too quickly, but the value 
was completely ignored.

Joe


>Am I missing something, or does anyone know how I can get the full client
>side path to the file? I scrounged around the upload source a bit, but can't
>see where this would be done. Also, it does not appear that the original
>filename is guaranteed to be supplied either ( see
>http://www.ietf.org/rfc/rfc1867.txt)

-- 
--
* Joe Germuska{ [EMAIL PROTECTED] }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
--Sam Goody, 1956
tune in posse radio: 

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




RE: Re: Struts + EJB ?

2002-07-11 Thread Adam Young

Seems to me the real solution would be to put a session layer between the
entity and session beans.  The sesion layer would expose a serializable
JavaBean that the form could wrap, and the session bean would be
reponsible for building and processing the serialiable bean.  Trying to
get struts to do all thios for you prevents you from interjecting any
business logic into it at all.


Adam Young
Lead Programmer
RTZ Associates
510-986-6700


-Original Message-
From: "Brian Topping" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Wed, 10 Jul 2002 19:36:02 -0400
Subject: RE: Re: Struts + EJB ?

> > -Original Message-
> > From: Manfred Wolff [mailto:[EMAIL PROTECTED]]
> > Subject: AW: Re: Struts + EJB ?
> > 
> > I use Struts, Tomcat, JBoss, XDoclett, PostgreSQL, Ant, Log4J 
> > in a 5 "person
> > year" project (not large but not small also) and it works really
> fine.
> 
> Manfred,
> 
> Are you using Xdoclet  tags?  If so, could you explain how
> you
> are using them with complex forms that manipulate many beans?  So far,
> I have
> been using the simple case of a single entity bean mapping to a single
> form,
> but this doesn't scale to more complex forms.  
> 
> Last night I was considering changes to Xdoclet allowing for a single
> form
> name to be referenced by multiple entity classes, and the form that is
> generated would have value objects for all of these classes in a
> containment
> therein.  Then, for every method-level @struts:form-field tag, the
> corresponding encapsulation would be generated into the form object. 
> The
> encapsulation would simply be a call-through to the correct class and
> method
> of the contained value objects.  If the FormAction is considered as a
> part of
> the controller, the pattern is maintained.
> 
> But your email has me considering that this might encourage bad design,
> that
> in fact the form should be sent in a valueobject down to a session, and
> have
> the session deal with the business logic of how to manage the form
> contents.
> This would imply that your designs are using @struts:form-field tags in
> the
> session object and having it do all of the entity manipulation.
> 
> Interested in your thoughts...
> 
> Brian
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 



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




locating DTD when upload an xml file

2002-07-11 Thread Yi-Xiong Zhou

Dear helper, 

I am using Digester to parse an xml file from web upload. The DTD file is
also in the same directory of the xml file and specified in the xml file as
. 

Could anyone tell me the best way to handle this problem? 

One way I think about is to upload the DTD file and save it somewhere in the
application directory. This directory should be specified in
ApplicationResources.PROPERTIES file. Then upload the xml file and parse it
with the saved DTD file. Could anyone tell me how to set the directory to
the parser so that the parser will know where to look for the DTD file? I
also need to know how to save the DTD files in struts to a given path. 

Thanks. 

Yi-Xiong


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




RE: unsubscribe me

2002-07-11 Thread Nelson, Laird

> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> All your base are belong to us!!

In A.D. 2002
Struts v1.1 was beginning. 
Craig: What happen ? 
Ted: Somebody set up us the struts-config.xml 
ActionServlet: We get incoming HTTP request
Craig: What ! 
ActionServlet: processPerform() 
Craig: It's You !! 
James: How are you gentlemen !! 
James: All your action are belong to us 
James: You are on the way to ActionForward
Captain: What you say !! 

Oh, never mind.

--
Laird J. Nelson
Electronic Channel Group, Fidelity eBusiness
* (508) 357-3142
* [EMAIL PROTECTED]  
* [EMAIL PROTECTED]  

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




RE: unsubscribe me

2002-07-11 Thread James Mitchell

Never!!!

All your base are belong to us!!

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

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






> -Original Message-
> From: Anjali Jain [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 9:14 AM
> To: Struts Users Mailing List
> Subject: unsubscribe me
>
>
> unsubscribe me
>
> NIIT Technologies 'Trust Us to Find the Way'. For details visit
> our website
> http://www.niit.com
>
> ___NOTICE
> This electronic mail transmission contains confidential
> information intended
> only for the person(s) named.  Any use, distribution, copying or
> disclosure
> by any other person is strictly prohibited. If you received this
> transmission in error, please notify the sender by reply e-mail and then
> destroy the message.  Opinions, conclusions, and other information in this
> message that do not relate to the official business of NIIT shall be
> understood to be neither given nor endorsed by NIIT When addressed to NIIT
> clients, any information contained in this e-mail is subject to the terms
> and conditions in the governing client contract.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: Altering Configuration from command line

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, Brian Kirsch wrote:

> Date: Thu, 11 Jul 2002 13:59:06 -0700
> From: Brian Kirsch <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> Subject: RE: Altering Configuration from command line
>
> Thanks for the responses,
> I did see the reload feature of the ActionServlet.
>

And it's not going to work in 1.1 anyway.

> However, we are looking to avoid going through an http interface to do the reload.
> For security reasons we want the reload functionality to only be run
> from the local system console.
>

That's pretty easy to deal with, using security constraints or adding a
request filter that only accepts HTTP requests to the manager webapp from
127.0.0.1.  See the section on "Request Filters":

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html

> We also want a way if possible to add new classes (Action, FormBean,
> Business Logic) with out rebooting the server and have the ActionServlet
> recognized them as well.
>

This is why it became pointless for Struts to attempt to act like a
container -- there's nothing you can do to force the recognition of new
classes in any portable way.  It's much better to let the container do
this, because it already knows how to load and unload webapps dynamically.

> The goal is to be able to alter / upgrade our struts web application features
> with out requiring downtime.
>

Not a problem (depending, of course, on your app server's capabilities).

>
> Any suggestions?
>

If you're using Tomcat, my suggestion stands.  If you're using some other
server, check out it's capabilities for dynamic webapp reloading
(including appropriate security precautions).

> Thanks,
> Brian Kirsch
>

Craig


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




RE: where can caching help performance?

2002-07-11 Thread Jamie M

on the topic of cache freshness, one idea that I
thought was interesting was something IBM was
reportedly doing for the Olympics (or some other very
high-traffic) website.  Changes to the data in the
database triggered messages to the cache to invalidate
certain cached objects.  This removes then need to
check the freshness of the cached objects.

I'm guessing at how they achieved this, but I'd expect
they were using a trigger in db2 to send an MQ message
(its very simple using these products).  Obviously
this could be achieved with non-IBM components too.

--
jamie

--- "Chappell, Simon P" <[EMAIL PROTECTED]>
wrote:
> We have found that the biggest bang for the buck
> comes with pre-fetching data out of the database and
> building our business objects ahead of time and
> storing them in an in-memory cache. This means that
> we have a very large cache (we estimate at least a
> gig when we get fully ramped up for phase one and
> more after that), but we get phenominal throughput
> from it. Our reason for this was a maximum
> processing time of 3.6 seconds and we knew that we
> could not allow the database access to be the choke
> point in the system.
> 
> Concerning cache freshness, we confirm with a simple
> database query that the timestamp has not changed
> since we cached the data. This simple check takes
> less than 10ms, while the big multiple table joins
> to build our main object can total between a quarter
> and a half a second.
> 
> And of course we have database pooling active.
> 
> Hope this helps.
> 
> Simon
> 
>
-
> Simon P. Chappell
> [EMAIL PROTECTED]
> Java Programming Specialist 
> www.landsend.com
> Lands' End, Inc.  
> (608) 935-4526
> 
> 
> >-Original Message-
> >From: Jamie J [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, July 11, 2002 2:51 PM
> >To: [EMAIL PROTECTED]
> >Subject: where can caching help performance?
> >
> >
> >I'm wondering how people speed up their MVC
> webapps.
> >
> >Taglibs for caching parts of jsps seem like a good
> way
> >of improving the speed of a web app (see:
>
>http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
> > http://www.opensymphony.com/oscache/tags.html, the
> >one that comes with weblogic etc).  
> >
> >e.g. (pseudo-tag):
> >
> >
> >
> >
> >
> >
> >However they don't help much if you've got an MVC
> app,
> >because all your database access etc happens before
> >the view of it is rendered, as opposed to as it is
> >rendered  which is where these taglibs are useful. 
> 
> >
> >Is the only option with MVC to cache the data?  The
> >idea of caching the rendering of it too is
> appealing -
> >if they data hasn't changed, why keep re-rendering
> it?
> >(assuming everyone's view of it is the same).  It
> is
> >particularly appealing when you consider that it
> can
> >be done with no code changes - you can put a
> (servlet
> >2.3) filter in front of servlets/jsps you wanted
> >cached.
> >
> >Its portal-style applications that I'm thinking of
> >here, where you have discrete components of a page
> >which all may involve some database (or other
> >timeconsuming) activity, but the data doesn't
> change
> >often so the cached view of it can be updated every
> >X-minutes or so.
> >
> >What approaches do people use to speed up such
> apps? 
> >Is caching really only an option in the model,
> rather
> >than the view? (assuming its not the whole page
> you're
> >caching).
> >
> >--
> >jamie
> >
> >__
> >Do You Yahoo!?
> >Sign up for SBC Yahoo! Dial - First Month Free
> >http://sbc.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

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




RE: Altering Configuration from command line

2002-07-11 Thread Brian Kirsch

Thanks for the responses,
I did see the reload feature of the ActionServlet.

However, we are looking to avoid going through an http interface to do the reload.
For security reasons we want the reload functionality to only be run
from the local system console.

We also want a way if possible to add new classes
(Action, FormBean, Business Logic) with out rebooting the server and have the 
ActionServlet recognized them as well. 

The goal is to be able to alter / upgrade our struts web application features
with out requiring downtime. 


Any suggestions?

Thanks,
Brian Kirsch



-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 1:46 PM
To: Struts Users Mailing List
Subject: RE: Altering Configuration from command line




> -Original Message-
> From: Brian Kirsch [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 2:18 PM
> To: Struts Users Mailing List
> Subject: Altering Configuration from command line
>
>
>
> Does any one know of a way to reload the struts-config.xml
> from a command line interface with out rebooting the servlet container.
>

Have you looked into the reload action that comes with the Struts
configuration file? I know it is there under 1.0.2, and I've made great use
of it during development to refresh the container after making config file
changes.


> Can new features be added to a struts application ( action
> mappings, form beans, and
> jsp templates ) through an automated command line script?
>
>
> Brian
>





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


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




RE: where can caching help performance?

2002-07-11 Thread Jacob Hookom


-Original Message-
From: Jamie J [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 2:51 PM
To: [EMAIL PROTECTED]
Subject: where can caching help performance?

What approaches do people use to speed up such apps? 
Is caching really only an option in the model, rather
than the view? (assuming its not the whole page you're
caching).



I've used the OSCache tags heavily on my site along side action
components with MVC.

All views presume using the cache, but for each action, a success (on
mutate) it forwards to a separate "cache-killer" page, and then forwards
back to the view.  That way, I can remove/add/modify caching at the JSP
level, separate from what the actions do.

I've approached all of the content as being "struts heavy", yet easy to
maintain.  I compensate for this through caching which cuts repeated
page delivery by about a 3rd of the time required.

-jake

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


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




RE: Altering Configuration from command line

2002-07-11 Thread Mark Nichols



> -Original Message-
> From: Brian Kirsch [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 2:18 PM
> To: Struts Users Mailing List
> Subject: Altering Configuration from command line
>
>
>
> Does any one know of a way to reload the struts-config.xml
> from a command line interface with out rebooting the servlet container.
>

Have you looked into the reload action that comes with the Struts
configuration file? I know it is there under 1.0.2, and I've made great use
of it during development to refresh the container after making config file
changes.


> Can new features be added to a struts application ( action
> mappings, form beans, and
> jsp templates ) through an automated command line script?
>
>
> Brian
>





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




Re: Altering Configuration from command line

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, Brian Kirsch wrote:

> Date: Thu, 11 Jul 2002 12:17:41 -0700
> From: Brian Kirsch <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Altering Configuration from command line
>
>
> Does any one know of a way to reload the struts-config.xml
> from a command line interface with out rebooting the servlet container.
>
> Can new features be added to a struts application ( action mappings, form beans, and
> jsp templates ) through an automated command line script?
>

You should use your servlet container's capability to reload the Struts
web application.  For example, Tomcat supports this via the manager
webapp.

>
> Brian

Craig


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




RE: where can caching help performance?

2002-07-11 Thread wbchmura


Pretty good thanks!



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:41 PM
To: struts-user
Subject: RE: where can caching help performance?


Bill,

There are no docs that I know of to point you at. We designed this 
ourselves when we were given our requirements.

We have a backend Database subsystem that contains two sub-subsystems, 
one for caching and one for data access. The API for the Database 
subsystem always looks in the cache first and then if it cannot find 
what it needs, it goes to the data access and requests the data from the 
database.

Because we know what order our shipments are scheduled to be sent to the 
packing area we are able to intelligently cache the data in usage 
sequence. So we have a background DB cache thread that makes certain 
that we have the next hour or two's data cached and also takes care of 
flushing any used data in the cache that is more than an hour old. This 
gives us a very high hit rate on our cache.

How's that for an overview?

Simon

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 3:27 PM
>To: [EMAIL PROTECTED]
>Subject: RE: where can caching help performance?
>
>
>
>Hi Simmon,
>
>Can you point me at any docs on building the objects ahead of time and 
>caching them?
>
>Thanks
>
>Bill
>
>-Original Message-
>From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 4:07 PM
>To: struts-user
>Subject: RE: where can caching help performance?
>
>
>We have found that the biggest bang for the buck comes with 
>pre-fetching 
>data out of the database and building our business objects 
>ahead of time 
>and storing them in an in-memory cache. This means that we have a very 
>large cache (we estimate at least a gig when we get fully 
>ramped up for 
>phase one and more after that), but we get phenominal throughput from 
>it. Our reason for this was a maximum processing time of 3.6 
>seconds and 
>we knew that we could not allow the database access to be the choke 
>point in the system.
>
>Concerning cache freshness, we confirm with a simple database 
>query that 
>the timestamp has not changed since we cached the data. This simple 
>check takes less than 10ms, while the big multiple table joins 
>to build 
>our main object can total between a quarter and a half a second.
>
>And of course we have database pooling active.
>
>Hope this helps.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
>>-Original Message-
>>From: Jamie J [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, July 11, 2002 2:51 PM
>>To: [EMAIL PROTECTED]
>>Subject: where can caching help performance?
>>
>>
>>I'm wondering how people speed up their MVC webapps.
>>
>>Taglibs for caching parts of jsps seem like a good way
>>of improving the speed of a web app (see:
>>http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
>> http://www.opensymphony.com/oscache/tags.html, the
>>one that comes with weblogic etc).  
>>
>>e.g. (pseudo-tag):
>>
>>
>>
>>
>>
>>
>>However they don't help much if you've got an MVC app,
>>because all your database access etc happens before
>>the view of it is rendered, as opposed to as it is
>>rendered  which is where these taglibs are useful.  
>>
>>Is the only option with MVC to cache the data?  The
>>idea of caching the rendering of it too is appealing -
>>if they data hasn't changed, why keep re-rendering it?
>>(assuming everyone's view of it is the same).  It is
>>particularly appealing when you consider that it can
>>be done with no code changes - you can put a (servlet
>>2.3) filter in front of servlets/jsps you wanted
>>cached.
>>
>>Its portal-style applications that I'm thinking of
>>here, where you have discrete components of a page
>>which all may involve some database (or other
>>timeconsuming) activity, but the data doesn't change
>>often so the cached view of it can be updated every
>>X-minutes or so.
>>
>>What approaches do people use to speed up such apps? 
>>Is caching really only an option in the model, rather
>>than the view? (assuming its not the whole page you're
>>caching).
>>
>>--
>>jamie
>>
>>__
>>Do You Yahoo!?
>>Sign up for SBC Yahoo! Dial - First Month Free
>>http://sbc.yahoo.com
>>
>>--
>>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 



--
To unsubscribe, e-mail:   

For additional command

RE: where can caching help performance?

2002-07-11 Thread Chappell, Simon P

Bill,

There are no docs that I know of to point you at. We designed this ourselves when we 
were given our requirements.

We have a backend Database subsystem that contains two sub-subsystems, one for caching 
and one for data access. The API for the Database subsystem always looks in the cache 
first and then if it cannot find what it needs, it goes to the data access and 
requests the data from the database.

Because we know what order our shipments are scheduled to be sent to the packing area 
we are able to intelligently cache the data in usage sequence. So we have a background 
DB cache thread that makes certain that we have the next hour or two's data cached and 
also takes care of flushing any used data in the cache that is more than an hour old. 
This gives us a very high hit rate on our cache.

How's that for an overview?

Simon

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 3:27 PM
>To: [EMAIL PROTECTED]
>Subject: RE: where can caching help performance?
>
>
>
>Hi Simmon,
>
>Can you point me at any docs on building the objects ahead of time and 
>caching them?
>
>Thanks
>
>Bill
>
>-Original Message-
>From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 4:07 PM
>To: struts-user
>Subject: RE: where can caching help performance?
>
>
>We have found that the biggest bang for the buck comes with 
>pre-fetching 
>data out of the database and building our business objects 
>ahead of time 
>and storing them in an in-memory cache. This means that we have a very 
>large cache (we estimate at least a gig when we get fully 
>ramped up for 
>phase one and more after that), but we get phenominal throughput from 
>it. Our reason for this was a maximum processing time of 3.6 
>seconds and 
>we knew that we could not allow the database access to be the choke 
>point in the system.
>
>Concerning cache freshness, we confirm with a simple database 
>query that 
>the timestamp has not changed since we cached the data. This simple 
>check takes less than 10ms, while the big multiple table joins 
>to build 
>our main object can total between a quarter and a half a second.
>
>And of course we have database pooling active.
>
>Hope this helps.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
>>-Original Message-
>>From: Jamie J [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, July 11, 2002 2:51 PM
>>To: [EMAIL PROTECTED]
>>Subject: where can caching help performance?
>>
>>
>>I'm wondering how people speed up their MVC webapps.
>>
>>Taglibs for caching parts of jsps seem like a good way
>>of improving the speed of a web app (see:
>>http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
>> http://www.opensymphony.com/oscache/tags.html, the
>>one that comes with weblogic etc).  
>>
>>e.g. (pseudo-tag):
>>
>>
>>
>>
>>
>>
>>However they don't help much if you've got an MVC app,
>>because all your database access etc happens before
>>the view of it is rendered, as opposed to as it is
>>rendered  which is where these taglibs are useful.  
>>
>>Is the only option with MVC to cache the data?  The
>>idea of caching the rendering of it too is appealing -
>>if they data hasn't changed, why keep re-rendering it?
>>(assuming everyone's view of it is the same).  It is
>>particularly appealing when you consider that it can
>>be done with no code changes - you can put a (servlet
>>2.3) filter in front of servlets/jsps you wanted
>>cached.
>>
>>Its portal-style applications that I'm thinking of
>>here, where you have discrete components of a page
>>which all may involve some database (or other
>>timeconsuming) activity, but the data doesn't change
>>often so the cached view of it can be updated every
>>X-minutes or so.
>>
>>What approaches do people use to speed up such apps? 
>>Is caching really only an option in the model, rather
>>than the view? (assuming its not the whole page you're
>>caching).
>>
>>--
>>jamie
>>
>>__
>>Do You Yahoo!?
>>Sign up for SBC Yahoo! Dial - First Month Free
>>http://sbc.yahoo.com
>>
>>--
>>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




Display Tag Library

2002-07-11 Thread wbchmura


You mentioned that you had a bunch of features You dont happen to 
have one that works with the multicheckbox control?  I want to add a 
delete checkbox to each row...






-Original Message-
From: lists [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 12:29 AM
To: struts-user
Subject: RE: Wow - Continued...


> -Original Message-
> From: [EMAIL PROTECTED]
> ---
> The Display Tag library  ( http://edhill.its.uiowa.edu/display/ )
> This was the best one I could find for it, although the documentation 
is
> somewhat lacking and required some source diving to learn that I could
> do grouping and such.  It supports Dynabeans and does all kinds of 
nice
> looking things...  I could go into it all now, but if you go to the 
web
> site its all already described.

Ed had a BOF at JavaOne this year to sort of show how he came up with 
that
tag lib and how it works. It's very straightforward, easy to use, and 
easy
to modify. I've already added a bunch of features that I'm going to 
submit
back to him, and they all were extremely easy to implement. If anybody 
has a
table tag they are in love with that seems like it's better than this, 
I'd
love to hear about it!

Joe


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




RE: where can caching help performance?

2002-07-11 Thread wbchmura


Hi Simmon,

Can you point me at any docs on building the objects ahead of time and 
caching them?

Thanks

Bill

-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:07 PM
To: struts-user
Subject: RE: where can caching help performance?


We have found that the biggest bang for the buck comes with pre-fetching 
data out of the database and building our business objects ahead of time 
and storing them in an in-memory cache. This means that we have a very 
large cache (we estimate at least a gig when we get fully ramped up for 
phase one and more after that), but we get phenominal throughput from 
it. Our reason for this was a maximum processing time of 3.6 seconds and 
we knew that we could not allow the database access to be the choke 
point in the system.

Concerning cache freshness, we confirm with a simple database query that 
the timestamp has not changed since we cached the data. This simple 
check takes less than 10ms, while the big multiple table joins to build 
our main object can total between a quarter and a half a second.

And of course we have database pooling active.

Hope this helps.

Simon

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


>-Original Message-
>From: Jamie J [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 2:51 PM
>To: [EMAIL PROTECTED]
>Subject: where can caching help performance?
>
>
>I'm wondering how people speed up their MVC webapps.
>
>Taglibs for caching parts of jsps seem like a good way
>of improving the speed of a web app (see:
>http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
> http://www.opensymphony.com/oscache/tags.html, the
>one that comes with weblogic etc).  
>
>e.g. (pseudo-tag):
>
>
>
>
>
>
>However they don't help much if you've got an MVC app,
>because all your database access etc happens before
>the view of it is rendered, as opposed to as it is
>rendered  which is where these taglibs are useful.  
>
>Is the only option with MVC to cache the data?  The
>idea of caching the rendering of it too is appealing -
>if they data hasn't changed, why keep re-rendering it?
>(assuming everyone's view of it is the same).  It is
>particularly appealing when you consider that it can
>be done with no code changes - you can put a (servlet
>2.3) filter in front of servlets/jsps you wanted
>cached.
>
>Its portal-style applications that I'm thinking of
>here, where you have discrete components of a page
>which all may involve some database (or other
>timeconsuming) activity, but the data doesn't change
>often so the cached view of it can be updated every
>X-minutes or so.
>
>What approaches do people use to speed up such apps? 
>Is caching really only an option in the model, rather
>than the view? (assuming its not the whole page you're
>caching).
>
>--
>jamie
>
>__
>Do You Yahoo!?
>Sign up for SBC Yahoo! Dial - First Month Free
>http://sbc.yahoo.com
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




RE: html:errors

2002-07-11 Thread wbchmura


I've been struggling lately with one of the "methodologies" practice of 
not progamming for the future, but coming back and refactoring when you 
need to do that.

Much self beating going on...

-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:09 PM
To: struts-user
Subject: RE: html:errors


True, putting the html in the resources file does cut down a little bit 
on
customization, but sometimes it's nice.  I'm doing an entire application 
on
my own, so I don't really have to worry about what other programmers 
will
need to do.  I know it fulfills my needs just fine, so I have no
reservations about putting the html in the resources file.

I know exactly what you mean about the "best practices".  Sometimes they 
are
much more trouble than they are worth.  If what I do gets the job done 
well,
it doesn't have to be elegant.

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



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: html:errors


If you have the HTML in the resources file, you are stuck with that font 

across the whole application I would think.  For a form or something its 

not bad because you are only going to use that error in one place.  But 
with general errors or messages, you may want the information to be 
displayed differently depending what page its being displayed on.

of course after reading and trying to implement best practices for the 
past two months in struts, I am starting to wonder if a "Just do it / 
damn the torpedos" approach is not a bad idea!  Do it the quickest, 
fastest way.

-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 2:10 PM
To: struts-user
Subject: RE: html:errors


Yeah, that's what I do.  I make the font part of the header/footer, as 
well
as tags for a list.  Then the individual error messages are list items.  

It
creates a very nice display.  Some consider it bad practice to use html 
in
your properties file, but others such as myself don't have a problem 
with
it.

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


-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: html:errors


Subject: Re: html:errors
From: Eric Rizzo <[EMAIL PROTECTED]>
 ===
[EMAIL PROTECTED] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources 
file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




RE: html:errors

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

True, putting the html in the resources file does cut down a little bit on
customization, but sometimes it's nice.  I'm doing an entire application on
my own, so I don't really have to worry about what other programmers will
need to do.  I know it fulfills my needs just fine, so I have no
reservations about putting the html in the resources file.

I know exactly what you mean about the "best practices".  Sometimes they are
much more trouble than they are worth.  If what I do gets the job done well,
it doesn't have to be elegant.

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



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: html:errors


If you have the HTML in the resources file, you are stuck with that font 
across the whole application I would think.  For a form or something its 
not bad because you are only going to use that error in one place.  But 
with general errors or messages, you may want the information to be 
displayed differently depending what page its being displayed on.

of course after reading and trying to implement best practices for the 
past two months in struts, I am starting to wonder if a "Just do it / 
damn the torpedos" approach is not a bad idea!  Do it the quickest, 
fastest way.

-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 2:10 PM
To: struts-user
Subject: RE: html:errors


Yeah, that's what I do.  I make the font part of the header/footer, as 
well
as tags for a list.  Then the individual error messages are list items.  
It
creates a very nice display.  Some consider it bad practice to use html 
in
your properties file, but others such as myself don't have a problem 
with
it.

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


-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: html:errors


Subject: Re: html:errors
From: Eric Rizzo <[EMAIL PROTECTED]>
 ===
[EMAIL PROTECTED] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources 
file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: where can caching help performance?

2002-07-11 Thread Chappell, Simon P

We have found that the biggest bang for the buck comes with pre-fetching data out of 
the database and building our business objects ahead of time and storing them in an 
in-memory cache. This means that we have a very large cache (we estimate at least a 
gig when we get fully ramped up for phase one and more after that), but we get 
phenominal throughput from it. Our reason for this was a maximum processing time of 
3.6 seconds and we knew that we could not allow the database access to be the choke 
point in the system.

Concerning cache freshness, we confirm with a simple database query that the timestamp 
has not changed since we cached the data. This simple check takes less than 10ms, 
while the big multiple table joins to build our main object can total between a 
quarter and a half a second.

And of course we have database pooling active.

Hope this helps.

Simon

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


>-Original Message-
>From: Jamie J [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 11, 2002 2:51 PM
>To: [EMAIL PROTECTED]
>Subject: where can caching help performance?
>
>
>I'm wondering how people speed up their MVC webapps.
>
>Taglibs for caching parts of jsps seem like a good way
>of improving the speed of a web app (see:
>http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
> http://www.opensymphony.com/oscache/tags.html, the
>one that comes with weblogic etc).  
>
>e.g. (pseudo-tag):
>
>
>
>
>
>
>However they don't help much if you've got an MVC app,
>because all your database access etc happens before
>the view of it is rendered, as opposed to as it is
>rendered  which is where these taglibs are useful.  
>
>Is the only option with MVC to cache the data?  The
>idea of caching the rendering of it too is appealing -
>if they data hasn't changed, why keep re-rendering it?
>(assuming everyone's view of it is the same).  It is
>particularly appealing when you consider that it can
>be done with no code changes - you can put a (servlet
>2.3) filter in front of servlets/jsps you wanted
>cached.
>
>Its portal-style applications that I'm thinking of
>here, where you have discrete components of a page
>which all may involve some database (or other
>timeconsuming) activity, but the data doesn't change
>often so the cached view of it can be updated every
>X-minutes or so.
>
>What approaches do people use to speed up such apps? 
>Is caching really only an option in the model, rather
>than the view? (assuming its not the whole page you're
>caching).
>
>--
>jamie
>
>__
>Do You Yahoo!?
>Sign up for SBC Yahoo! Dial - First Month Free
>http://sbc.yahoo.com
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




where can caching help performance?

2002-07-11 Thread Jamie J

I'm wondering how people speed up their MVC webapps.

Taglibs for caching parts of jsps seem like a good way
of improving the speed of a web app (see:
http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html,
 http://www.opensymphony.com/oscache/tags.html, the
one that comes with weblogic etc).  

e.g. (pseudo-tag):






However they don't help much if you've got an MVC app,
because all your database access etc happens before
the view of it is rendered, as opposed to as it is
rendered  which is where these taglibs are useful.  

Is the only option with MVC to cache the data?  The
idea of caching the rendering of it too is appealing -
if they data hasn't changed, why keep re-rendering it?
(assuming everyone's view of it is the same).  It is
particularly appealing when you consider that it can
be done with no code changes - you can put a (servlet
2.3) filter in front of servlets/jsps you wanted
cached.

Its portal-style applications that I'm thinking of
here, where you have discrete components of a page
which all may involve some database (or other
timeconsuming) activity, but the data doesn't change
often so the cached view of it can be updated every
X-minutes or so.

What approaches do people use to speed up such apps? 
Is caching really only an option in the model, rather
than the view? (assuming its not the whole page you're
caching).

--
jamie

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

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




RE: html:errors

2002-07-11 Thread wbchmura

If you have the HTML in the resources file, you are stuck with that font 
across the whole application I would think.  For a form or something its 
not bad because you are only going to use that error in one place.  But 
with general errors or messages, you may want the information to be 
displayed differently depending what page its being displayed on.

of course after reading and trying to implement best practices for the 
past two months in struts, I am starting to wonder if a "Just do it / 
damn the torpedos" approach is not a bad idea!  Do it the quickest, 
fastest way.

-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 2:10 PM
To: struts-user
Subject: RE: html:errors


Yeah, that's what I do.  I make the font part of the header/footer, as 
well
as tags for a list.  Then the individual error messages are list items.  
It
creates a very nice display.  Some consider it bad practice to use html 
in
your properties file, but others such as myself don't have a problem 
with
it.

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


-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: html:errors


Subject: Re: html:errors
From: Eric Rizzo <[EMAIL PROTECTED]>
 ===
[EMAIL PROTECTED] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources 
file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




Re: WEB-INF/web.xml hardcoded in initServlet() [struts 1.0.2]

2002-07-11 Thread Tim T. Young


Yes VAJ/WTE is a pain, but it is ok to have the same configuration in the
webapp file and the web.xml file.

Like this...


action
*.do
  

and the actual servlet definition, etc.   If you deploy WAS 3.5.x running
in compatibility mode you have to do the same kinda thing in that
environment.   Everything will work in the end though.

Tim




   
   
"Craig R.  
   
McClanahan"
   
   
   
   
   
07/11/2002To: Struts Users Mailing List 
<[EMAIL PROTECTED]>  
01:10 PM  cc:  
   
Please 
   
respond to 
   
"Struts Users  
   
Mailing List"Subject: Re: WEB-INF/web.xml hardcoded in 
initServlet() [struts 1.0.2]   
   
   
   
   



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






On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 11 Jul 2002 17:40:38 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: WEB-INF/web.xml hardcoded in initServlet() [struts 1.0.2]
>
> Hi !
>
> I am using Struts 1.0.2 under Visual Age for Java 3.5.3 and Websphere
Test
> Environment ; the architecture is not fully J2EE. In particular, WTE does
> not parse the WEB-INF/web.xml file but another file with a similar syntax
> (xxx_app.webapp) : this is where it finds the mappings for the servlets
> (*.jsp -> jasper ; *.do -> Struts for instance).
> Unfortunately, the WEB-INF/web.xml file is hardcoded in the initServlet()
> method of the ActionServlet class ; it seems that this method parses the
> file to store the mapping of the current servlet. This code, in my
> environment, fails, but since a catch Throwable is done, the process goes
> on. But, the ServletMapping variable has not been valued.
> So, my question is : though everything seems to be working all right, am
I
> to expect a problem because of this ? And, subsequently, why does the
> controller servlet need to know the original mapping, since this topic is
> handled by the servlet container ? Can I go on in this situation without
> fearing a future problem ?
>

Struts needs to know which mapping is used so that it can construct an
appropriate URL for  links where you specify the action path
only in the "action" parameter.  For example, if your struts-config.xml
says:

  ...
  
  ...

and your JSP says:

  

then Struts needs to know what extension to add (if you do extension
mapping) or what path prefix to stick on the front (if you are using path
mapping).

Struts is designed to operate only in containers that are compliant with
the specifications.  I'm not really interested in making accomodiations
for things like this -- I would suggest that WTE be changed to use the
standard deployment descriptors.

In the mean time, can you just ensure that the mapping is defined in both
files?



> Thanks for any explanation.
>
> Olivier Schmeltzer
>

Craig


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






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




Altering Configuration from command line

2002-07-11 Thread Brian Kirsch


Does any one know of a way to reload the struts-config.xml 
from a command line interface with out rebooting the servlet container.

Can new features be added to a struts application ( action mappings, form beans, and 
jsp templates ) through an automated command line script?


Brian

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




RE: ActionServlet question

2002-07-11 Thread Martin Cooper



> -Original Message-
> From: rainer juenger [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 10:10 AM
> To: Struts Users Mailing List
> Subject: Re: ActionServlet question
> 
> 
> Hi Craig,
> 
> thanks a lot for your pations!
> 
> > I think we are getting confused over terminology.  The 
> "action servlet" is
> > configured in web.xml, not struts-config.xml  elements.
> You are write! I am actually not talking about the 
> ActionServlet but about
> the Class Action that is a Servlet as well ;)

The Action class is *not* a servlet. Your Action classes are invoked by the
Struts request processor, which is part of the controller. In a typical
Struts application, ActionServlet is the only servlet involved.

> Sorry for not beeing clear!
> I think I understood the MVC concept.
> 
> Maybe it is more easy to make me understandable when I tell 
> what I want to
> do:
> I have a form that is using Struts. So all the validation and 
> stuff works
> just fine.
> After all required values where put in correctly the values 
> of the form are
> beeing copied into a model bean.
> (just like in the struts-example !)
> Next step is to forward to a .jsp page (as configured in the 
> same 
> )that gives a preview of
> inserted data. The data comes out of the model bean.
> The user has now two options: Save or Edit (Save makes the 
> persistance).
> When clicken Edit the user is beeing sent back to the input form.
> 
> I thougt all this is one action! And I need only one Controler Servlet
> (Action Class) for that. The options (Save or Edit) I wanted 
> to give via the
> Querystring to the Controler Servlet (/app/myinputform?action=save or
> /app/myinputform?action=edit). Then the Controler Servlet 
> would deside if
> the data should be written to the DB or the from should be 
> shown with the
> preveously inserted values.
> 
> Well, I found out that the code of the Controler Servelt is 
> only executet
> once. And that is after I correctly filled out my form!
> When I agan call the  via the 
> belonging path
> there is only the empty form an the Controler Servlet was not 
> proccessed.

It sounds like the  tag in your preview page is pointing directly
to your input page JSP, and not to your Struts action. If you go straight to
the page, then the Struts controller will not be involved, and your Action
class will not be invoked.

--
Martin Cooper


> 
> could I make my selve more clear???
> If not I sort of write a documentation of my little test app.
> 
> > Craig
> 
> thnks a lot for your help in advanc. I guess I am having a 
> still a problem
> in understanding how Struts works.
> Rainer
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




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




RE: Validator

2002-07-11 Thread David Winterfeldt

You can go to my site to.  I have older downloads and
revision notes posted.  The version 1.0 under the
downloads (same as July 2001 release) was the last
version developed with Struts 1.0, but you can get
some later versions working with a little more effort
(getting all the extra jars).  

http://home.earthlink.net/~dwinterfeldt/


You can look at the revision info to see the changes
between the posted jars.  And all current work is in
CVS with Struts and the Commons Validator.

http://home.earthlink.net/~dwinterfeldt/revision.html

David

--- [EMAIL PROTECTED] wrote:
> It would also be great if you could read my chapter
> on 
> the Validator and provide some feedback on how
> helpful 
> it was to you. You can download the draft chapter
> from 
> here:
> 
>
http://www.theserverside.com/resources/strutsreview.jsp
> 
> The perspective from someone new to it would be very
> 
> helpful, and hopefully it would help you as well!
> 
> Chuck
> 
> > Check this out...
> > 
> > http://home.earthlink.net/~dwinterfeldt/
> > 
> > -Original Message-
> > From: Chilukuri, Pratap N Mr USAREC
> > [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, July 09, 2002 12:19 PM
> > To: 'Struts Users Mailing List'
> > Subject: Validator
> > 
> > 
> > Hi,
> > 
> >   we are using struts 1.02 and want to know how to
> use validator with
> > this
> > version. I went to jakarta commons site to
> download
> > commons-validator.jar
> > and jakarta-oro.jar and could not find them and do
> i need to work on 1.1
> > release for validator to work? Any inputs would be
> appreciated.
> > 
> > --
> > 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!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




Re: Validator error

2002-07-11 Thread David Winterfeldt

I think you may have upgraded the Commons Validator
jar, but not Struts.  The SERVLET_CONTEXT_KEY was
removed from this class to try to completely separate
it from Struts and the web layer.  Try using the
Commons Validator that comes in the nightly download
for the version you are using.

David

--- "Chilukuri, Pratap N Mr USAREC"
<[EMAIL PROTECTED]> wrote:
> 
> I am getting "500 Servlet action:unable to service
> request: Servlet action
> threw the
>
exception:java.lang.NoSuchFieldError:org.apache.commons.validator.Validatior
> :field SERVLET_CONTEXT_KEY not found" if I validate
> my screen againt 2 date
> fields. 
> 
> The names match on the validation.xmlfile and the
> action form class. I have
> extended the action form class from validatorForm.
> Ichecked twice and am not
> sure what else to check. ANy ideas would be greatly
> appreciated and probably
> something stupid I must have done.
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

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




RE: html:errors

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

Yeah, that's what I do.  I make the font part of the header/footer, as well
as tags for a list.  Then the individual error messages are list items.  It
creates a very nice display.  Some consider it bad practice to use html in
your properties file, but others such as myself don't have a problem with
it.

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


-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: html:errors


Subject: Re: html:errors
From: Eric Rizzo <[EMAIL PROTECTED]>
 ===
[EMAIL PROTECTED] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: WEB-INF/web.xml hardcoded in initServlet() [struts 1.0.2]

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 11 Jul 2002 17:40:38 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: WEB-INF/web.xml hardcoded in initServlet() [struts 1.0.2]
>
> Hi !
>
> I am using Struts 1.0.2 under Visual Age for Java 3.5.3 and Websphere Test
> Environment ; the architecture is not fully J2EE. In particular, WTE does
> not parse the WEB-INF/web.xml file but another file with a similar syntax
> (xxx_app.webapp) : this is where it finds the mappings for the servlets
> (*.jsp -> jasper ; *.do -> Struts for instance).
> Unfortunately, the WEB-INF/web.xml file is hardcoded in the initServlet()
> method of the ActionServlet class ; it seems that this method parses the
> file to store the mapping of the current servlet. This code, in my
> environment, fails, but since a catch Throwable is done, the process goes
> on. But, the ServletMapping variable has not been valued.
> So, my question is : though everything seems to be working all right, am I
> to expect a problem because of this ? And, subsequently, why does the
> controller servlet need to know the original mapping, since this topic is
> handled by the servlet container ? Can I go on in this situation without
> fearing a future problem ?
>

Struts needs to know which mapping is used so that it can construct an
appropriate URL for  links where you specify the action path
only in the "action" parameter.  For example, if your struts-config.xml
says:

  ...
  
  ...

and your JSP says:

  

then Struts needs to know what extension to add (if you do extension
mapping) or what path prefix to stick on the front (if you are using path
mapping).

Struts is designed to operate only in containers that are compliant with
the specifications.  I'm not really interested in making accomodiations
for things like this -- I would suggest that WTE be changed to use the
standard deployment descriptors.

In the mean time, can you just ensure that the mapping is defined in both
files?



> Thanks for any explanation.
>
> Olivier Schmeltzer
>

Craig


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




Re: dynabeans as value objects in struts 1.0.X

2002-07-11 Thread Adolfo Miguelez


cheers Craig

>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: dynabeans as value objects in struts 1.0.X
>Date: Thu, 11 Jul 2002 09:10:35 -0700 (PDT)
>
>
>
>On Thu, 11 Jul 2002, Adolfo Miguelez wrote:
>
> > Date: Thu, 11 Jul 2002 13:33:24 +
> > From: Adolfo Miguelez <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: dynabeans as value objects in struts 1.0.X
> >
> >
> > Hi All,
> >
> > I quick question with a quick response. I have successfully tested to 
>create
> > value objects as dynabeans in Struts 1.1b1. Custom tags are able to 
>inspect
> > themselves dynabeans (from Commons - BeansUtils package).
> >
> > However, in production we still have Struts 1.0.2 and we planned 
>switching
> > only to Struts 1.1 when it be released.
> >
> > On other hand, we intend to implement a generic value object for all our
> > apps. From the reasons above, it seems that a dynabean based value 
>object
> > should be fine for Struts 1.0 applications.
> >
> > The question is: Does struts custom tags are able to inspect properly
> > dynabeans in Struts 1.0.2 as they are in Struts 1.1?
> >
>
>No, they don't.  The custom tags in 1.0.2 use the older version of
>BeanUtils and PropertyUtils that do not know what a DynaBean is.
>
>You can put commons-beanutils.jar into a 1.0.2 app and use dynabeans for
>your back end stuff.  It's just the Struts tags that will not recognize
>them.
>
> > Thanks in advance,
> >
> > Adolfo.
> >
>
>Craig
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>

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


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




Using the same Action for GET and POST?

2002-07-11 Thread @Basebeans.com

Subject: Using the same Action for GET and POST?
From: "George Su" <[EMAIL PROTECTED]>
 ===

Hi, I'm still trying to get up to speed on Struts, and I'm trying to set up
an edit form.

I'm wondering, is it possible to use the same action mapping (same jsp page,
action, actionform) to handle both the GET of the page and the POST?  I do
not want to access the jsp directly on the GET.

In other words, I want /action/edit?name=foo to call my action, which I call
EditAction.  In EditAction.perform(...), if request.getMethod() is GET, I
want to populate my ActionForm bean with some data correlating to parameter
'name', so that edit.jsp can access that data.  Then I want edit.jsp called.
The problem here is, it goes into an infinite loop because the page keeps
forwarding to itself.  How can I tell it to just include edit.jsp instead of
forwarding to it?

When the edit form posts (to itself) I call EditAction.perform(...) and
since request.getMethod() returns POST, I call my business logic bean to
save the data, and forward to another page.

Is it possible to do it this way?  Is this strategy poor design?  Any advice
greatly appreciated.

Thanks,
George
[EMAIL PROTECTED]

(I'm using Struts 1.0)

In web.xml, /action/* maps to ActionServlet.

In struts-config.xml:


 
 


In EditAction.java:

public ActionForward perform(ActionMapping   mapping,
 ActionForm  form,
 HttpServletRequest  request,
 HttpServletResponse response)
throws IOException, ServletException
{
if (request.getMethod().equals("GET")) {
return doGet(mapping, form, request, response);
}
if (request.getMethod().equals("POST")) {
// call business logic and then forward to home page
return doPost(mapping, form, request, response);
}
return super.perform(mapping, form, request, response);
}

public ActionForward doGet(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
{
String name = request.getParameter("name");
((EditForm)form).setName(name);
return mapping.findForward("edit");
}





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




Re: [jetty-support] Struts problem

2002-07-11 Thread Greg Wilkins


Eric,

The opinions that I have got on this matter have been split.
But Craigs point about 8.4 is good, so I will change the next
releases of Jetty.

I'll also ask the watchdog folks to add a test for it.

I assume from section 4.4 that the URI will also have to
be re-encoded so that getRequestURI continues to return
an un-decoded URI.

There will be a 4.1.B0 release with the change in tomorrow,
which will be merged into JBoss CVS head soon after.

I'll do a 4.0.5 release shortly as well.

It will take a week or two for the change to be included
in a stable JBoss release.

cheers



Eric Rizzo wrote:
> Greg Wilkins wrote:
> 
>>I think that the "path elements" refer to getContextPath,
>>getServletPath and getPathInfo.  I believe that getRequestURI
>>should always return the URI of the original request, unless
>>wrapped by a user.
>>
>>However!!!  Craig McClanahan know a thing or two about servlets
>>so I'll go do some checking again!
>>
>>Jetty used to change the getRequestURI result after a forward, but
>>we changed it.  From memory, I think that a watchdog test is checking for
>>this  but I'll check
> 
> 
> Some more information courtesy of Craig:
> 
> "Per Section 4.4 (servlet 2.3), the request path elements are context path,
> servlet path, and path info.  However, if you don't also change request
> URI on a forward, you violate the following paragraph (also in 8.4):
> 
>  "It is important to note that, except for URL encoding
>  differences, the following equation is always true:
> 
>  requestURI = contextPath + servletPath + pathInfo"
> 
> so there's no choice about updating requestURI as well."
> 
> 


-- 
Greg Wilkins<[EMAIL PROTECTED]>http://www.mortbay.com
Mort Bay Consulting Pty. Ltd. AU.+61(0)29977 2395
Mort Bay Consulting Limited. England UK. +44(0)7092063462


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




Re: [jetty-support] Struts problem

2002-07-11 Thread Eric Rizzo

Greg Wilkins wrote:
> 
> I think that the "path elements" refer to getContextPath,
> getServletPath and getPathInfo.  I believe that getRequestURI
> should always return the URI of the original request, unless
> wrapped by a user.
> 
> However!!!  Craig McClanahan know a thing or two about servlets
> so I'll go do some checking again!
> 
> Jetty used to change the getRequestURI result after a forward, but
> we changed it.  From memory, I think that a watchdog test is checking for
> this  but I'll check

Some more information courtesy of Craig:

"Per Section 4.4 (servlet 2.3), the request path elements are context path,
servlet path, and path info.  However, if you don't also change request
URI on a forward, you violate the following paragraph (also in 8.4):

 "It is important to note that, except for URL encoding
 differences, the following equation is always true:

 requestURI = contextPath + servletPath + pathInfo"

so there's no choice about updating requestURI as well."


-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


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




WEB-INF/web.xml hardcoded in initServlet() [struts 1.0.2]

2002-07-11 Thread olschmeltzer

Hi !

I am using Struts 1.0.2 under Visual Age for Java 3.5.3 and Websphere Test
Environment ; the architecture is not fully J2EE. In particular, WTE does
not parse the WEB-INF/web.xml file but another file with a similar syntax
(xxx_app.webapp) : this is where it finds the mappings for the servlets
(*.jsp -> jasper ; *.do -> Struts for instance).
Unfortunately, the WEB-INF/web.xml file is hardcoded in the initServlet()
method of the ActionServlet class ; it seems that this method parses the
file to store the mapping of the current servlet. This code, in my
environment, fails, but since a catch Throwable is done, the process goes
on. But, the ServletMapping variable has not been valued.
So, my question is : though everything seems to be working all right, am I
to expect a problem because of this ? And, subsequently, why does the
controller servlet need to know the original mapping, since this topic is
handled by the servlet container ? Can I go on in this situation without
fearing a future problem ?

Thanks for any explanation.

Olivier Schmeltzer





Les donnees et renseignements contenus dans ce message sont personnels, confidentiels 
et secrets. Ce message est adresse a l'individu ou l'entite dont les coordonnees 
figurent ci-dessus. Si vous n'etes pas le bon destinataire, nous vous demandons de ne 
pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de 
notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de 
votre systeme.

The information contained in this message is privileged, confidential, and protected 
from disclosure. This message is intended for the individual or entity adressed 
herein. If you are not the intended recipient, please do not read, copy, use or 
disclose this communication to others ;also please notify the sender by replying to 
this message, and then delete it from your system.


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




Really dynamic forms

2002-07-11 Thread olschmeltzer

Hi !

Contrary to DynaActionForm which are rather declarative forms than dynamic
forms, I have a need for building forms that are parametric. For instance,
the Internet user specifies the number of elements he requires, and the
system builds dynamically a JSP form containing as many fields as the given
number. For instance, for a trip, he gives the number of passengers (let's
say 3) and the next form he sees contains 3 fields named for instance
passengerName1, passengerName2 and passengerName3.
Since I don't know how many fields there will be, how can I design an
ActionForm handling this ? If I were to use a DynaActionForm, I would
nonetheless be compelled to specify the fields in the struts-config.xml
file.
Hope this makes sense.
Thanks for your help.

Olivier Schmeltzer






Les donnees et renseignements contenus dans ce message sont personnels, confidentiels 
et secrets. Ce message est adresse a l'individu ou l'entite dont les coordonnees 
figurent ci-dessus. Si vous n'etes pas le bon destinataire, nous vous demandons de ne 
pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de 
notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de 
votre systeme.

The information contained in this message is privileged, confidential, and protected 
from disclosure. This message is intended for the individual or entity adressed 
herein. If you are not the intended recipient, please do not read, copy, use or 
disclose this communication to others ;also please notify the sender by replying to 
this message, and then delete it from your system.


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




RE: keeping the old debate open...

2002-07-11 Thread wbchmura

Sure, I try to help where I can

-Original Message-
From: jholmes612 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 1:41 PM
To: struts-user
Subject: RE: keeping the old debate open...


That's correct.

Enhancements are just that.  They will not prevent
beta 2 from going out.  Once those 23 bugs are knocked
it's likely that beta 2 will be released.  If you have
time jump in and fix a bug or two and submit patches
and we'll be that much closer to beta 2 being ready.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- [EMAIL PROTECTED] wrote:
> 
> Okay, if I do that and further refine it by:
> 
> All SEVERITY except enhancement
> Versions 1.1b1, Nightly Build, Unknown
> 
> I am down to 23 bugs.  Is this an accurate
> representation of what has to 
> happen before the next beta release?   Are
> Enhancements planned to be 
> done before the next beta?
> 
> Saying there are 23 known bugs to be fixed sounds
> much better for the 
> project than including all the enhancement requests
> too!
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: craigmcc [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 12:09 PM
> To: struts-user
> Subject: RE: keeping the old debate open...
> 
> 
> 
> 
> On Thu, 11 Jul 2002 [EMAIL PROTECTED]
> wrote:
> 
> > Date: Thu, 11 Jul 2002 10:55:14 -0400
> > From: [EMAIL PROTECTED]
> > Reply-To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: RE: keeping the old debate open...
> >
> >
> > I cant get more than 15 bugs to be displayed and
> half of those are
> > enhancements...
> > On the summary page I can see a bunch, but under a
> query forget it!
> >
> 
> As you might imagine :-), I have a saved query on
> Bugzilla to select
> Struts bug reports.  As of a few seconds ago, it
> finds 92 of them (many
> enhancements, many bugs against 1.0.x, and a few
> outstanding against 
> 1.1).
> 
> The search criteria I use:
> - Status = UNCONFIRMED, NEW, ASSIGNED, REOPENED
> - Program = Struts
> 
> For reference, our bug tracking system (for all
> Jakarta and 
> Xml.apache.org
> projects) is at:
> 
>   http://nagoya.apache.org/bugzilla/
> 
> Craig
> 
> 
> 
> >
> >
> >
> >
> > -Original Message-
> > From: Kevin.Bedell
> [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 11, 2002 10:18 AM
> > To: struts-user
> > Subject: Re: keeping the old debate open...
> >
> >
> >
> >
> >
> >
> > > just a question about how open-source projects
> are managed at
> > > apache's : how do you know you run out of bugs
> to fix ? what's the 
> way
> > the
> > > projects are tested ? thanks, since my boss
> wonders about 
> open-source
> > and
> > > fears it a bit...
> >
> > One of fundamental advantages of Open Source is
> that finding bugs
> > generally
> > occurs much faster. Plus, as a user you have
> direct access to the bug
> > tracking system (bugzilla, in this case at
> > http://nagoya.apache.org/bugzilla/ ).
> >
> > There are currently 90 open bugs for Struts. How
> do I know this? I 
> just
> > looked - it's on-line for everyone to see. If you
> find a bug, you can
> > add
> > one yourself and someone with appropriate rights
> in bugzilla will have
> > to
> > address it before it dissapears - it's an
> extremely 'open book' 
> approach
> > that no vendor would dream of giving you. I've
> worked for software
> > companies and we would NEVER have opened our bug
> lists - our 
> competitors
> > would have printed them out and used them against
> us in sales calls.
> >
> > Eric Raymond, in his essay "The Cathedral and the
> Bazaar" says that
> > ``Given
> > enough eyeballs, all bugs are shallow.'' And, "at
> least, that they 
> turn
> > shallow pretty quickly when exposed to a thousand
> eager co-developers
> > pounding on every single new release".
> >
> > This is why Linux is more stable than NT and
> Apache dominates the web
> > server market - it's not because it's free, it's
> because it's BETTER 
> and
> > FREER of BUGS. If I were your boss, I'd worry more
> about the quality 
> of
> > commercial software than I would about open
> source.
> >
> >
> > If your manager is concerned about using Open
> Source becuase of 
> software
> > quality, then get them a copy of Eric's book: The
> Cathedral and the
> > Bazaar
> > - it's a very short and easy read.
> >
> >
> > The Cathedral and the Bazaar is available at
> either:
> >
> >on-line free:   
>
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/
> >
> >   - or -
> >
> >   from Amazon:
> > 
>
http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=sr_8_1/103-4271210-7048648
> >
> >
> > The discussion about Open Source projects and
> debugging is at:
> >
> >
> > 
>
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.html
> >
> >
> > Best of luck,
> >
> > Kevin
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> 

RE: keeping the old debate open...

2002-07-11 Thread James Holmes

That's correct.

Enhancements are just that.  They will not prevent
beta 2 from going out.  Once those 23 bugs are knocked
it's likely that beta 2 will be released.  If you have
time jump in and fix a bug or two and submit patches
and we'll be that much closer to beta 2 being ready.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- [EMAIL PROTECTED] wrote:
> 
> Okay, if I do that and further refine it by:
> 
> All SEVERITY except enhancement
> Versions 1.1b1, Nightly Build, Unknown
> 
> I am down to 23 bugs.  Is this an accurate
> representation of what has to 
> happen before the next beta release?   Are
> Enhancements planned to be 
> done before the next beta?
> 
> Saying there are 23 known bugs to be fixed sounds
> much better for the 
> project than including all the enhancement requests
> too!
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: craigmcc [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 12:09 PM
> To: struts-user
> Subject: RE: keeping the old debate open...
> 
> 
> 
> 
> On Thu, 11 Jul 2002 [EMAIL PROTECTED]
> wrote:
> 
> > Date: Thu, 11 Jul 2002 10:55:14 -0400
> > From: [EMAIL PROTECTED]
> > Reply-To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: RE: keeping the old debate open...
> >
> >
> > I cant get more than 15 bugs to be displayed and
> half of those are
> > enhancements...
> > On the summary page I can see a bunch, but under a
> query forget it!
> >
> 
> As you might imagine :-), I have a saved query on
> Bugzilla to select
> Struts bug reports.  As of a few seconds ago, it
> finds 92 of them (many
> enhancements, many bugs against 1.0.x, and a few
> outstanding against 
> 1.1).
> 
> The search criteria I use:
> - Status = UNCONFIRMED, NEW, ASSIGNED, REOPENED
> - Program = Struts
> 
> For reference, our bug tracking system (for all
> Jakarta and 
> Xml.apache.org
> projects) is at:
> 
>   http://nagoya.apache.org/bugzilla/
> 
> Craig
> 
> 
> 
> >
> >
> >
> >
> > -Original Message-
> > From: Kevin.Bedell
> [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 11, 2002 10:18 AM
> > To: struts-user
> > Subject: Re: keeping the old debate open...
> >
> >
> >
> >
> >
> >
> > > just a question about how open-source projects
> are managed at
> > > apache's : how do you know you run out of bugs
> to fix ? what's the 
> way
> > the
> > > projects are tested ? thanks, since my boss
> wonders about 
> open-source
> > and
> > > fears it a bit...
> >
> > One of fundamental advantages of Open Source is
> that finding bugs
> > generally
> > occurs much faster. Plus, as a user you have
> direct access to the bug
> > tracking system (bugzilla, in this case at
> > http://nagoya.apache.org/bugzilla/ ).
> >
> > There are currently 90 open bugs for Struts. How
> do I know this? I 
> just
> > looked - it's on-line for everyone to see. If you
> find a bug, you can
> > add
> > one yourself and someone with appropriate rights
> in bugzilla will have
> > to
> > address it before it dissapears - it's an
> extremely 'open book' 
> approach
> > that no vendor would dream of giving you. I've
> worked for software
> > companies and we would NEVER have opened our bug
> lists - our 
> competitors
> > would have printed them out and used them against
> us in sales calls.
> >
> > Eric Raymond, in his essay "The Cathedral and the
> Bazaar" says that
> > ``Given
> > enough eyeballs, all bugs are shallow.'' And, "at
> least, that they 
> turn
> > shallow pretty quickly when exposed to a thousand
> eager co-developers
> > pounding on every single new release".
> >
> > This is why Linux is more stable than NT and
> Apache dominates the web
> > server market - it's not because it's free, it's
> because it's BETTER 
> and
> > FREER of BUGS. If I were your boss, I'd worry more
> about the quality 
> of
> > commercial software than I would about open
> source.
> >
> >
> > If your manager is concerned about using Open
> Source becuase of 
> software
> > quality, then get them a copy of Eric's book: The
> Cathedral and the
> > Bazaar
> > - it's a very short and easy read.
> >
> >
> > The Cathedral and the Bazaar is available at
> either:
> >
> >on-line free:   
>
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/
> >
> >   - or -
> >
> >   from Amazon:
> > 
>
http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=sr_8_1/103-4271210-7048648
> >
> >
> > The discussion about Open Source projects and
> debugging is at:
> >
> >
> > 
>
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.html
> >
> >
> > Best of luck,
> >
> > Kevin
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 
> 
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> 

RE: keeping the old debate open...

2002-07-11 Thread wbchmura


Okay, if I do that and further refine it by:

All SEVERITY except enhancement
Versions 1.1b1, Nightly Build, Unknown

I am down to 23 bugs.  Is this an accurate representation of what has to 
happen before the next beta release?   Are Enhancements planned to be 
done before the next beta?

Saying there are 23 known bugs to be fixed sounds much better for the 
project than including all the enhancement requests too!







-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:09 PM
To: struts-user
Subject: RE: keeping the old debate open...




On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 11 Jul 2002 10:55:14 -0400
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: keeping the old debate open...
>
>
> I cant get more than 15 bugs to be displayed and half of those are
> enhancements...
> On the summary page I can see a bunch, but under a query forget it!
>

As you might imagine :-), I have a saved query on Bugzilla to select
Struts bug reports.  As of a few seconds ago, it finds 92 of them (many
enhancements, many bugs against 1.0.x, and a few outstanding against 
1.1).

The search criteria I use:
- Status = UNCONFIRMED, NEW, ASSIGNED, REOPENED
- Program = Struts

For reference, our bug tracking system (for all Jakarta and 
Xml.apache.org
projects) is at:

  http://nagoya.apache.org/bugzilla/

Craig



>
>
>
>
> -Original Message-
> From: Kevin.Bedell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 10:18 AM
> To: struts-user
> Subject: Re: keeping the old debate open...
>
>
>
>
>
>
> > just a question about how open-source projects are managed at
> > apache's : how do you know you run out of bugs to fix ? what's the 
way
> the
> > projects are tested ? thanks, since my boss wonders about 
open-source
> and
> > fears it a bit...
>
> One of fundamental advantages of Open Source is that finding bugs
> generally
> occurs much faster. Plus, as a user you have direct access to the bug
> tracking system (bugzilla, in this case at
> http://nagoya.apache.org/bugzilla/ ).
>
> There are currently 90 open bugs for Struts. How do I know this? I 
just
> looked - it's on-line for everyone to see. If you find a bug, you can
> add
> one yourself and someone with appropriate rights in bugzilla will have
> to
> address it before it dissapears - it's an extremely 'open book' 
approach
> that no vendor would dream of giving you. I've worked for software
> companies and we would NEVER have opened our bug lists - our 
competitors
> would have printed them out and used them against us in sales calls.
>
> Eric Raymond, in his essay "The Cathedral and the Bazaar" says that
> ``Given
> enough eyeballs, all bugs are shallow.'' And, "at least, that they 
turn
> shallow pretty quickly when exposed to a thousand eager co-developers
> pounding on every single new release".
>
> This is why Linux is more stable than NT and Apache dominates the web
> server market - it's not because it's free, it's because it's BETTER 
and
> FREER of BUGS. If I were your boss, I'd worry more about the quality 
of
> commercial software than I would about open source.
>
>
> If your manager is concerned about using Open Source becuase of 
software
> quality, then get them a copy of Eric's book: The Cathedral and the
> Bazaar
> - it's a very short and easy read.
>
>
> The Cathedral and the Bazaar is available at either:
>
>on-line free:   
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/
>
>   - or -
>
>   from Amazon:
> 
http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=sr_8_1/103-4271210-7048648
>
>
> The discussion about Open Source projects and debugging is at:
>
>
> 
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.html
>
>
> Best of luck,
>
> Kevin
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:   

> For additional commands, e-mail: 

>
>


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




tiles as attribute's value - is it possible ?

2002-07-11 Thread Arik Levin ( Tikal )

 
Hi all.
 
I have some tag which I want it to be like this:
 
" />
 
 
As I saw after some searching I saw that some of you
out there did it like this:
 
   
   
 
Did somebody has manage to come up with a cleaner
idea?



Re: Why not have tags specify simple field validation?

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 11 Jul 2002 13:10:16 -0400
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Why not have tags specify simple field validation?
>
> One of the key uses of ActionForm classes is to do field validation.
> Often, this validation is simple data-type checking, or verifying that
> fields are non-null.
>
> It seems like 80% of the validation tasks could be done by adding one or
> two simple optional parameters to form tags. This would allow the view
> to be more completely located in the JSPs, rather than have some
> presentation code be in the JSP and other presentation issues -- the
> validation -- be in the ActionForm. Putting as much of the view as
> possible in the JSP would more effectively separate developer roles, be
> better coupling, etc.
>
> Form tags could have simple optional parameters that do things like:
> o Specify that a tag value be non-null
> o Specify the field's "validation data type"
>
> Data type validators could be specified in the configuation file, in the
> tag handling code, or in special Java classes. The tags might look
> something like:
>
>  nullsallowed="false"/>
>
> This would specify that this field be validated under the "SSN" set of
> rules. In this case, the validation rules could check for the
> 999-99- format. If validation fails, the error would be stored and
> displayed as usual.
>
> You would only need a small library of such data type validation rules
> to cover most situations. For more sophisticated validation the
> programmer is free to code the "validate" routine in an ActionForm.
>

You probably want to take a look at the Validator Framework (standard
part of Struts 1.1, separately available for 1.0), which extends
this idea to a complete library of validations that you can declaratively
add to your forms, complete with the optional generation of client side
JavaScript to enforce the constraint on the client side if possible.

One difference from what you are suggesting is that the constraints are
declared in an external configuration file, rather than being embedded in
the page itself.  This fits my personal view of where the appropriate
separation of roles should be -- the business rules that are expressed in
validation constraints, ultimately, come from the model tier and not the
presentation tier, so they should be defined by those same folks.

Craig


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




Why not have tags specify simple field validation?

2002-07-11 Thread struts-user

One of the key uses of ActionForm classes is to do field validation. Often, this 
validation is simple data-type checking, or verifying that fields are non-null.

It seems like 80% of the validation tasks could be done by adding one or two simple 
optional parameters to form tags. This would allow the view to be more completely 
located in the JSPs, rather than have some presentation code be in the JSP and other 
presentation issues -- the validation -- be in the ActionForm. Putting as much of the 
view as possible in the JSP would more effectively separate developer roles, be better 
coupling, etc.

Form tags could have simple optional parameters that do things like:
o Specify that a tag value be non-null
o Specify the field's "validation data type"

Data type validators could be specified in the configuation file, in the tag handling 
code, or in special Java classes. The tags might look something like:



This would specify that this field be validated under the "SSN" set of rules. In this 
case, the validation rules could check for the 999-99- format. If validation 
fails, the error would be stored and displayed as usual.

You would only need a small library of such data type validation rules to cover most 
situations. For more sophisticated validation the programmer is free to code the 
"validate" routine in an ActionForm.

--
Sent via jApache.org

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




Re: ActionServlet question

2002-07-11 Thread rainer juenger

Hi Craig,

thanks a lot for your pations!

> I think we are getting confused over terminology.  The "action servlet" is
> configured in web.xml, not struts-config.xml  elements.
You are write! I am actually not talking about the ActionServlet but about
the Class Action that is a Servlet as well ;)
Sorry for not beeing clear!
I think I understood the MVC concept.

Maybe it is more easy to make me understandable when I tell what I want to
do:
I have a form that is using Struts. So all the validation and stuff works
just fine.
After all required values where put in correctly the values of the form are
beeing copied into a model bean.
(just like in the struts-example !)
Next step is to forward to a .jsp page (as configured in the same 
)that gives a preview of
inserted data. The data comes out of the model bean.
The user has now two options: Save or Edit (Save makes the persistance).
When clicken Edit the user is beeing sent back to the input form.

I thougt all this is one action! And I need only one Controler Servlet
(Action Class) for that. The options (Save or Edit) I wanted to give via the
Querystring to the Controler Servlet (/app/myinputform?action=save or
/app/myinputform?action=edit). Then the Controler Servlet would deside if
the data should be written to the DB or the from should be shown with the
preveously inserted values.

Well, I found out that the code of the Controler Servelt is only executet
once. And that is after I correctly filled out my form!
When I agan call the  via the belonging path
there is only the empty form an the Controler Servlet was not proccessed.

could I make my selve more clear???
If not I sort of write a documentation of my little test app.

> Craig

thnks a lot for your help in advanc. I guess I am having a still a problem
in understanding how Struts works.
Rainer




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




Re: Tiles fowarding from struts-config

2002-07-11 Thread Developer

Apparently this problem was fixed on the 20020711 nightly build.

Thank you.

- Original Message -
From: "Developer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 1:26 PM
Subject: Tiles fowarding from struts-config


Greetings,

I'm currently having difficulties forwarding to a definition from the config
files.  Is there anything I should be looking out for.

Struts 1.1nightly - 20020707, 20020708, 20020709, 20020710.
Tomcat 4.0.4, 4.1.7
I have the TilesRequestProcessor in struts-config.xml and the
ActionComponentServlet in the web.xml.

The funny thing is, that applicationg has been working with 1.1 before.  It
broke after I downloaded the latest build but I may have changed something
else as well.

I guess I'm looking for troubleshooting hints.

The error I get is a TOMCAT 404 request resource not found. and it put a "/"
in front of the definition although I don't have one in the config file.

Thank you.



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




RE: [ANNOUNCE] Easy Struts v0.4 for Eclipse / JBuilder

2002-07-11 Thread emmanuel.boudrant


 It's normal, i didn't update the web site coming soon. I make it this night ;)
Thanx,
-Emmanuel
  James Ward <[EMAIL PROTECTED]> a écrit : I tried to do an update from within 
Eclipse, but it doesn't seem to work? Any ideas?

BTW: Eclipse + EasyStruts is awesome!!! Thank you!

-James


> -Original Message-
> From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 4:48 AM
> To: Struts Users Mailing List
> Subject: [ANNOUNCE] Easy Struts v0.4 for Eclipse / JBuilder
> 
> Hi,
> 
> Easy Struts v0.4 is now out.
> 
> Provide a full support for JBuilder IDE.
> Provide a full support for Eclipse IDE.
> 
> > Changes in v0.4 (2002-07-11)
> - Support now for JBuilder IDE (without Resources
> Wizard).
> - Add runtime facility for JBuilder, no need
> removeStrutsJar opentool
> - Add confirm dialog before changing project
> classpath
> - Fix driver class validation in datasource wizard
> - Fix many bug and add improvements
> - New icons
> 
> > Documentation and website updates comming soon.
> 
> Donwload Easy Struts for Eclipse :
> 
> http://sourceforge.net/project/showfiles.php?group_id=54542&release_id=991
> 15
> 
> Donwload Easy Struts for JBuilder :
> 
> http://sourceforge.net/project/showfiles.php?group_id=54542&release_id=991
> 14
> 
> Project page :
> http://easystruts.sourceforge.net/
> http://sourceforge.net/projects/easystruts/
> 
> -Emmanuel
> 
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> --
> To unsubscribe, e-mail: > [EMAIL PROTECTED]>
> For additional commands, e-mail: > [EMAIL PROTECTED]>
> 


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



-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !



Re[2]: Should I bother to try and handle this with struts?

2002-07-11 Thread Rick Reumann

On Thursday, July 11, 2002, 12:22:57 PM, Eddie wrote:

EB> Use container-managed authentication.

Eddie, thanks for your info on container management but actually my
question really isn't about how to manage authentication. (I should
have been more clear).

It is how do you use Struts to generate form field names that will be
generated dynamically and then later have access to them to using an
Action Form or a configured Dynamic Action Form.

Let's change the whole scenario around and say I'm creating a page
that has a list of items and you have to select the favorite color of
each. For example:

car[ select options of colors to choose ]
house  [ select options of colors to choose ]
sofa   [ select options of colors to choose ]

Now the problem is that the items are generated dynamically so that
the application doesn't know until run time what these items will be.

Is there a way to have a Struts Action Form manage gather this kind of
information.

I was hoping to avoid when the above form would submit having to do
this in some business object using the request object:

//get List from db
//loop through list and during each iteration:
   String colorValue = request.getParameter( itemInList );
   //now update db with this value for this item
//continue loop

Maybe I have no choice. I'm just not clear how I can use a Struts form
to capture this dynamic list of items, since I can't configure the
fields beforehand.

Thanks for any more help

-- 
Rick

EB> Rick Reumann wrote:

>>I'm confused how I can/should handle this in Struts...
>>
>>What I need to build (and long story why) is a User Administration
>>utility and where I'm having trouble fitting this in with struts is in
>>regard to the following:
>>
>>Picture a case where you want to give user's certain roles based on
>>certain applications. So you'd have:
>>
>>BackofficeApp[ select options of possible roles ]
>>JoeBlowApp   [ select options of possible roles ]
>>DumbApp  [ select options of possible roles ]
>>
>>The problem is the list of applications is dynamic so I can't hard
>>code these values into a form bean or in my dynamicActionForm.
>>
>>Currently I'm planning on doing this an old fashioned way where after
>>submission I'll loop through the same dynamic list of applications and
>>pull up the request parameters based on the values I get back. So for
>>example somewhere I'd end up doing:
>>
>>//while loop through applications
>>String appValue = request.getParameter( appNameBasedOnCurrentLoopValue );
>>   //update db for this app name based on value
>>//continue loop
>>
>>Can I have a form bean gather all this data? Or should I just continue
>>to do it the way I'm doing it?
>>
>>Thanks for any comments/help.
>>
>>
>>


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




Re: struts and javascript document.write(...)

2002-07-11 Thread Virga

hi babs,
you could also use 'innerHTML', but it will not work in 'not-so-dhtml'
browser like netscape 4.7.x :-(
e.g.:
create a function to display the error message and call the function on your
validation script.

function displayError(theMessage) {
document.getElementById('error').innerHTML = theMessage;
}
function validateForm (theForm) {
   var error = false;
   if (theForm.username.value == "") error = true;
   if (error ) {
  displayError ('put your name please');
  return false;
   }
  else return true;
}

put id on  or  in your jsp page where you want to display it.
e.g.:
 
and..put onsubmit="return validateForm(this);" on your  tag.

hope it'll help

VR




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




RE: Problems running struts 1.1b1 with Jbuilder 6

2002-07-11 Thread andrew . cochrane

I'm using Tomcat 3.2.3 within JBuilder...

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 9:02 AM
To: Struts Users Mailing List
Subject: Re: Problems running struts 1.1b1 with Jbuilder 6




On Thu, 11 Jul 2002, emmanuel.boudrant wrote:

> Date: Thu, 11 Jul 2002 10:07:45 +0200 (CEST)
> From: emmanuel.boudrant <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Problems running struts 1.1b1 with Jbuilder 6
>
> Hi,
>
> Did you run your project under Tomcat 4 ?
> Struts 1.1 require Tomcat 4.
>

That should not be the case -- it should still run fine on a Servlet 2.2 /
JSP 1.1 container as well.

> -Emmanuel

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: html:errors

2002-07-11 Thread @Basebeans.com

Subject: Re: html:errors
From: Eric Rizzo <[EMAIL PROTECTED]>
 ===
[EMAIL PROTECTED] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


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




Re: AW: html:errors

2002-07-11 Thread @Basebeans.com

Subject: Re: AW: html:errors
From: Eric Rizzo <[EMAIL PROTECTED]>
 ===
[EMAIL PROTECTED] wrote:
> Yes I know. Probably my question was wrong.
> Can I use the  tag with some 
>  tags?
> like
> 
> 
>   Do Some stuff for errors.
> 

I use

<%@ page import="org.apache.struts.action.Action" %>

...


to render parts of the page that should not be shown if there are 
errors.  You could do the opposite with 

HTH,
Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


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




RE: Struts + MVC Philosophical question

2002-07-11 Thread Dan Cancro

My favorite reason for insulating the view from the model is because
otherwise, you could encounter errors in the middle of serving a page and
the users would see a half-finished page.  With insulation (via controller),
you can make sure that all data retrieval by a page is foolproof.  When you
don't have web pages that start going to the browser before they are totally
done being generated, you don't have to worry about this problem.

> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 5:16 AM
> To: Struts Users Mailing List
> Subject: Re: Struts + MVC Philosophical question
> 
> 
> Struts really encourages a Layered Model 2/MVC architecture. Using a
> Layered arcitechture, it is incorrect for non-adjacent layers 
> to develop
> direct dependencies. The View should talk to the Controller and the
> Controller should talk to the Model. 
> 
> The original M/V/C framework, Smalltalk, made good use of the Observer
> pattern to streamline processing. The View could register a listener
> with the Model and be apprised of any change. Though, that is not
> something many people would do today, since it violates the Layers
> pattern that evolved from MVC. If the whole shooting match evolved in
> today's environment, I believe the Observer pattern would have been
> applied differently, and the View would register with the Controller,
> which would then monitor the Model on the View's behalf.
> 
> So, you're right, the original MVC pattern does not prevent the View
> from chatting with the Model and updating itself. The stricter Layers
> pattern that Web applications use on top of MVC does. But typing
> Layered/Model 2/MVC takes too long, and developers are lazy 
> that way :o)
> 
> So hereabout MVC does mean Smalltalk/Go4 MVC, it means Layered/Model
> 2/MVC. There's talk about christening that Web MVC or MVC2, 
> but there's
> not a solid reference for that yet.
> 
> Ade Barkah wrote:
> > 
> > To nitpick...
> > 
> > In a strictly philosophical terms, in MVC, the View *may* (and
> > should!) directly access the Model, and on startup one *may* go
> > straight to a View without passing through a Controller. Also,
> > the Model *may* populate its own data without the help of a
> > Controller.
> > 
> > Of course when applying MVC to web applications, it's best if
> > all user requests go through a control layer, but MVC "per se"
> > does not mandate it. This practice is often referred to as the
> > "Front Controller" pattern.
> > 
> > For reference, see how MVC is applied in Smalltalk, Swing or
> > even MFC. :)
> > 
> > regards,
> > -Ade
> > 
> > -Original Message-
> > From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 10, 2002 9:41 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Struts + MVC Philosophical question
> > 
> > > -Original Message-
> > > From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 10, 2002 6:40 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Struts + MVC Philosophical question
> > >
> > >
> > > Subject: Struts + MVC Philosophical question
> > > From: "André Augusto de Oliveira Aragão" <[EMAIL PROTECTED]>
> > >  ===
> > > HI!
> > >
> > > I'm using struts to develop an application. I have an action,
> > > that has an
> > > input page, and a result page. However, the input page needs
> > > information
> > > that is in the model. Following mvc, I can´t access the model
> > > directly from
> > > view. With struts, the input page is called before 
> calling the action.
> > > Strictly following MVC, how can I populate the input page
> > > with model info I
> > > need? Any ideas?
> > 
> > Following MVC, you should not be bypassing the controller 
> and going straight
> > to the view. ;-) The answer is to go through an action to 
> get to the input
> > page. The action can then set up any beans the input page 
> will need, and
> > then forward to it.
> > 
> > --
> > Martin Cooper
> > 
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 
> 
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Java Web Development with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: keeping the old debate open...

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 11 Jul 2002 10:17:33 -0400
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: keeping the old debate open...
>
>
>
>
>
> > just a question about how open-source projects are managed at
> > apache's : how do you know you run out of bugs to fix ? what's the way
> the
> > projects are tested ? thanks, since my boss wonders about open-source and
> > fears it a bit...
>
> One of fundamental advantages of Open Source is that finding bugs generally
> occurs much faster. Plus, as a user you have direct access to the bug
> tracking system (bugzilla, in this case at
> http://nagoya.apache.org/bugzilla/ ).
>

When I first started doing open source (~5 years ago), I intellectually
believed that this would be true -- it made sense.  But, beyond finding
bugs in the first place, I am continually amazed at how willing people are
to not only notice that there was a problem, but go into the source and
figure out how to fix it, so that they can provide a patch.  The Struts
community in particular has been very helpful in that regard.

Craig


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




Re: Should I bother to try and handle this with struts?

2002-07-11 Thread Eddie Bush

Use container-managed authentication.  For your role names, prepend a 
unique identifier for the application:

BackOfficeApp Roles:
   BOA_USER
   BOA_ADMIN

JoeBlowApp Roles:
   JBA_USER
   JBA_ADMIN

DumbApp Roles:
   DAP_USER
   DAP_ADMIN

I think that covers your needs, doesn't it?

You could then, additionally, through the container or the web-app 
deployment descriptor, specify what the role name prefix is for the 
application and use that information, combined with standard method 
calls, to determine who should see what.

If you're using Tomcat, but you're not currently using container-managed 
authentication - AND you're going to keep these folks in a database - 
take a look at the JDBCRealm.  You can also do LDAP (though I have no 
experience using it) with the JNDIRealm.  These (as well as the 
MemoryRealm - flat-file configuration - not good if you need to update 
dynamically and have it immediately visible) are "not too hard" to 
setup.  Plus, rather than having to code some "search" algorithm (ack! 
why?!  only if you have special needs is this required - the solution 
above does not qualify as a "special need"), you can make use of the 
(tried and true!) code-base that already exists in the JDK for 
determining who is in what role(s).

Container-managed Authentication == Goood

Also, using Tomcat (I can't speak for other servers because I only use 
TC :-P), you can configure the realm to be there for a context, a 
(virtual) host, or an entire server.  It gives you a great deal of control.

HTH,

Eddie

Rick Reumann wrote:

>I'm confused how I can/should handle this in Struts...
>
>What I need to build (and long story why) is a User Administration
>utility and where I'm having trouble fitting this in with struts is in
>regard to the following:
>
>Picture a case where you want to give user's certain roles based on
>certain applications. So you'd have:
>
>BackofficeApp[ select options of possible roles ]
>JoeBlowApp   [ select options of possible roles ]
>DumbApp  [ select options of possible roles ]
>
>The problem is the list of applications is dynamic so I can't hard
>code these values into a form bean or in my dynamicActionForm.
>
>Currently I'm planning on doing this an old fashioned way where after
>submission I'll loop through the same dynamic list of applications and
>pull up the request parameters based on the values I get back. So for
>example somewhere I'd end up doing:
>
>//while loop through applications
>String appValue = request.getParameter( appNameBasedOnCurrentLoopValue );
>   //update db for this app name based on value
>//continue loop
>
>Can I have a form bean gather all this data? Or should I just continue
>to do it the way I'm doing it?
>
>Thanks for any comments/help.
>
>
>




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




RE: [ANNOUNCE] Easy Struts v0.4 for Eclipse / JBuilder

2002-07-11 Thread James Ward

I tried to do an update from within Eclipse, but it doesn't seem to work?  Any ideas?

BTW: Eclipse + EasyStruts is awesome!!! Thank you!

-James


> -Original Message-
> From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 4:48 AM
> To: Struts Users Mailing List
> Subject: [ANNOUNCE] Easy Struts v0.4 for Eclipse / JBuilder
> 
> Hi,
> 
> Easy Struts v0.4 is now out.
> 
> Provide a full support for JBuilder IDE.
> Provide a full support for Eclipse IDE.
> 
> > Changes in v0.4 (2002-07-11)
>   - Support now for JBuilder IDE (without Resources
> Wizard).
>   - Add runtime facility for JBuilder, no need
> removeStrutsJar opentool
>   - Add confirm dialog before changing project
> classpath
>   - Fix driver class validation in datasource wizard
>   - Fix many bug and add improvements
>   - New icons
> 
> > Documentation and website updates comming soon.
> 
> Donwload Easy Struts for Eclipse  :
> 
> http://sourceforge.net/project/showfiles.php?group_id=54542&release_id=991
> 15
> 
> Donwload Easy Struts for JBuilder :
> 
> http://sourceforge.net/project/showfiles.php?group_id=54542&release_id=991
> 14
> 
> Project page :
>   http://easystruts.sourceforge.net/
>   http://sourceforge.net/projects/easystruts/
> 
> -Emmanuel
> 
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>
> 


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




Re: dynabeans as value objects in struts 1.0.X

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, Adolfo Miguelez wrote:

> Date: Thu, 11 Jul 2002 13:33:24 +
> From: Adolfo Miguelez <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: dynabeans as value objects in struts 1.0.X
>
>
> Hi All,
>
> I quick question with a quick response. I have successfully tested to create
> value objects as dynabeans in Struts 1.1b1. Custom tags are able to inspect
> themselves dynabeans (from Commons - BeansUtils package).
>
> However, in production we still have Struts 1.0.2 and we planned switching
> only to Struts 1.1 when it be released.
>
> On other hand, we intend to implement a generic value object for all our
> apps. From the reasons above, it seems that a dynabean based value object
> should be fine for Struts 1.0 applications.
>
> The question is: Does struts custom tags are able to inspect properly
> dynabeans in Struts 1.0.2 as they are in Struts 1.1?
>

No, they don't.  The custom tags in 1.0.2 use the older version of
BeanUtils and PropertyUtils that do not know what a DynaBean is.

You can put commons-beanutils.jar into a 1.0.2 app and use dynabeans for
your back end stuff.  It's just the Struts tags that will not recognize
them.

> Thanks in advance,
>
> Adolfo.
>

Craig


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




RE: keeping the old debate open...

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 11 Jul 2002 10:55:14 -0400
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: keeping the old debate open...
>
>
> I cant get more than 15 bugs to be displayed and half of those are
> enhancements...
> On the summary page I can see a bunch, but under a query forget it!
>

As you might imagine :-), I have a saved query on Bugzilla to select
Struts bug reports.  As of a few seconds ago, it finds 92 of them (many
enhancements, many bugs against 1.0.x, and a few outstanding against 1.1).

The search criteria I use:
- Status = UNCONFIRMED, NEW, ASSIGNED, REOPENED
- Program = Struts

For reference, our bug tracking system (for all Jakarta and Xml.apache.org
projects) is at:

  http://nagoya.apache.org/bugzilla/

Craig



>
>
>
>
> -Original Message-
> From: Kevin.Bedell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 10:18 AM
> To: struts-user
> Subject: Re: keeping the old debate open...
>
>
>
>
>
>
> > just a question about how open-source projects are managed at
> > apache's : how do you know you run out of bugs to fix ? what's the way
> the
> > projects are tested ? thanks, since my boss wonders about open-source
> and
> > fears it a bit...
>
> One of fundamental advantages of Open Source is that finding bugs
> generally
> occurs much faster. Plus, as a user you have direct access to the bug
> tracking system (bugzilla, in this case at
> http://nagoya.apache.org/bugzilla/ ).
>
> There are currently 90 open bugs for Struts. How do I know this? I just
> looked - it's on-line for everyone to see. If you find a bug, you can
> add
> one yourself and someone with appropriate rights in bugzilla will have
> to
> address it before it dissapears - it's an extremely 'open book' approach
> that no vendor would dream of giving you. I've worked for software
> companies and we would NEVER have opened our bug lists - our competitors
> would have printed them out and used them against us in sales calls.
>
> Eric Raymond, in his essay "The Cathedral and the Bazaar" says that
> ``Given
> enough eyeballs, all bugs are shallow.'' And, "at least, that they turn
> shallow pretty quickly when exposed to a thousand eager co-developers
> pounding on every single new release".
>
> This is why Linux is more stable than NT and Apache dominates the web
> server market - it's not because it's free, it's because it's BETTER and
> FREER of BUGS. If I were your boss, I'd worry more about the quality of
> commercial software than I would about open source.
>
>
> If your manager is concerned about using Open Source becuase of software
> quality, then get them a copy of Eric's book: The Cathedral and the
> Bazaar
> - it's a very short and easy read.
>
>
> The Cathedral and the Bazaar is available at either:
>
>on-line free:   http://www.tuxedo.org/~esr/writings/cathedral-bazaar/
>
>   - or -
>
>   from Amazon:
> 
>http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=sr_8_1/103-4271210-7048648
>
>
> The discussion about Open Source projects and debugging is at:
>
>
> http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.html
>
>
> Best of luck,
>
> Kevin
>
>
>
>
> --
> 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: Problems running struts 1.1b1 with Jbuilder 6

2002-07-11 Thread Craig R. McClanahan



On Thu, 11 Jul 2002, emmanuel.boudrant wrote:

> Date: Thu, 11 Jul 2002 10:07:45 +0200 (CEST)
> From: emmanuel.boudrant <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Problems running struts 1.1b1 with Jbuilder 6
>
> Hi,
>
> Did you run your project under Tomcat 4 ?
> Struts 1.1 require Tomcat 4.
>

That should not be the case -- it should still run fine on a Servlet 2.2 /
JSP 1.1 container as well.

> -Emmanuel

Craig


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




Re: Struts + MVC Philosophical question

2002-07-11 Thread Alex Hayley

>Strictly following MVC, how can I populate the input
>page with model 
>info I
>need? Any ideas?

You might want to take a look at creating a global
forward that forwards to an Action.  Create a global
forward to an Action that does the stuff you need and
then forward to the input page.  Take a look at the
O'Reilly Struts book on the theserverside.com. 
Chapter 4, page 15 under the heading of "Using a
Struts Action in the welcome-file-list".  The
explanation is better than I could give.  Hope this
helps.

Alex


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

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




Should I bother to try and handle this with struts?

2002-07-11 Thread Rick Reumann

I'm confused how I can/should handle this in Struts...

What I need to build (and long story why) is a User Administration
utility and where I'm having trouble fitting this in with struts is in
regard to the following:

Picture a case where you want to give user's certain roles based on
certain applications. So you'd have:

BackofficeApp[ select options of possible roles ]
JoeBlowApp   [ select options of possible roles ]
DumbApp  [ select options of possible roles ]

The problem is the list of applications is dynamic so I can't hard
code these values into a form bean or in my dynamicActionForm.

Currently I'm planning on doing this an old fashioned way where after
submission I'll loop through the same dynamic list of applications and
pull up the request parameters based on the values I get back. So for
example somewhere I'd end up doing:

//while loop through applications
String appValue = request.getParameter( appNameBasedOnCurrentLoopValue );
   //update db for this app name based on value
//continue loop

Can I have a form bean gather all this data? Or should I just continue
to do it the way I'm doing it?

Thanks for any comments/help.



-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: keeping the old debate open...

2002-07-11 Thread wbchmura


I cant get more than 15 bugs to be displayed and half of those are 
enhancements...
On the summary page I can see a bunch, but under a query forget it!





-Original Message-
From: Kevin.Bedell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 10:18 AM
To: struts-user
Subject: Re: keeping the old debate open...






> just a question about how open-source projects are managed at
> apache's : how do you know you run out of bugs to fix ? what's the way
the
> projects are tested ? thanks, since my boss wonders about open-source 
and
> fears it a bit...

One of fundamental advantages of Open Source is that finding bugs 
generally
occurs much faster. Plus, as a user you have direct access to the bug
tracking system (bugzilla, in this case at
http://nagoya.apache.org/bugzilla/ ).

There are currently 90 open bugs for Struts. How do I know this? I just
looked - it's on-line for everyone to see. If you find a bug, you can 
add
one yourself and someone with appropriate rights in bugzilla will have 
to
address it before it dissapears - it's an extremely 'open book' approach
that no vendor would dream of giving you. I've worked for software
companies and we would NEVER have opened our bug lists - our competitors
would have printed them out and used them against us in sales calls.

Eric Raymond, in his essay "The Cathedral and the Bazaar" says that 
``Given
enough eyeballs, all bugs are shallow.'' And, "at least, that they turn
shallow pretty quickly when exposed to a thousand eager co-developers
pounding on every single new release".

This is why Linux is more stable than NT and Apache dominates the web
server market - it's not because it's free, it's because it's BETTER and
FREER of BUGS. If I were your boss, I'd worry more about the quality of
commercial software than I would about open source.


If your manager is concerned about using Open Source becuase of software
quality, then get them a copy of Eric's book: The Cathedral and the 
Bazaar
- it's a very short and easy read.


The Cathedral and the Bazaar is available at either:

   on-line free:   http://www.tuxedo.org/~esr/writings/cathedral-bazaar/

  - or -

  from Amazon:
http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=sr_8_1/103-4271210-7048648


The discussion about Open Source projects and debugging is at:

  
http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.html


Best of luck,

Kevin




--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




RE: custom tags accessing database (MVC model review)

2002-07-11 Thread Jacob Hookom

I developed what I call the JFuse library which uses an action/map setup
for taking result sets and mapping them to objects as per an xml config
file:



















Datasources are aliased and defined first "cp" for example, and then
actions are bound to the datasource and callable.  Finally, JFuse gives
you the option of mapping your resultset to objects using BeanUtils as
configured by a data-map entry in the xml config.  It also implements
MVC, so either from tags:



SELECT wrkWrkID, wrkName, wrkDescription, wrkCreated
FROM tbl_workspace
WHERE wrkCltID = ?
ORDER BY wrkName

<%=request.getParameter("clientId")%>



Or from the Action:

// get context application
JFuse jfuse = JFuseContext.getInstance(servlet.getServletContext());

// insert new client in the database [setup params]
Action insertAction = jfuse.getAction("act_client_insert");
Object[] params = new Object[3];
params[0] = info.getName().trim();
params[1] = info.getServerAlias();
params[2] = "/" + info.getFileContext().trim();

// finally, update the database with new client
jfuse.doUpdate(insertAction, params);


I hope this gives you some ideas.

Jake Hookom
University of Wisconsin, Eau Claire

-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 4:00 AM
To: [EMAIL PROTECTED]
Subject: custom tags accessing database (MVC model review)

Hi All,

some of our development teams has implemented view helpers as custom
tags, 
which in turn access directly to database. However, we guess that such
an 
approach is not correct since it does not match Struts/MVC models.

We suggest that a better aproach would be leaving an Action to deal with

database, and making up some kind of value object, which, in turn, could
be 
used for custom tag for rendering the data.

I would be grateful for some pointer, reference or arguement against
such an 
approach or, confirmations that it is correct if so.

Thanks in advance,

Adolfo.




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


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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

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


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




Re: keeping the old debate open...

2002-07-11 Thread Kevin . Bedell





> just a question about how open-source projects are managed at
> apache's : how do you know you run out of bugs to fix ? what's the way
the
> projects are tested ? thanks, since my boss wonders about open-source and
> fears it a bit...

One of fundamental advantages of Open Source is that finding bugs generally
occurs much faster. Plus, as a user you have direct access to the bug
tracking system (bugzilla, in this case at
http://nagoya.apache.org/bugzilla/ ).

There are currently 90 open bugs for Struts. How do I know this? I just
looked - it's on-line for everyone to see. If you find a bug, you can add
one yourself and someone with appropriate rights in bugzilla will have to
address it before it dissapears - it's an extremely 'open book' approach
that no vendor would dream of giving you. I've worked for software
companies and we would NEVER have opened our bug lists - our competitors
would have printed them out and used them against us in sales calls.

Eric Raymond, in his essay "The Cathedral and the Bazaar" says that ``Given
enough eyeballs, all bugs are shallow.'' And, "at least, that they turn
shallow pretty quickly when exposed to a thousand eager co-developers
pounding on every single new release".

This is why Linux is more stable than NT and Apache dominates the web
server market - it's not because it's free, it's because it's BETTER and
FREER of BUGS. If I were your boss, I'd worry more about the quality of
commercial software than I would about open source.


If your manager is concerned about using Open Source becuase of software
quality, then get them a copy of Eric's book: The Cathedral and the Bazaar
- it's a very short and easy read.


The Cathedral and the Bazaar is available at either:

   on-line free:   http://www.tuxedo.org/~esr/writings/cathedral-bazaar/

  - or -

  from Amazon:
http://www.amazon.com/exec/obidos/ASIN/0596001088/qid=1026397260/sr=8-1/ref=sr_8_1/103-4271210-7048648


The discussion about Open Source projects and debugging is at:

  http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/x147.html


Best of luck,

Kevin




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




RE: html:errors

2002-07-11 Thread wbchmura


Like so?





-Original Message-
From: mhanel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:50 AM
To: struts-user
Subject: AW: html:errors


Yes I know. Probably my question was wrong.
Can I use the  tag with some 
 tags?
like


Do Some stuff for errors.



-Ursprüngliche Nachricht-
Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 14:31
An: 'Struts Users Mailing List'
Betreff: RE: html:errors


Hey,
This kinda depends on what errors you are looking for.  If you are using
automatic form validation, then make the validate() method simply return 
an
ActionErrors object with any error messages.  If there are no errors, 
return
null or an empty ActionErrors.  Struts will automatically take the user 
to
the input page defined in struts-config.  On that page, just use an
 tag.  If there were no errors, nothing will be displayed. 
 If
there were errors, they are displayed there.  It's pretty simple, 
another
one of those things that struts handles automatically.

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



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:17 AM
To: [EMAIL PROTECTED]
Subject: html:errors


How do I check on the jsp if some error occured?

If an error occured I wanna display a Dialog with the errormessages 
inside
when the page gets reloaded.




Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH Fon:+49-841-9014-300
Marie-Curie-Strasse 6   Fax:+49-841-9014-302 
D- 85055 Ingolstadt mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




Problem with session ojects: memory size, updates

2002-07-11 Thread Heligon Sandra


Sorry, my english level isn't very good.

I read that the Struts framework doesn't make (oblige) 
to use one particular model implementation (EJB, JavaDataObject,
JavaBean, ...).
But the JavaBean solution is understood or greatly recommended,
isn't it ?
Because struts uses JSP to display data and JSP pages use JavaBean
tags.
If  we work whit XML representations of  remote business objects, is
it better to
use struts XSL tags rather than generate JavaBean from the XML
description ?
The XSL solution requires to know XSL tags and  is slower and more
complex.
With JavaBean solution I am frightened having memory or request time
problem.
The user does a request, the selected Action gets business data from
the
enterprise tier, generates one or several JavaBean instances and
stores the JavaBean 
in the HttpSession. 
But the HttpSession size will grow quickly.
It is difficult to know when we have to store data in request scope
or session scope.
Has somebody advices about this dilemma? 
I am tending to put data systematically in HttpSession in order to
reduce network traffic if the user
ask again this page.
What is the max size of the session objects ? 
If we user rights on the business objects, we will have the same
JavaBean in several HttpSessions.
What do you think about this problem ? 

A last question if we have numerous session objects, when we will
have to update one
of them it will be very slow to find it in the list.
Do you have advices about that ?
Is the JavaBean/HttpSession solution realistic with "real-time"
data?

Thanks a lot in advance. 

 


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




Re: keeping the old debate open...

2002-07-11 Thread Ted Husted

Oops, Craig McClana
---^han


Ted Husted wrote:
> 
> We run out of bugs to fix when everything in Bugzilla is marked
> resolved, later, or won't fix. =:0)
> 
> We publish the current development version each and very night. Many
> developers download this and try it against their own products, which is
> where the bug reports come from.
> 
> We do have a few unit tests of our own, but our real test-bed are the
> thousands of developers who monitor this list and test it for
> themselves.
> 
> Absolutely everything we do is out in the open. There are no private
> developer lists. If you, or your boss, or anyone want's to know what's
> going on, they only need to follow the DEV list.
> 
> At any point in time, the worst-case scenario is that you can adopt the
> source into your own product and go your own way. So there's nothing to
> lose, and several world-class developers like Craig McClana to gain.
> 
> -T.
> 
> Barbara Post wrote:
> >
> > Hi Ted, just a question about how open-source projects are managed at
> > apache's : how do you know you run out of bugs to fix ? what's the way the
> > projects are tested ? thanks, since my boss wonders about open-source and
> > fears it a bit...
> >
> > we must ensure we know exactly what we can rely upon or not (how solid can
> > o-s be).
> > although another project used Cocoon1 (mmh, who decided and what are the
> > bugs due to cocoon specifically, dunno), now we may use Struts for this one.
> >
> > thanks a lot Guru :-)
> >
> > Babs
> > - Original Message -
> > From: Ted Husted <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Sent: Thursday, July 11, 2002 2:20 PM
> > Subject: Re: Struts 1.1 Final - Just asking!
> >
> > > Anyone's guestimation is *not* going to be worth the pixels they are
> > > published on, and it's pointless to disappoint people with speculations.
> > >
> > > The honest truth is that we ship when we run out of bugs to fix. Since
> > > we don't know what bugs people will find in the upcoming beta 2 release,
> > > we can't tell how long they will take to fix. I wish there were a
> > > better answer, but that's how it actually works, and there's no point in
> > > misleading anyone.
> > >
> > > The one and only answer is always going to be:
> > >
> > > http://jakarta.apache.org/struts/kickstart.html#release
> > >
> > > You know we're getting very close when go from a "beta" to a "release
> > > candidate", but the next release, beta 2, is not a release candidate.
> > > Yet.
> > >
> > > Choosing between a Jakarta beta and the stable release is like
> > > buying a yacht. If you have to ask, use the stable release =:0)
> > >
> > > -- Ted Husted, Husted dot Com, Fairport NY US
> > > -- Java Web Development with Struts
> > > -- Tel: +1 585 737-3463
> > > -- Web: http://husted.com/about/services
> > >
> > >
> > >
> > > Eddie Bush wrote:
> > > >
> > > > Obviously, the "standard answer" when someone asks for an ETA is: "When
> > > > it gets here."  I respect that - I do.  It would be helpful to me though
> > > > if someone could give a "very rough" guestimation of when that possibly
> > > > might be =)  I won't hold you to it - I know it's a "moving target".
> > > >  I'm simply curious.
> > > >
> > > > Thanks so much!
> > > >
> > > > Eddie Bush
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > 
> > > > For additional commands, e-mail:
> > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Java Web Development with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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

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




How to automaticlly set the locale according to user's request

2002-07-11 Thread @Basebeans.com

Subject: How to automaticlly set the locale according to user's request
From: "Alex Kwan" <[EMAIL PROTECTED]>
 ===
Hi, All
I want to build a multilanguage site with structs. As we all know, the
response encode the content to client using the charaterset defined by
setLocale() or setContentType().If the we don't set the locale, it will use
the default "ISO-8859-1".
Now the question is:
1.I want to setLocale() by the value get from request.getLocale(), but how
can I set the struts to automaticlly finish this process.
2.How can I set the web to make jsp also automaticlly encoding the content
using the client locale setting.

Thanks.



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




FormFile/DiskFile and form validation/redisplay during file upload

2002-07-11 Thread Galpin, Charles

Hi All

I've searched the list for this issue, and only found one thread that was
related (pre-setting the file value), but didn't really address this issue.

I have a form with a file input as well as other inputs (assume they are
metadata associated with the file).

If the user enters a path to a file and submits, and my validation checks on
the other inputs return ActionErrors for those inputs, the form is
redisplayed but the file value is not retained.

If I view the source, I see



So it looks like DiskFile needs a toString() implemented that returns this
path. BUT, I think this is not going to be as easy to fix as it sounds. The
DiskFile class only has the original filename and the full server side path,
but not the original client side path.

Am I missing something, or does anyone know how I can get the full client
side path to the file? I scrounged around the upload source a bit, but can't
see where this would be done. Also, it does not appear that the original
filename is guaranteed to be supplied either ( see
http://www.ietf.org/rfc/rfc1867.txt)

Oh, I am running the nightly snapshot (20020711) to get past other file
upload problems under weblogic 7.0.

Thanks
charles
 
 




Re: keeping the old debate open...

2002-07-11 Thread Ted Husted

We run out of bugs to fix when everything in Bugzilla is marked
resolved, later, or won't fix. =:0)

We publish the current development version each and very night. Many
developers download this and try it against their own products, which is
where the bug reports come from. 

We do have a few unit tests of our own, but our real test-bed are the
thousands of developers who monitor this list and test it for
themselves.

Absolutely everything we do is out in the open. There are no private
developer lists. If you, or your boss, or anyone want's to know what's
going on, they only need to follow the DEV list. 

At any point in time, the worst-case scenario is that you can adopt the
source into your own product and go your own way. So there's nothing to
lose, and several world-class developers like Craig McClana to gain. 

-T.

Barbara Post wrote:
> 
> Hi Ted, just a question about how open-source projects are managed at
> apache's : how do you know you run out of bugs to fix ? what's the way the
> projects are tested ? thanks, since my boss wonders about open-source and
> fears it a bit...
> 
> we must ensure we know exactly what we can rely upon or not (how solid can
> o-s be).
> although another project used Cocoon1 (mmh, who decided and what are the
> bugs due to cocoon specifically, dunno), now we may use Struts for this one.
> 
> thanks a lot Guru :-)
> 
> Babs
> - Original Message -
> From: Ted Husted <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Sent: Thursday, July 11, 2002 2:20 PM
> Subject: Re: Struts 1.1 Final - Just asking!
> 
> > Anyone's guestimation is *not* going to be worth the pixels they are
> > published on, and it's pointless to disappoint people with speculations.
> >
> > The honest truth is that we ship when we run out of bugs to fix. Since
> > we don't know what bugs people will find in the upcoming beta 2 release,
> > we can't tell how long they will take to fix. I wish there were a
> > better answer, but that's how it actually works, and there's no point in
> > misleading anyone.
> >
> > The one and only answer is always going to be:
> >
> > http://jakarta.apache.org/struts/kickstart.html#release
> >
> > You know we're getting very close when go from a "beta" to a "release
> > candidate", but the next release, beta 2, is not a release candidate.
> > Yet.
> >
> > Choosing between a Jakarta beta and the stable release is like
> > buying a yacht. If you have to ask, use the stable release =:0)
> >
> > -- Ted Husted, Husted dot Com, Fairport NY US
> > -- Java Web Development with Struts
> > -- Tel: +1 585 737-3463
> > -- Web: http://husted.com/about/services
> >
> >
> >
> > Eddie Bush wrote:
> > >
> > > Obviously, the "standard answer" when someone asks for an ETA is: "When
> > > it gets here."  I respect that - I do.  It would be helpful to me though
> > > if someone could give a "very rough" guestimation of when that possibly
> > > might be =)  I won't hold you to it - I know it's a "moving target".
> > >  I'm simply curious.
> > >
> > > Thanks so much!
> > >
> > > Eddie Bush
> > >
> > > --
> > > To unsubscribe, e-mail:
> 
> > > For additional commands, e-mail:
> 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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

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




AW: change an Actionform

2002-07-11 Thread Efftinge, Sven

Ok, here it is:


  


  


  
  





  


Here are the two jsp-formulars :

SearchPage.jsp:




  

and EditPage.jsp:





  


and in the action this doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
request.getSession().setAttribute(mapping.getName(),myForm);

and this also doesn't work:

ActionForm myForm = new EditForm();

myForm.setDataobject(EntityFassade().findByValue((SearchForm)form.getValue()
));
form = myForm;

in both cases the EditPage.jsp formular is empty.
But in the Action the dataobject isn't empty I have tested that.

-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 15:04
An: 'Struts Users Mailing List'
Betreff: RE: change an Actionform


Hi Sven,

I'll need to see your complete struts-config.xml.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 12:04
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Thank you Jon.
Your solution is good, but I don't understand why my way doesn't work.
Can someone tell me where the data gets lost?
The EditEntity.jsp has definetly access to an EditEntityForm, but there is
no Data in it!
why can I change the type but can't fill it?

Sven

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: unsubscribe me

2002-07-11 Thread Tero P Paananen

> Deepak Konale

No.

-TPP

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




dynabeans as value objects in struts 1.0.X

2002-07-11 Thread Adolfo Miguelez


Hi All,

I quick question with a quick response. I have successfully tested to create 
value objects as dynabeans in Struts 1.1b1. Custom tags are able to inspect 
themselves dynabeans (from Commons - BeansUtils package).

However, in production we still have Struts 1.0.2 and we planned switching 
only to Struts 1.1 when it be released.

On other hand, we intend to implement a generic value object for all our 
apps. From the reasons above, it seems that a dynabean based value object 
should be fine for Struts 1.0 applications.

The question is: Does struts custom tags are able to inspect properly 
dynabeans in Struts 1.0.2 as they are in Struts 1.1?

Thanks in advance,

Adolfo.




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


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




unsubscribe me

2002-07-11 Thread deepak . konale

Deepak Konale



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




Re: [ANNOUNCE] Scioworks Camino v2.0

2002-07-11 Thread Developer

How about support for Tiles & Validator?


- Original Message -
From: "John Yu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 6:46 AM
Subject: [ANNOUNCE] Scioworks Camino v2.0


> Dear Struts Users,
>
> We are pleased to announce the release of Scioworks Camino v2.0, a visual
> tool for Struts application development.
>
> You can download Camino v2.0 from:
>
>http://www.scioworks.net/servlets/Redirect?pid=15&dp=2
>
> What's new in v2.0:
> * Supports Struts 1.1 features - Manages multiple sub-apps on multiple
> Storyboards, declarative exception handling, dynamic FormBeans, etc.
>
> * Enhanced Zoomable Storyboards - Manages each sub-app on its own
> Storyboard with cross sub-application connectivities. Supports zooming,
> snap-to-grid, auto-alignment and multiple segements paths.
>
> * Built-in JSP source editor with syntax-highlighting - Automatic
> two-way synchronization between the editors and the Storyboards.
>
> * Auto file synchronization - Detects external modifications of the
JSPs.
>
> * Inspector and Cross Referencing Tool - Allows quick viewing and
> modifying attributes of the elements and provide powerful
cross-referencing
> facility.
>
> * Enhanced Code Generator Wizard - Supports different generated code
> styles of FormBean and Action classes to suit your need.
>
> * Enhanced JSP Parser - Revised and more forgiving on non-standard
HTML
> syntax.
>
> * Revised User Inteface
>
> * Expanded XML Character Encoding Support - Allows customized setting.
>
> * Supports both JVM 1.4 and JVM 1.3.
>
>
> Sincerely,
> --
> Scioworks Technologies - Camino Team
>


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




unsubscribe me

2002-07-11 Thread Anjali Jain

unsubscribe me

NIIT Technologies 'Trust Us to Find the Way'. For details visit our website
http://www.niit.com 

___NOTICE 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

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




RE: html:errors

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

Hmmm
I haven't done it myself, but I don't see why you couldn't.  It seems like
it would work fine.  However, I have had problems with the
 and  tags when trying to
display something if a collection is empty.  It made me lose faith in the
tag, so now I use the  tag for these types of
situations (with a preceding  tag for collections).  Did you try
your idea yet?  Like I said, it seems like it should work just fine.
However, I am new to all this, so if I'm wrong, somebody correct me.

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


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:50 AM
To: [EMAIL PROTECTED]
Subject: AW: html:errors


Yes I know. Probably my question was wrong.
Can I use the  tag with some 
 tags?
like


Do Some stuff for errors.



-Ursprüngliche Nachricht-
Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 14:31
An: 'Struts Users Mailing List'
Betreff: RE: html:errors


Hey,
This kinda depends on what errors you are looking for.  If you are using
automatic form validation, then make the validate() method simply return an
ActionErrors object with any error messages.  If there are no errors, return
null or an empty ActionErrors.  Struts will automatically take the user to
the input page defined in struts-config.  On that page, just use an
 tag.  If there were no errors, nothing will be displayed.  If
there were errors, they are displayed there.  It's pretty simple, another
one of those things that struts handles automatically.

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



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:17 AM
To: [EMAIL PROTECTED]
Subject: html:errors


How do I check on the jsp if some error occured?

If an error occured I wanna display a Dialog with the errormessages inside
when the page gets reloaded.



Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH Fon:+49-841-9014-300
Marie-Curie-Strasse 6   Fax:+49-841-9014-302 
D- 85055 Ingolstadt mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: change an Actionform

2002-07-11 Thread Jon.Ridgway

Hi Sven,

I'll need to see your complete struts-config.xml.

Jon Ridgway


-Original Message-
From: Efftinge, Sven [mailto:[EMAIL PROTECTED]] 
Sent: 11 July 2002 12:04
To: 'Struts Users Mailing List'
Subject: AW: change an Actionform

Thank you Jon.
Your solution is good, but I don't understand why my way doesn't work.
Can someone tell me where the data gets lost?
The EditEntity.jsp has definetly access to an EditEntityForm, but there is
no Data in it!
why can I change the type but can't fill it?

Sven

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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

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




Re: DynaActionForm and JSTL (was RE: DynaActionForm Advantages)

2002-07-11 Thread @Basebeans.com

Subject: Re: DynaActionForm and JSTL (was RE: DynaActionForm Advantages)
From: Serge Shikov <[EMAIL PROTECTED]>
 ===
Vic C. wrote:
> I like to unit test my beans... and am also looking to design a 
> propertyChangedEvent() and even SOAP to my beans; so no maps for me.
propertyChangedEvent, and SOAP, and unit tests are very good. But Scott 
have talked about ActionForms, which are a simple (String, in most 
cases) values container. SOAP to form-beans? What do you mean?

> Scott Ganyo wrote:
> 
>> Could you just have the DynaActionForm expose a Map as a property?  If it
>> implemented, for example, a method like: "public Map getProperties();" 
>> you could do this:
>>
>> 
>>
>> Scott


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




  1   2   >