Re: Multiple controller servlets

2001-12-03 Thread Ted Husted
These wouldn't exist as such on the ActionResource interface I suggested. These are really just shortcuts to the API for the underlying resources, like formBeans.addFormBean(formBean); So, if someone wanted to do them through an ActionResources object, they could do the same thing actionResour

RE: Multiple controller servlets

2001-12-03 Thread Donnie Hale
Ted, There are a number of public methods on ActionServlet right now like: addDataSource addFormBean addForward addMapping Some of them are used in various actions package classes to do things dynamically. I'm guessing that there are deployed Struts apps out there which also use these methods a

Re: Multiple controller servlets

2001-12-03 Thread Ted Husted
I had originally thought we might start posting an ActionResources object in the request, so it would be there when we started to refactor the tag extensions, and also for the use of other presentation systems like Velocity templates. So, for a time, it would really be redundant, and could just ge

Re: Declarative Exception Handling

2001-12-03 Thread Ted Husted
Laine Donlan wrote: > > perhaps some time later nobody will remind old perform(), but would > use > > new execute() ;-) > > OK by me, especially if the controller were somehow smart enough to call > one or the other if both approaches were mixed in the same application > (during a migration peri

Struts Validator: 'fatal' and 'non-fatal' validations

2001-12-03 Thread Alan Bowsher
Hello, This deals with the Struts Validator, and is a suggestion for a minor enhancement/extension. The application I'm working on needs to be able to distinguish between 'fatal' and 'non-fatal' validations (for lack of a better term). Fatal validations mean that the page should not be submitte

bean:write format attribute changes bean:write default behavior

2001-12-03 Thread Deadman, Hal
I have some code that uses bean:write and the datetime:format tag from taglibs project. I use it like this: The bean:write used to print out the number of milliseconds returned by getBeginDate().getTime(). I got a nightly build and now the bean:write prints the number of milliseconds with comm

RE: Multiple controller servlets

2001-12-03 Thread Donnie Hale
Ted, The stepwise refinement sounds like a reasonable way to go. I've got a good chunk of one definite piece of that done - a "resource repository", which would implement most of your proposed interface (it has no knowledge of requests at present); and a "config handler", which reads servlet init

RE: Proposal for form-based security

2001-12-03 Thread Alex Ross
We're definitely looking at doing something similar as well, so the interest level is definitely here though we haven't had the chance yet to define an implementation. BTW, I noticed that Websphere v4 uses Struts for its Administrator Console! Does that mean that Websphere could be added to the "

Re: FW: Opinion on design ideas???

2001-12-03 Thread Incze Lajos
On Mon, Dec 03, 2001 at 03:29:26PM -0500, Ted Husted wrote: > The standard ActionForward and ActionInclude Actions create a > RequestDispather in the Action, and do call another servlet directly, > without going back to the container. > > http://jakarta.apache.org/struts/api-1.0/org/apache/strut

RE: Declarative Exception Handling

2001-12-03 Thread Laine Donlan
Couple of comments in-line - -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 3:15 PM To: Struts Developers List Subject: Re: Declarative Exception Handling Dimitri Valdin wrote: > Since I see no reason to define hundreds of different except

Re: FW: Opinion on design ideas???

2001-12-03 Thread Ted Husted
The standard ActionForward and ActionInclude Actions create a RequestDispather in the Action, and do call another servlet directly, without going back to the container. http://jakarta.apache.org/struts/api-1.0/org/apache/struts/actions/ForwardAction.html I recently suggested some additional met

Re: Declarative Exception Handling

2001-12-03 Thread Ted Husted
Dimitri Valdin wrote: > Since I see no reason to define hundreds of different exceptions, > which are very similar in their nature and are handled in a similar way, > I would propose: > > *) introduce 2 base exception classes: AppException and RuntimeException > which should support constructors

Re: FW: Opinion on design ideas???

2001-12-03 Thread Incze Lajos
No, the question is entirely independent from velocity. There are many possibilities to render a view. E.g. Maverick "domifies" a data structure and gives it to an XSL transformer, etc. What I was wonder was simply the WRAPPING of the view helper. To me it seems to be natural to hide (and make it

Re: Declarative Exception Handling

2001-12-03 Thread Dimitri Valdin
Since I see no reason to define hundreds of different exceptions, which are very similar in their nature and are handled in a similar way, I would propose: *) introduce 2 base exception classes: AppException and RuntimeException which should support constructors like: AppException("error.passwo

Re: Well-formed markup.

2001-12-03 Thread crazybob
It's not a pressing issue. I'm writing some interface XSL's that perform transformations on HTML forms. Part of the incentive of choosing XSL over a custom tag library is that I can make them work with both Struts (which I'm trying to get my team to move to) or regular forms. For this to work,

Re: FW: Opinion on design ideas???

2001-12-03 Thread Ted Husted
If the one and only goal is getting Struts to use Velocity templates, then, yes, a VelocityAction is going work every bit as well as a VelocityServlet. And maybe that's the way to go. A developer could choose to either extend it, or maybe just forward to a base VelocityAction that did what the Vel

RE: Well-formed markup.

2001-12-03 Thread Matt Raible
I've converted the struts tags to be xhtml-compliant and posted the changes to this list. However, they haven't been committed to the nightly build. I can send you a struts.jar with the updated tags if you'd like. Basically, if you have , then all the rest of the tags will use the XHTML-complia

