[ANN] Struts-Flow 0.1 Released

2004-06-03 Thread Don Brown
Struts Flow is a port of Cocoon's Control Flow to Struts to allow complex workflow to be implemented using continuations-capable JavaScript. It provides the ability to describe the orde

Re: Simplifying struts-config.xml

2004-07-09 Thread Don Brown
Yes, this is the exact use case for the wildcard feature. The search order when trying to find an action mapping goes 'exact match' -> 'wildcard in order listed' -> 'unknown'. Therefore, you could define several generic wildcard mappings to match most requests but still be able to write specific

Re: Simplifying struts-config.xml

2004-07-09 Thread Don Brown
http://struts.apache.org/userGuide/building_controller.html Section 4.10 Don On Fri, 09 Jul 2004 10:12:28 -0700, Michael McGrady <[EMAIL PROTECTED]> wrote: > At 07:57 AM 7/9/2004, you wrote: > > > The new wildcard support would also work, but only if all the root > > paths worked this way. > > >

Re: Wildcard action mapping use of **

2004-08-05 Thread Don Brown
Heh, I always wondered how you folks would handle those. :) To answer the first question, I think "**" would be useful if you were wanting to support say a really descriptive ReST-style URL (like "/xml/us/product/category/item") and wanted to leave the parsing of the URL to the Action class. So

[ANN] Struts-Flow 0.2 Released

2004-09-10 Thread Don Brown
Struts Flow is a port of Cocoon's Control Flow to Struts to allow complex workflow, like multi-form wizards, to be easily implemented using continuations-capable JavaScript. It provides the ability to describe the order of Web pages that have to be sent to the client, at any given point in time in

Re: Struts development methodology

2004-09-14 Thread Don Brown
Why not combine Struts with Velocity: http://jakarta.apache.org/velocity/tools/struts/ Velocity is really easy to learn and is Dreamweaver-friendly. Don On Tue, 14 Sep 2004 19:28 -0400, Victor Grazi <[EMAIL PROTECTED]> wrote: > We are developing an important struts application for a major bank,

Re: Question on struts-chain

2004-09-15 Thread Don Brown
Yes, but I think it brings a lot more to the table. For example, Action inheritance chains would be a thing of the past. Any common code could be changed into a command and placed in the chain. You could even easily create a command that, instead of executing an Action's execute method, calls a

Re: Question on struts-chain

2004-09-15 Thread Don Brown
Yes, you have complete control over everything that happens in a request. The chain can even be modified at runtime to adjust as necessary. Struts-provided commands could replaced and/or new commands could be added to perform some specific purpose. I even envision new "sub-frameworks" that write

Re: Question on struts-chain

2004-09-15 Thread Don Brown
On Wed, 15 Sep 2004 17:49:21 -0400, Sean Schofield <[EMAIL PROTECTED]> wrote: > >You could even easily create a command that, instead of executing an > >Action's execute method, calls a custom method on a POJO like JSF > >(I've done some experimenting here: > >http://www.jroller.com/page/mrdon/200

Re: Question on struts-chain

2004-09-15 Thread Don Brown
Not necessarily. Some people propose relacing Actions with Commands, but I see Commands as more to do with request processing in general, than request-specific business logic. Instead of a ExecuteAction command that executes a regular Struts Action, you'd have ExecutePOJOAction which calls your o

Re: Struts and JSF

2004-09-28 Thread Don Brown
http://blogs.sun.com/roller/page/craigmcc/20040927#struts_or_jsf_struts_and On Tue, 28 Sep 2004 11:03:28 -0500, ajTreece <[EMAIL PROTECTED]> wrote: > Morning Folks... > > The group I'm with is being pushed to migrate from Struts to JSF. > Whether that is good or bad move is not up for debate...

Re: Google-friendly links using Struts

2004-09-28 Thread Don Brown
You could try passing parameters via the URL then using Struts' wildcard action mapping to pull them out. I use it to support a ReST-style web service interface to my application. Don On Tue, 28 Sep 2004 12:31:14 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Chaikin, Yaakov Y." <[EMAIL

Re: Using WildCards