DO NOT REPLY [Bug 5244] - Declaritive Exception Handling

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5244] - Declaritive Exception Handling

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5244] New: - Declaritive Exception Handling

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Well-formed markup.

2001-12-03 Thread crazybob
Have you guys considered having the html tags output well-formed markup, to make Struts compatible with xhtml? i.e. rather than ? Is there a reason that it doesn't already do this (eg. browser incompat.)? Thank you, Bob -- To unsubscribe, e-mail: For additional

Re: FW: Opinion on design ideas???

2001-12-03 Thread Incze Lajos
> Typically, the View Helper is another servlet, but there's no reason why > it couldn't be another Action. (After all, the dispatchers are typically > servlets too.) ... > > > > I agree with that to the extent that the view will be in another servlet, > > which means in the vast majority of cas

RE: setMappedProperty

2001-12-03 Thread Rey Francois
The Struts PropertyUtils is now deprecated: all further developement is done within the commons beanutils project. Future Struts release after 1.0.x will use the new commons library. If you really want this feature with Struts 1.0.x, see this posting: http://www.mail-archive.com/struts-dev@jakarta

Re: Proposal for form-based security

2001-12-03 Thread Adam
I have actually implemented something along the lines of the custom tags for my project, although I have to admit I"Roled my own" security without learning how to do J2EE security, and now am in the process of retrofitting. directory So we should replace "permission" with "role" but th

Re: Parameters and chaining

2001-12-03 Thread Ted Husted
If you were able to patch a copy of ActionServlet, and run them through some of your use cases, that would help move them along. I could provide a patched jar based on the nightly build if that would help. These compile, but haven't been tested: public ActionForm createActionForm(String path)

Re: Proposal for form-based security

2001-12-03 Thread LATOURNERIE Michel
Hello Matt, Controling pages look and feel according to users roles is also exactely what I need and what I am currently working on. The solution you suggest is interesting because it is simple and covers most cases. However I am looking for a solution that 1 - would keep the security informat

setMappedProperty

2001-12-03 Thread Diego Amicabile
Hi people, I wonder why the PropertyUtils class in struts does not include the method setMappedProperty. like in org.apache.commons.beanutils Why wasn't this feature implemented? Would it be difficult? Greetings and thank you for your great work. Diego _

RE: Parameters and chaining

2001-12-03 Thread Tim Moore
This would be very helpful for me! I'm desigining an application with a fairly complex internal navigation structure and until the workflow commons package is in a more complete state I've had to make do with an ad hoc scheme that has been seriously hindered by the inability of an action to set r

Re: Future Struts releases

2001-12-03 Thread Cedric Dumoulin
Ted Husted wrote: > So, now that 1.0.1 is in the queue, we may want to make some decisions > regarding 1.1. > > ... > > [Tiles,Validator] > > The next question is whether David and Cedric are interested in > proposing their components to Taglibs or the Commons, or would prefer to > leave them h

Re: Multiple controller servlets

2001-12-03 Thread Ted Husted
Donnie Hale wrote: > Re: the proposed interface - I'd like to see one, perhaps a base interface > for what you're proposing, which has access to everything for which the > current request isn't needed. And that's most of those elements. That way > all Struts elements that need the non-request-base

Re: FW: Opinion on design ideas???

2001-12-03 Thread Ted Husted
Apologies to Dan Malks et al. The book is of course called Core J2EE Patterns ;-0 Ted Husted wrote: > In Core J233 Pattern terms, Struts implements a "Service to Worker" -- To unsubscribe, e-mail: For additional commands, e-mail:

Re[2]: cvs commit:jakarta-struts/src/example/org/apache/struts/webapp/exampleApplicationResources_ru.properties

2001-12-03 Thread Oleg V Alexeev
Hello Martin, Nothing to do, Martin... 8) So I write properties file with my language support and process it with JDK utilite - native2ascii. This tool perfom conversion from national codepages to the unicode. Friday, November 30, 2001, 8:06:18 PM, you wrote: MC> Just curious - how do you gener

Re: FW: Opinion on design ideas???

2001-12-03 Thread Ted Husted
Donnie Hale wrote: > > I understand that sentiment and, in general, agree with it. I just don't > think the underlying premise of "servlet = controller only" or "servlet = > view only" is necessarily valid. I think it's possible to have the > controller and view be decoupled but still run in the

Re: Parameters and chaining

2001-12-03 Thread Oleg V Alexeev
Hello Ted, I think that second variant is more useful, but why not to implement ActionServlet.invokeAction() method with help of number public methods? So developer can write his own code on base of it. Saturday, December 01, 2001, 5:35:58 AM, you wrote: TH> Going back to TH> http://www.mail-

RE: Future Struts releases

2001-12-03 Thread Alexander Jesse
Hi, just a word of caution...For some obscure political reasons it might be possible that people are constrained to use servlet-containers that have severe problems with classpath-length. For example under JRun (be it on NT or on Solaris) the unified struts-jar works, but as soon as the applicat

Re: Proposal for form-based security

2001-12-03 Thread SRadford
Hi, My first thought on this proposal would be that you're putting business logic into the presentation layer. I'm afraid I haven't time at present to formulate a 'neater' solution. Regards, Sean   "Matt Raible" <[EMAIL PROTECTED]> 30/11/2001 21:37 Please respond to "Struts Developers