2004-09-30 Thread Don Brown
Unfortunately, set-property is processed at config parsing time, rather than runtime, so it is not possible to use wildcard replacement in it. Don On Thu, 30 Sep 2004 14:59:17 -0300 (ART), Jose Alecio Carvalho <[EMAIL PROTECTED]> wrote: > Hi! I'm having some troubles using WildCards. I have > a

Re: Session authentication - Struts or ServletFilter

2004-10-06 Thread Don Brown
Personally, I favor a filter approach, specifically SecurityFilter - http://securityfilter.sourceforge.net/ It's configuration format follows Container-Managed Security, but is much more flexible. Don On Wed, 06 Oct 2004 13:19:59 -0400, Bill Siggelkow <[EMAIL PROTECTED]> wrote: > Well, I am not

Re: Migrate xsl into jsp/struts

2004-10-19 Thread Don Brown
To add to that, you could consider migrating to a struts XSL framework like: * stxx - http://stxx.sf.net * StrutsCX - http://it.cappuccinonet.com/strutscx/index.php Then migrate pages as needs require. This would allow you to do migration in steps - first write Struts interface, then convert XS

[ANN] JavaOne Social Gathering in San Francisco on 6/26 at 8pm

2005-06-09 Thread Don Brown
we will meet for drinks one short block from Moscone Center at the Thirsty Bear. All Java web developers are encouraged to participate in this event whether they are signed up to attend JavaOne this year or not. For those of you fortunate enough to be there last year, we had a good turnout in

Re: Wildcard action paths

2005-06-16 Thread Don Brown
To add to your original solution: write your own subclass of ActionConfig which overrides getParameter() to return the tiles-needed part of the parameter attribute. Additional methods will let you retrieve other parts. This way, your Action doesn't have to know about parsing; it can pull clean v

Re: Wildcard action paths

2005-06-17 Thread Don Brown
in a proxy, which would be a lot better than the 14 lines of > mNew.setFoo(mapping.getFoo()) I have now! > > Ugh. I wish this wasn't so messy :-( > > L. > > Don Brown wrote: > > To add to your original solution: write your own subclass of > > ActionConfig which

Re: Wildcard action paths

2005-06-17 Thread Don Brown
= (String)entry.getKey(); String value = (String)entry.getValue(); ... } In this way, you still have the clean configuration, and still your Action can take any number of parameters and do something with them. Don On 6/17/05, Van <[EMAIL PROTECTED]> wrote: > On 6/17/05, Don Brow

Re: Wildcard action paths

2005-06-18 Thread Don Brown
o a nice, clean, properly encapsulated solution. > > Thank you for that. Is this in CVS head, or posted as a patch somewhere? > > L. > > Don Brown wrote: > > Ok, but even if that is what she was wanting, it could still use the > > same struts config syntax

Re: ajax and struts-flow - how to refresh part of a page

2005-07-14 Thread Don Brown
I'm not sure I understand the question, but if you just want the ability to call Java methods from the client, I'd go with DWR. Struts Flow is a bit more experimental looking at rethinking web applications as continuations-based Javascript-glued apps where the view logic can be written in the same

Re: Struts with XSLT

2005-08-18 Thread Don Brown
Hmm...smell of death for stxx might be a bit harsh :) While it true I need to get a release out that better supports 1.2, I've been using it in production for over a year without problems, and would recommend you take another look. You, of course, are welcome to get involved, submit patches, even

Re: html:form not generating name="" attribute

2005-08-19 Thread Don Brown
You probably enabled xhtml output rendering, which renders an "id" attribute instead. Unfortunately, client-side validation in xhtml is currently broken in Struts 1.2.7, so you can either checkout and build commons-validator or wait until the next release. Don On 8/19/05, Morris Jones <[EMAIL PR

Re: html:form not generating name="" attribute

2005-08-20 Thread Don Brown
Ok, I looked at the 1.2.7 source, and indeed, it doesn't generate an "id" or"name" if xhtml mode is on. You are correct, the styleId is a good workaround, especially if you use the commons-validator checked out from trunk. Don On 8/20/05, Morris Jones <[EMAIL PR

Re: Re-use field validations?

2005-08-29 Thread Don Brown
I should also add that you cannot use external XML entities in validator XML files for any released version of Struts. However, Struts 1.3, as of tonight, will include code, dependent on Validator 1.2, which will allow their use. Don On 8/29/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > Fy

"Struts 1.3 and Beyond" Presentation

2005-09-08 Thread Don Brown
I just finished giving a presentation titled "Struts 1.3 and Beyond" to the Silicon Valley Web Developer JUG that I thought folks on this list might be interested in. In addition to the regular slide keyboard controls, press "T" to toggle the outline/printable view which contains extra notes. P

Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread Don Brown
n. > I give me an impression. > > Shale is the future of Struts without doubt!!! > > > > 2005/9/8, Don Brown <[EMAIL PROTECTED]>: > > I just finished giving a presentation titled "Struts 1.3 and Beyond" to > the > > Silicon Valley Web D

Re: Struts In Action - Still up to date?

2005-02-13 Thread Don Brown
Funny you should mention this...Nick Heudecker (Hibernate Quickly) and I have just agreed to write Struts in Action, 2nd Edition which will target 1.2 and 1.3 as appropriate. Our goal is to bring the trusted tome up to date, and include more practical solutions to common problems that arise on thi

Re: Struts In Action - Still up to date?

2005-02-14 Thread Don Brown
Unfortunately, all I can say is we are starting on the book now and are dedicated to getting it out as soon as we can. The first edition is good up to 1.1 and is still very relevant. Struts 1.2 added some minor features, but is very close to 1.1. Struts 1.3, on the hand, is shaping up to be clos

[ANNOUNCEMENT] New Struts subproject: Struts Flow

2005-02-17 Thread Don Brown
visit the Struts Flow website at: - http://struts.apache.org/flow/index.html Don Brown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [ANNOUNCEMENT] New Struts subproject: Struts Flow

2005-02-18 Thread Don Brown
nally like to use regular Struts actions for most simple actions, and then use Struts Flow for more complicated, multi-page wizards/forms. Don On Fri, 18 Feb 2005 10:27:53 -, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > From: Don Brow

Re: Struts In Action - Still up to date?

2005-02-18 Thread Don Brown
I'm not going to pay another $45 for 600 pages of mostly > repeated information. I value the new information, but also value my > bookshelf space. > > Does anybody know of a book or resource (other than this fine list) on > Struts that just covers the changes in the recent versi

Re: Struts or SpringFramework

2005-02-18 Thread Don Brown
One approach to building applications that is supported by Struts 1.3+ is to write a commons-chain based application and plug it into Struts, however, that is only one approach while the existing Action class approach still exists and will exist for a very long time. Personally, I favor using eith

Re: Struts or SpringFramework

2005-02-18 Thread Don Brown
nt and find the whole discussion very > confusing and confused. Do you have a statement somewhere that you > would take to be a bit definitive. (Please don't tell me this is open > source and that anything can happen, etc.) > > > On Fri, 18 Feb 2005 08:50:02 -0800, Don Bro

Re: Struts or SpringFramework

2005-02-18 Thread Don Brown
ate for the "application logic" chain either. > What is that about? That is one place where I get confused. > > > On Fri, 18 Feb 2005 09:48:19 -0800, Don Brown <[EMAIL PROTECTED]> wrote: > > The inherent problem with following a developer list is you will

Re: Add action mappings on the fly

2005-02-21 Thread Don Brown
Or use an action mapping that matches "/*". I use them with MappingDispatchAction to match "/*/*" where the first is the action class and the second is the function to call. Don On Mon, 21 Feb 2005 22:40:17 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > Diego, > > Here is an idea: You c

Re: let it flow? struts-flow vs. struts-workflow vs. other

2005-02-22 Thread Don Brown
I'm biased, but I would be interested to hear your experience using Struts Flow. I've used it for several applications for almost a year now and am quite happy. The documentation, of course, needs work, but I'm hoping to address that with the next release which adds all sorts of things. That sai

Re: let it flow? struts-flow vs. struts-workflow vs. other

2005-02-23 Thread Don Brown
the server side javascript goes, it's not complex: all our > developers know javascript for browser-stuff. It's just a new use for an > old tool. > > Bill m > > > -Original Message- > From: Don Brown [mailto:[EMAIL PROTECTED] > Sent: Tuesday, Feb

Re: let it flow? struts-flow vs. struts-workflow vs. other

2005-02-23 Thread Don Brown
On Wed, 23 Feb 2005 10:46:06 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > I'm generally interested in workflow solutions, but haven't had time > to review the libraries nor the urgency to develop my own. With all > due respect to Don, when I asked one of my developers to use > struts-flow for

Re: [ANNOUNCEMENT] SWF 0.5 Beta Released

2005-03-07 Thread Don Brown
Very interesting. Have you considered implementing SWF directly on Struts through struts-chain? The chain of responsibility implementation of commons-chain allows you to replace or augment any Struts functionality by giving you complete control over the request handling process. Don On Mon, 7

Re: Struts Flow: parallel JS files

2005-03-17 Thread Don Brown
You could point to a main() function in your js which looks at the said parameter, and calls the appropriate function. You'd have to ensure, of course, that you don't allow anyone to put in any malicious code. Don On Fri, 11 Mar 2005 21:27:40 +0100, Timo -Blazko- Boewing <[EMAIL PROTECTED]> wro

Re: Rewrite with Struts?

2005-03-21 Thread Don Brown
Use wildcards: Then, use a prefix mapping in your web.xml rather than the .do suffix. Don On Mon, 21 Mar 2005 21:23:51 +0100, Bernd Schiffer <[EMAIL PROTECTED]> wrote: > Hi. > > I have a Struts webapp which can be called by > DOMAIN/action.do?param=value . Is there a way to call it by > DOMAI

Re: Rewrite with Struts?

2005-03-21 Thread Don Brown
apping in struts confog.xml? > > Presently,I have it: > for???/ > > Awaiting reply :-) > > Warm Regards, > Mili Aggarwal > > > -Original Message- > From: Don Brown [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 22, 2005 3:19 AM > To: Struts Users Maili

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-29 Thread Don Brown
I'd also recommend looking at Javascript Templates - http://www.trimpath.com/project/wiki/JavaScriptTemplates - which is a template language like Velocity or JSP but using Javascript written in Javascript. You'd use this on the client side to process data and create HTML, then replace the HTML of

Re: [Struts Flow] builds

2005-03-31 Thread Don Brown
I haven't integrated the example build into Maven yet. If you checkout the source code, type "ant example" to generate the new consolidated examples war. Don On Thu, 31 Mar 2005 20:33:31 +0200, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > Ah, ok fine > > And do you know where the examples

Re: Struts-flow and ActionForm

2005-05-11 Thread Don Brown
This is the tricky part I haven't worked out yet with Struts Flow - smooth ActionForm integration. By forcing you to customize the populate and validate methods, it does allow you to have complete control of how your form is interacted with. For ActionForms, the populate would be a call to BeanUt

Re: [POLL] What do you use action forms for?

2005-05-11 Thread Don Brown
#1, mainly because my primary app uses stxx (http://stxx.sf.net) so without taglibs, there isn't much left to ActionForms. My forms are XML based, so I use commons-validator with custom XML validators, and JXPath to populate (treats the form element names as xpath expressions). My wizards that us

Re: Struts-Chain Roadmap and Inevitable Cocoon Analogy

2004-11-10 Thread Don Brown
Well, pipelines won't work for Struts in the strictest sense, as they rely on SAX and Struts isn't an XML transformation framework. The difference as I see it is struts-chain benefits the controller process, in other words, the process that is global to all requests. The actual handling of the re

Re: Struts-Chain Roadmap and Inevitable Cocoon Analogy

2004-11-10 Thread Don Brown
5:57 +0200, Emmanouil Batsis <[EMAIL PROTECTED]> wrote: > Don Brown wrote: > > >Well, pipelines won't work for Struts in the strictest sense, as they > >rely on SAX and Struts isn't an XML transformation framework. > > > > > > Struts could use a sitema

Re: talking about paradigms

2004-11-16 Thread Don Brown
Now, now, Peter, you can't quite say that since you met me at the Struts user group at JavaOne. :) I've used stxx, an XML transformation Struts extension, for a production app and have been pretty happy with it. Performance is good, as long as one has memory resources available. The stylesheets

Re: Struts and DreamWeaver

2004-12-22 Thread Don Brown
Try using Velocity insteald of JSP. Velocity works much better with Dreamweaver and the Velocity guys have put together the Velocity Struts Tools which should make the conversion easier. Don On Wed, 22 Dec 2004 12:02:21 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > This is my first time havin

Re: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread Don Brown
While I agree with everything James said, I do find use in IRC as sometimes, when working on a new Struts feature, I find it invaluable to get quick feedback from folks I know in the channel. I could use dev or user, but then I'd have to sit around for days waiting for responses. The IRC channel

Re: Flow Control, Is there a good way?

2005-01-26 Thread Don Brown
If you are adventurous, you might try Struts Flow - http://struts.sf.net/struts-flow It is a continuations-based process framework extracted from Cocoon that uses Javascript on the server side and continuations to allow both parallel flows by the same user, and browser back button presses automati

Re: Use of hashcode as ETag in Rest plugin.

2009-11-26 Thread Don Brown
The default etag value of the object's hashcode is really only meant as a helpful default to get you going. I'd highly recommend setting your own etag value with something like the underlying db row's timestamp or whatever. Don On Fri, Nov 27, 2009 at 2:44 AM, Unmesh joshi wrote: > > Hi, > Rest

Re: Finding out version of Struts2 by introspecting the struts2-core jar

2010-07-13 Thread Don Brown
On Wed, Jul 14, 2010 at 8:08 AM, Rohan Ranade wrote: > Hi all, > > I want to find out the version of Struts2 (2.0.x or 2.1.x) by introspecting > the struts2 core jar file. Is there a class which can be introspected to > find this out? (similar to > http://static.springsource.org/spring/docs/2.0.x/

Re: Finding out version of Struts2 by introspecting the struts2-core jar

2010-07-13 Thread Don Brown
pareAndExecute filter (2.1.x) to the web.xml. > > Thanks and Regards, > Rohan > > On Tue, Jul 13, 2010 at 5:27 PM, Don Brown wrote: > >> On Wed, Jul 14, 2010 at 8:08 AM, Rohan Ranade >> wrote: >> > Hi all, >> > >> > I want to find out the ver

Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0

2023-06-03 Thread Don Brown
I'm more excited about the prospect of struts 6.0! Is that based on chatgpt? On Sat, Jun 3, 2023, 22:57 Dale Newfield wrote: > Am I the only one that finds at least some humor in one sentence that > includes both "Struts 1" and the word "urgent"? :-) > > -Dale > > PS: I would guess, based on tra

[ANN] Struts Scripting 1.0.1 Released

2006-01-25 Thread Don Brown
The Struts team is pleased to announce the release of Struts Scripting 1.0.1for General Availability. This is the first stable release of Struts Scripting (formerly Struts BSF). It allows Struts Actions to be written in the scripting language of one's choice rather than as Java classes. It uses the

Re: Struts in Action book

2006-02-02 Thread Don Brown
We (Nick and I) were about 1/3 of the way through a 2nd edition that would cover Struts Action 1.3, when the WebWork 2 merger was brokered. We decided it would be better to target Struts Action 2.0 with the 2nd of Struts in Action, so we are starting again by working with Patrick and Jason, and me

Re: Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread Don Brown
Regarding stxx, you don't have to extend the stxx Action class, as you can use the static StxxHelper to perform all its functions. Also, you don't have to send it a prebuilt DOM, but can put objects in the request and let its XML serializer try to create an XML representation for you. Alternativel

Re: Display Struts Configuration

2006-04-13 Thread Don Brown
I don't know if this is what you are looking for, but I've found it useful in the past: http://struts.sourceforge.net/strutsdoc/index.html Basically, it is Javadoc for Struts, Tiles, and stxx configuration. Struts Action 2 (and WebWork) has: - SiteGraph http://www.opensymphony.com/webwork/wikido

Re: friday ha ha

2006-04-20 Thread Don Brown
Well said Ted! I'll add that while my attentions have lately been mostly towards getting WebWork 2 of the incubator and starting Struts Action 2, I certainly am not abandoning Struts Action 1. While all the activity might not be apparent on this list, we've been hard at work migrating to a new Ma

Re: Struts Equiv to RoR's controller, action, id

2006-04-21 Thread Don Brown
If you combine DispatchAction [1] with wildcards introduced in Struts 1.2, you can do something very similar: Then in Struts 1.3, we added the ability to pass multiple values to your action, rather than just one through the "parameter" attribute, which takes you the rest of the way:

Re: Multi-Application Support

2006-04-21 Thread Don Brown
I'm not sure what you mean by Multi-Application Support. If you mean modules, then yes, they are commonly used as a way to separate parts of an application. If you are looking for an example, look no further than the Struts Mailreader. The main advantage of modules is each gets its own RequestPr

Re: struts-config.xml plugin problem...

2006-04-21 Thread Don Brown
The problem is your custom plugin is declared as abstract, so Struts can't instantiate it: --- public abstract class LoggingPlugin implements PlugIn { --- Don On 4/19/06, Alan Treece <[EMAIL PROTECTED]> wrote: > > Many thanks for those that have replied to my earlier emails for > help... Hopeful

Re: Struts Equiv to RoR's controller, action, id

2006-04-25 Thread Don Brown
There is a quick note on set-property in the user guide [1], but I agree, it isn't very clear. Here is how works, using an ActionMapping as the example: - will have Struts call setFoo("bar") on the action mapping at startup, used when you have a custom ActionMapping class - will have Strut

Re: Struts Equiv to RoR's controller, action, id

2006-04-25 Thread Don Brown
I should note the second usage can be used with any ActionMapping, not just a custom one, as the ActionMapping class inherits BaseConfig, which has the properties methods. Don On 4/25/06, Don Brown <[EMAIL PROTECTED]> wrote: > > There is a quick note on set-property in the user guid

Re: Migration Path

2006-05-04 Thread Don Brown
Yes, if you pick up WebWork 2 today, you will be much better prepared for Struts Action 2 in the future. Currently, we are working on getting a release out that is pretty much a renamed WebWork 2 with a few minor improvements, but if you are on the dev list, you'll see there is a lot more discuss

Re: Make base Action class a dispatch action

2006-05-04 Thread Don Brown
I like it, although you should probably bring this over to the dev list. :) Don On 5/4/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: What we has been brought from the stone ages: * Base Action class does not dispatch events * DispatchAction and its flavors do, but they do not allow a user t

Re: Migration Path

2006-05-04 Thread Don Brown
so should Struts Action 2. If you find any issues, please file a ticket so they can be resolved quickly. Don On 5/4/06, Don Brown <[EMAIL PROTECTED]> wrote: > Yes, if you pick up WebWork 2 today, you will be much better prepared > for Struts Action 2 in the future. Currently, we

[ANN] Announcing the Struts Action 2 Project

2006-05-08 Thread Don Brown
The Apache Struts project and the members of the OpenSymphony WebWork 2 project are coming together to create the next-generation action-based web application framework, Struts Action 2. Since the merger announcement, the WebWork 2.2.2 code has successfully passed the Apache Incubator to seed the

Re: Validator and locale

2005-09-20 Thread Don Brown
The latest stable Struts, 1.2.7, doesn't support locale-specific numeric validations. This feature, having been added to Commons Validator 1.2.0, will be available in Struts 1.3 and is currently available in the source code repository and probably nightlies. Don On 9/20/05, Wojciech Ciesielski

Re: Why I Hate Struts Modules

2005-10-12 Thread Don Brown
Why not have the best of both? I've found this trick to be handy: 1. Define a common config file that contains items you want to share 2. For each module, specify both the common and module-specific configuration file. At runtime, they will be treated as if they were one big file to begin with. Th

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-12 Thread Don Brown
Why wouldn't you want to use modules? I find them a great organizational tool and way to customize each request processor for its section. Don On 10/11/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote: > > No, in our case it's mostly to make the code manageable. We're putting > code into separate p

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-01 Thread Don Brown
While you are certainly entitled to your opinion, I'd ask that you reserve judgement until at least the first Struts Ti release. Yes, we plan to seed Struts Ti with WebWork 2.2, but that doesn't mean it will stay that way or that Struts Action 1.x users and even code aren't important. I just star

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-01 Thread Don Brown
Well, considering I started work a couple of hours ago, no, nothing yet :) I can tell you my approach I thought of today - replace the WebWork ServletDispatcher with a Common-Chain RequestProcessor then weave in a command or two that detects what type of action is being called, and delegates to the

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-01 Thread Don Brown
On 12/1/05, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > One other question - ti/phase2 is already there, and ti/phase1 comes > next? Are we counting down, whats the insight into the nomenclature? Dessert first? :) When we started Struts Ti, it was conceived as a new framework that aimed to simpl

Struts BOF at ApacheCon, Tuesday 21:30 @ East 411

2005-12-06 Thread Don Brown
[reposting to Struts users] I've tentatively scheduled a Struts Birds of a Feather (BOF) at ApacheCon for Tuesday at 21:30 (9:30 PM) in East-411 [1]. We have a lot to talk about including Shale, Struts Ti, and Struts Action 1.3.0, so I look forward to seeing everyone there. Don [1] - http://wik

Re: Wildcards in actionmapping and dodgey URLs

2006-01-12 Thread Don Brown
You handle it just as you would if you didn't use wildcards and the user typed a non-existent URL. The typical way to handle this would be to define an action mapping and set unknown="true" to tell Struts to call it if it cannot find the requested action. Don On 1/12/06, Josh McDonald <[EMAIL PR

Re: How to improve dojo performance in Struts 2.0.9

2007-10-09 Thread Don Brown
To add to that, there are really two wiki's - official docs (WW) and the informal docs (S2WIKI), and only the former requires a CLA. Anyone can access and edit the S2WIKI. The fact that the main docs require an CLA is a business decision, and not a limitation of the wiki software. As Dave mention

Re: Struts 2 Plugin

2007-10-10 Thread Don Brown
Let us know how overriding the default stack turns out. In other plugins, I've been creating new stacks, then assuming a user would just use that stack. Also, I'd make that stack the default stack in the plugin package, something like myplugin-default, so that if a user extended it, my stack woul

Re: Struts 2 Plugin

2007-10-10 Thread Don Brown
ave some more thought put to the problem, so please do share any findings. Don > > On 10/10/07, Don Brown <[EMAIL PROTECTED]> wrote: > > Let us know how overriding the default stack turns out. In other > > plugins, I've been creating new stacks, then assuming a user wo

Re: Struts 2 Plugin

2007-10-10 Thread Don Brown
On 10/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey Don! I feel as though I know you. Aren't you writing the infamous > Struts 2 in Action book? :) To be fair, I'm operating in more of a reviewer capacity, as the large majority of the work is being written by the excellent author, Ch

Re: Struts 2 Plugin

2007-10-12 Thread Don Brown
default. It appears the default-interceptor-ref tag does not extend > beyond the package that contains it. Funny thing is, the framework knows > when you are trying to use a name that already exists in *another* package! > > Scott > > > > > On 10/10/07, Don Brown <[

Re: [S2.1] url action mapping problem (restful)

2007-10-25 Thread Don Brown
You are correct, #3 isn't possible right now with the rest plugin, however, it is certainly on the near-term roadmap. What is needed is the ability to define wildcards in the namespace, also known as url templates. For example, you could do something like @Namespace("/states/{state}") on your Cit

Re: [S2] Change struts-default.xml content

2007-10-25 Thread Don Brown
Currently, the TextProvider impl is not pluggable. Note that Action classes themselves can implement TextProvider (and usually do via ActionSupport), so they can customize it all they need. What is your usecase for having your own TextProvider? That class is only used in a few places, so perhaps

Re: [S2.1] url action mapping problem (restful)

2007-10-26 Thread Don Brown
space("/states/{state}"), then define a setState() method on your controller to get the 'state' value. Don On 10/26/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Don Brown wrote: > > You are correct, #3 isn't possible right now with the rest plugin, > >

Re: [S2.1] url action mapping problem (restful)

2007-10-27 Thread Don Brown
.opensymphony.com/svn/xwork/trunk > Revision: 1663 > URL: https://svn.apache.org/repos/asf/struts/struts2/trunk > Revision: 589251 > > Thanks, > Jeromy Evans > > Don Brown wrote: > > The code has been checked into XWork, but since the upcoming Struts > > 2.1.0 rele

Re: [S2.1] url action mapping problem (restful)

2007-10-28 Thread Don Brown
y, I appreciate the feedback, but perhaps we should take future threads over to the dev@ list as that is where the other Struts devs are. Also, feel free to open tickets and attach patches to fix bugs and/or implement new features. The more help, the better :) Don > > regards, > Jeromy Evan

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Don Brown
On Nov 8, 2007 12:29 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Gary Affonso <[EMAIL PROTECTED]> wrote: > > > Look at the "Dynamic Method Invocation" section, > > > 1/2-2/3 of the way down. > > Well, that explains it. The wildcard feature seems > > to come from s1 (which I never used) and

Re: s2 and DispatchAction

2007-11-12 Thread Don Brown
Little known fact, but you can specify the method via: "?method:MY_METHOD_NAME" This code exists to support the method attribute on the submit tag, allowing you to submit the form to different methods based on what button is clicked. Don On Nov 13, 2007 2:29 AM, Jim Theodoridis <[EMAIL PROTECTE

[s2] REST and Plugin ideas

2007-11-16 Thread Don Brown
After ApacheCon (slides from my REST talk available [1] ), I had on my mind a few projects that I'm thinking about working in no particular order. Anyone interested in REST and/or Struts 2 Plugins, give it a look and please chime in with your ideas. http://www.jroller.com/mrdon/entry/struts_2_res

Re: REST plugin and security

2007-12-13 Thread Don Brown
If you are putting username and password in the soap headers, why not just use basic authentication for your REST services, which basically does the same thing? If over the wire security is a problem, use HTTPS. Don On Dec 14, 2007 1:44 AM, Martin Gilday <[EMAIL PROTECTED]> wrote: > Hi, > We are

Re: REST plugin and security

2007-12-16 Thread Don Brown
nclude anything with a slash. Well, you can, but it'll have to be created using normal XWork configuration and perhaps a few wildcards. Don > > Martin. > > > > - Original message - > From: "Don Brown" <[EMAIL PROTECTED]> > To: "Stru

Re: xwork 2.1 changes?

2007-12-16 Thread Don Brown
On Dec 17, 2007 9:12 AM, Dale Newfield <[EMAIL PROTECTED]> wrote: > Attempting to upgrade to 2.1 to finish my optiontransferselect testing > (in 2.0.11 the "select all before submit" is implemented by dojo, which > I'm not using, so I'm still not quite done--when I am I'll post any > appropriate .f

Re: [struts] xwork 2.1 changes?

2007-12-16 Thread Don Brown
Then when is the code running? In the inbound or outbound? Sitemesh works because it is activated on the outbound, and so should your filter. If inbound, then it won't, because the action proxy hasn't been called yet. Don On Dec 17, 2007 4:10 PM, Dale Newfield <[EMAIL PROTECTED]&

Re: [S2] [ANN] S2 plugin for JetBrains IntelliJ IDEA 7

2007-12-30 Thread Don Brown
Very cool, good work! Make sure to update the IDE plugins page: http://cwiki.apache.org/confluence/display/S2WIKI/Related+Projects Don On Dec 31, 2007 5:40 AM, Yann Cébron <[EMAIL PROTECTED]> wrote: > > Hello all, > > some of the IDEA users here may already have seen it: there's a new plugin > t

Re: Struts 2 and Container resources

2008-01-14 Thread Don Brown
Do you want a bean from the Container? If so, just put an @Inject annotation above a setter. For example, to get the ObjectFactory, put this code in your Action: @Inject public void setObjectFactory(ObjectFactory factory) { this.objectFactory = factory; } Since Actions, Results, and Intercept

Re: Cos multipart plugin, where is it?

2008-01-19 Thread Don Brown
It was pulled due to lack of license compatibility. It had a special license that required every member of your development team to buy a copy of Jason Hunter's Servlets book if you used it in a production system. Don On Jan 19, 2008 10:11 PM, deepak aggarwal <[EMAIL PROTECTED]> wrote: > I have

Re: Cos multipart plugin, where is it?

2008-01-19 Thread Don Brown
nges to make it work and maintain > the source code? > > Deepak > > > On Jan 19, 2008 4:49 PM, Don Brown <[EMAIL PROTECTED]> wrote: > > It was pulled due to lack of license compatibility. It had a special > > license that required every member of your development

  1   2   3   4   >