Re: [SHORT TERM PLANS]

2001-12-15 Thread Ted Husted
Ooops, one more. * Adjust the build process so that there is a struts-core.jar and a struts-tags.jar Ted Husted wrote: > > So to wrap up several outstanding threads, here's what is on my > near-term agenda > > * Commit the initial ContextHelper to ActionServle

[SHORT TERM PLANS]

2001-12-15 Thread Ted Husted
uld also revisit the base class for exception handling sometime soon. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional c

Re: i18n Forwards

2001-12-14 Thread Ted Husted
. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: i18n Forwards

2001-12-14 Thread Ted Husted
'd be pretty easy to > add one more overloaded method that takes an array instead. Yes. People have asked about that several times, but I've never been sure of the answer. I wondered if it was because we had to use a certain number of parameters in the bean tags. But we could do both, yes

Re: i18n Forwards

2001-12-14 Thread Ted Husted
to do with the taglibs? "Craig R. McClanahan" wrote: > > On Fri, 14 Dec 2001, Ted Husted wrote: > > > Date: Fri, 14 Dec 2001 18:18:18 -0500 > > From: Ted Husted <[EMAIL PROTECTED]> > > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > >

i18n Forwards

2001-12-14 Thread Ted Husted
ites. But then, what do I know about i18n projects ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail

Re: DO NOT REPLY [Bug 5395] New: - ActionContext class

2001-12-14 Thread Ted Husted
ribute name, so it won't conflict with anything 3) fully expect people to change that to use it with a templating system Unless anyone has a better idea -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.

Re: DO NOT REPLY [Bug 5395] New: - ActionContext class

2001-12-14 Thread Ted Husted
One implementation issue is what to call the thing in the request context. I have this set to be configurable from the web.xml. For lack of a better idea, I'm calling the parameter "shared" -- the idea it being our shared resources. For a default, I started with the usual, Action.CONTEXT_KEY

Re: DO NOT REPLY [Bug 5395] New: - ActionContext class

2001-12-14 Thread Ted Husted
the early results look good. I'm sure the class will need some work, but would like to know if anyone sees any issues with the idea. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ [EMAIL PROTECTED

Re: nesting beans not standard in Struts?

2001-12-14 Thread Ted Husted
>From my perspective, the nesting beans library is still relatively new. Once we add it to the CVS, we are on the hook for maintaining it. Arron recently said he was really, really done this time, but, personally, I'm waiting to see what happens (or doesn't happen ;-). I'd also need to carve some

Re: form initialization

2001-12-14 Thread Ted Husted
You really *MUST* post these questions to the user list where there are more people to help you. But, yes, you can write a Javascript that clears the fields. Anything you want to do "client-side" is going to involve Javascript, and is technically outside the scope of the framework. Colin Sharpl

Re: role based actions

2001-12-11 Thread Ted Husted
Craig, have you looked at Nic Hobb's extension? http://husted.com/struts/resources/struts-security.htm There's a place on my agenda where I was going to try it myself, but still haven't gotten there. -Ted. "Craig R. McClanahan" wrote: > Adding this (and a few of the other recent enhancements)

Re: Freetext attribute for all tags...

2001-12-11 Thread Ted Husted
l have to accept that burden. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Freetext attribute for all tags...

2001-12-11 Thread Ted Husted
I'm sure there would be a way to rollback the CVS; Craig or Martin may know more about that. But, since there haven't been any other changes here, the simplest thing, as you said, might be to retrieve the prior versions from a nightly build, and paste those over the current version, and commit t

Re: Freetext attribute for all tags...

2001-12-11 Thread Ted Husted
hould be rolled back. At least we have hashed this out, and can refer to this thread in the future, or bring it up in the FAQ (along with why ActionForms are not a *@#$!&% interface ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel

Re: Freetext attribute for all tags...

2001-12-10 Thread Ted Husted
just that I feel we have not paid close enough attention to the > TH> naming of things in the past, and we might want "measure twice" before > TH> we document this. > > TH> -- Ted Husted, Husted dot Com, Fairport NY USA. > TH> -- Custom Software ~ Technical

Re: Struts & Filters (Servlets 2.3)

2001-12-10 Thread Ted Husted
I'd say that requiring Servlet 2.3 / 1.2 would justify a major version increase, and so maybe we should start whiteboarding Struts 2.0 to use a Filter instead of a Servlet for the controller. Among others, one thing that just came up under the "would've and "should've" heading was handling excepti

Re: Freetext attribute for all tags...

2001-12-10 Thread Ted Husted
Is freetext all right with everyone, or should we use something like literal custom or verbatim It's just that I feel we have not paid close enough attention to the naming of things in the past, and we might want "measure twice" before we document this. -- Ted Husted,

Re: FW: Opinion on design ideas???

2001-12-09 Thread Ted Husted
Ted Husted wrote: > But, the Struts framework is really about about the Controller. You can > use Actions as View Helpers, but if these views were going to be the > basis of *my* application, I'd put the rendering engine in its own > servlet. Though, I suppose, if someone reall

Re: FW: Opinion on design ideas???

2001-12-07 Thread Ted Husted
, but if these views were going to be the basis of *my* application, I'd put the rendering engine in its own servlet. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail:

Re: Declarative Exception Handling

2001-12-04 Thread Ted Husted
Yes, something like that is definately going to find its way into the distribution. But -- there are advantages with the exceptions being handled at the ActionServlet level. Perform really should have just thrown Exception to begin with. And so we're just noodling ways to get there from here. T

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 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
ception and be called by the ActionServlet, and the perform() form would not be called at all. So, like, deprecate perform() in favor of execute() (or something), if we can get the controller to gracefully choose between them. But I'm not sure how that would work ;-) -- Ted Husted,

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
this pattern into their existing base classes. Many people are already using some variation of "doPerform". > 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 on

Re: FW: Opinion on design ideas???

2001-12-03 Thread Ted Husted
class that into a VelocityActionServlet that knew about the Struts resources. (If that part were actually needed.) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ Incze Lajos wrote: > > >

Re: Parameters and chaining

2001-12-03 Thread Ted Husted
reate(mapping,request); ActionForward forward = processActionPerform( action,mapping,form,request,response); return forward; } -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/s

Re: Multiple controller servlets

2001-12-03 Thread Ted Husted
ith techniques like Extract Method and Extract Class, to first make the current design easier to follow and extend. Examples being the proposed ActionResource interface and the suggestion of an ActionProcess class for the process* methods. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom So

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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: FW: Opinion on design ideas???

2001-12-03 Thread Ted Husted
e way, we have found a number of resources that we would like to share among components, and a coherent API to organize the resources is over due. A way for multiple ActionServlets to share their resources with the application is also going to be needed. The API would still be exposed through the co

Re: Multiple controller servlets

2001-12-02 Thread Ted Husted
The code looks fine, but I'd be glad for a second on committing this. (Developer votes welcome.) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PR

Re: Declarative Exception Handling

2001-12-02 Thread Ted Husted
s, so they do not get lost in the shuffle. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Future Struts releases

2001-12-01 Thread Ted Husted
Ted Husted wrote: > [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 here. Your call, guys. I believe that you have both indicated > an interest in broad

Parameters and chaining

2001-11-30 Thread Ted Husted
orward ActionForward chainForward = servlet.invokeAction( "/do/another/Action",form,request,response); (Quick, someone talk him down off the ledge.) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/

Re: Future Struts releases

2001-11-30 Thread Ted Husted
cating the original perform when this mode is being used. Or maybe we need to do the multiple controller thing, so you could send some URIs to an ExceptionController and leave others with the original. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel

Re: Future Struts releases

2001-11-30 Thread Ted Husted
yway ;-) The 2.0 codebase might also leverage filters and other new technologies. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: General model question ?

2001-11-30 Thread Ted Husted
've been just annexing it to the package.html file, as part of the overview. http://jakarta.apache.org/struts/api-1.0/org/apache/struts/taglib/html/package-summary.html#package_description So then, like the technical taglib docs, it doesn't become an entirely separate file to maintain. -- T

Re: General model question ?

2001-11-29 Thread Ted Husted
but most developers need to persist something like this to a conventional database. We typically add a Developers Guide to a taglib, where we could put notes about your serialization example, alogn with any notes on mapping this back to a database. Is anyone using an O/R tool that would work well

Re: Multiple controller servlets

2001-11-28 Thread Ted Husted
Actually, I take part of that back. We can't refactor 1.0.1 for multiple servlets, since that would be new functionality. But I can still see doing this in phases, with a release number in between. Ted Husted wrote: > > I could be convinced that we can refactor 1.0.x for multiple ser

Re: Multiple controller servlets

2001-11-28 Thread Ted Husted
their own ready-to-download extensions (as Cedric, David, and Oleg have all done), then one of us will eventually smell the coffee, nominate them to be a committer, and eliminate the middleman. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 71

Re: Extensibility of struts & Property Security

2001-11-28 Thread Ted Husted
hat makes direct changes to the system state via a public property which accepts a single String or boolean parameter. Protected or private properties or properties with complex signatures or types will not make it past the autopopulation guantlet. -- Ted Husted, Husted dot Com, Fairport NY USA. --

Re: Extensibility of struts & Property Security

2001-11-28 Thread Ted Husted
nested > objects. > When is Struts going to *properly* support this!!??... > > Arron. > > Ted Husted wrote: > > >Personally, I have the feeling that it's better to encourage people to > >define a proxy object, or wrapper, as was done with the ActionServlet, > &g

Re: Extensibility of struts & Property Security

2001-11-27 Thread Ted Husted
Personally, I have the feeling that it's better to encourage people to define a proxy object, or wrapper, as was done with the ActionServlet, than invent a special class for people to learn. I actually believe that this is the approach that should have been used in the first place, and in other p

Re: Fwd: Re: Extensibility of struts... a solution, maybe

2001-11-27 Thread Ted Husted
http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=813 "So, someone could also call getServlet().setTempDir(whatever) with http://whatever.com/do/someAction?servlet.tempdir=whatever Hmmm." -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technica

Re: Multiple controller servlets

2001-11-27 Thread Ted Husted
We just changed the ActionForm to use a wrapper object, rather than the original, since exposing the ActionServlet this way can be exploited. I'm just thinking that many of the components that we use may have wider user, and we should avoid binding things to the ActionServlet class. Avoding t

Re: Multiple controller servlets

2001-11-27 Thread Ted Husted
n. At runtime, it could then pluck it's own bean, and put it into the request. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ Tim W Wilson wrote: > > Is there anything wrong with having a

Re: Struts extensibility, multiple servlets, etc. (cont.)

2001-11-27 Thread Ted Husted
ace sent the wrong message. Of late, it has become a support burden, and I don't see committers stepping up to the plate to answer the difficulties people report when using the Generic Pool in a production environment. (Probably because none of us are.) Struts is now considered a production t

Re: Fwd: Re: Extensibility of struts... a solution, maybe

2001-11-27 Thread Ted Husted
It's true that I don't have the bandwidth right now to take a careful look at your code, but I'm sure its quite good. It's linked both on my site and the Struts resource page, and I'm sure people are getting value from it. My statement about nesting objects on ActionForm does hold. Strut's autopo

Re: Fwd: Re: Extensibility of struts... a solution, maybe

2001-11-27 Thread Ted Husted
uploads from a browser. It now uses a ActionServletWrapper to only expose the non-String properties which are absolutely needed (a proxy object). So it's important that any object nested on an ActionForm not make state changes without validation, at least through String and boolean propert

Re: Fwd: Re: Extensibility of struts

2001-11-26 Thread Ted Husted
o it. This would solve the problems with tags like textarea, where the wrap attribute is not an official attribute. So, there we could use literal="wrap=virtual" and have it add that to the textarea tag. Of course, we would add this to all the tags, for consistency. -- Ted Husted, Hus

Re: General model question ?

2001-11-26 Thread Ted Husted
The reflection API has been steadily improved with each JVM release, and you may find that the performance difference is now neglible. In fact, weighed against loading scads of custom code just to populate values, it may be more performant. http://husted.com/struts/resources/performant.htm box w

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-25 Thread Ted Husted
method of the class can look that up whenever they want. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-25 Thread Ted Husted
rt of the ActionForm. > What do you mean by "annexed"? I don't see it anywhere in CVS? I meant attached. I haven't a test for the DispatchAction handy, and really can't commit it without one. Should work though. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-25 Thread Ted Husted
ng could be done, since we call the same "sendError" block several times, but it would just be more instances of "extract method". And some point between Struts 1.x and Struts 2.x, I'd like apply a great many instances of "extract method" throughout the framework,

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-25 Thread Ted Husted
Erik Hatcher wrote: > - Standardizing on the class names. I suggest yours be renamed > LookupDispatchKeyAction, since LookupAction is pretty generic and there will > be several "lookup" style base classes. I'd like to keep the "dispatch" moniker out of this one, since it makes it sounds like it

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-24 Thread Ted Husted
e "controller", the ActionServlet is just the infrastructure which enables it. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Struts extensibility, multiple servlets, etc. (cont.)

2001-11-24 Thread Ted Husted
at Struts, Velocity, and the i18n tags could all share it, I doubt that anyone here would object. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-24 Thread Ted Husted
us on why the switch. Just the general idea that extensions add on to the end. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-24 Thread Ted Husted
Ted Husted wrote: > Here's a first > blush at a separate LookupAction that doesn't use the reflection > techniques from DispatchAction. Attached, this time. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- ht

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-24 Thread Ted Husted
ng in another Action, the "other" perform could just return a forwarding to another Action. So, you can mix and match the "many" versus "few" Action strategies as needed. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. --

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-24 Thread Ted Husted
uot;/test.jsp"> > > > Instead of calling return mapping.findForward(forwards[i]) it might be > interesting to instantiate the action, similar to as it is done in > ActionServlet > (protected Action processActionCreate) and just call it's perform() method. > It

Re: Struts extensibility, multiple servlets, etc. (cont.)

2001-11-24 Thread Ted Husted
where you want to park the code. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: General model question ?

2001-11-22 Thread Ted Husted
my ActionForm beans, which, with BeanUtils.populate() can be an easy way to populate your business beans. In fact, these are so useful, we moved them to theCommons for 1.1 ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http

Re: Struts extensibility, multiple servlets, etc. (cont.)

2001-11-22 Thread Ted Husted
onnection pool to the Commons, if someone wanted to maintain it. Or maybe we could adopt Excalibur's instead. Binding the datasource to the servlet context is problematic in a layered architecture, and IMHO, sending developers the wrong message. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Will writing Actions in script make sense?

2001-11-22 Thread Ted Husted
purpureleaf lee wrote: > Any comments? I think it makes sense for a number of use-cases, and is the same general direction that is taken by the Workflow Proposal. A declared goal there is to enable business domain experts to program workflows without being Java engineers, using the equivalent of

Re: [VOTE] Struts 1.0.1 Release

2001-11-21 Thread Ted Husted
Ok, I'm +1 on a release candidate whenever you are Martin. I tried to get the docs ready so all you would have to do is wrap it up and post it. Thanks for taking the lead on this! (And now I'm off to see another wizard, Harry Potter ;-) -T. [EMAIL PROTECTED] wrote: > > Many bug fixes and doc

Re: cvs commit: jakarta-struts/src/share/org/apache/struts/uploadBufferedMultipartInputStream.java MultipartIterator.java

2001-11-21 Thread Ted Husted
> #4701, report a premature closing of the input stream, instead of > leaving it up to a NullPointerException > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4701 > > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 21, 2001 6:5

Re: Resources page for Struts 1.0.1

2001-11-21 Thread Ted Husted
I'm scrolling through the 1.0.1 docs now, and will port over improved sections, like the resources page, kickstart faq, the Learning about Struts section from the index page, et cetera. Ted Husted wrote: > > No reason whatsoever. > > There are several other documentation bits

Re: cvs commit: jakarta-struts/src/share/org/apache/struts/upload BufferedMultipartInputStream.java MultipartIterator.java

2001-11-21 Thread Ted Husted
So, in the release notes (nightly and 1.0.1) we're saying Improved error-handling on out of bounds conditions Does that cover well-enough what we're doing here? [EMAIL PROTECTED] wrote: > > mschachter01/11/20 21:04:36 > > Modified:src/share/org/apache/struts/upload Tag: STRUTS

Re: Resources page for Struts 1.0.1

2001-11-20 Thread Ted Husted
No reason whatsoever. There are several other documentation bits that I'd like to post before we freeze tomorrow. I just forgot to think about the 1.0.1 docs whilst updating the main branch. [EMAIL PROTECTED] wrote: > > I just checked in some updates to the Resources page for the main trunk. >

Re: Other possible tools for paging collections

2001-11-16 Thread Ted Husted
husted.com/struts/resources/struts-simple.zip -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Multiple controller servlets

2001-11-16 Thread Ted Husted
fixed, to avoid collissions. The resources and other other configurations (like validation.xml) are tightly coupled, and should be considered part of a greater whole. > -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted

Re: [VOTE] Struts 1.0.1 Release

2001-11-16 Thread Ted Husted
hat I will conform as well, but that will be done before the 21st. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Multiple controller servlets

2001-11-16 Thread Ted Husted
only if the ActionMappings were not found in the request. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ Tim W Wilson wrote: > > I agree with everything that been said so far, and thank you

Re: Multiple controller servlets

2001-11-15 Thread Ted Husted
Wilson > Eclipse WSED Architecture & Development > internet: [EMAIL PROTECTED] > (919) 254-0029 (TL 444-0029) > > Ted Husted <[EMAIL PROTECTED]> on 11/15/2001 09:58:00 AM > > Please respond to "Struts Developers List" <[EMAIL PROTECTED]> > > To: St

Re: Multiple controller servlets

2001-11-15 Thread Ted Husted
nsions (validator/tile mappings, object factories, et cetera). -T. [EMAIL PROTECTED] wrote: > > - Original Message - > From: "Ted Husted" <[EMAIL PROTECTED]> > To: "Struts Developers List" <[EMAIL PROTECTED]> > Sent: Wednesday, November 14, 2001

Re: [SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-15 Thread Ted Husted
ValidatorForm in the contrib folder generates *lots* of Javascript. The html:form tag also generates a Javascript to move the focus, as do some others. So, I don't see anything wrong with a tag that generated Javascript for setting a property. Heck, I'm doing by hand myself ;-) -- Ted Husted,

Re: request param/property decoupling in struts-html taglib

2001-11-14 Thread Ted Husted
Does that sound workable? > > L. > > On Wed, 2001-11-14 at 17:34, Ted Husted wrote: > > I'm not sure how this would work. > > > > The request parameters are meant to match the properties on an > > ActionForm bean. If they do not match the ActionForm properties,

Re: request param/property decoupling in struts-html taglib

2001-11-14 Thread Ted Husted
ne by reflection, so the property names do matter, and cannot be changed on the fly. If I understand your requirements, Struts would not be a good choice, since the way Actions are specified in the html:form tag makes them difficult to use as pluggable components. -- Ted Husted, Husted dot Com, Fairpo

Re: Multiple controller servlets

2001-11-14 Thread Ted Husted
A fix for multiple struts-config has come along first, but the need for multiple resource files is just as great. Once both of these features are added, I believe the use-cases I've seen would be addressed. The downside of multiple servlets is 1) Since servlets are multi-threaded, there is n

Re: Hold the Phone!... Nesting Tags (including form items)

2001-11-12 Thread Ted Husted
should have their own > (re: the debate over the extra options tag). Which I tend to agree Means > that every add-on with a purpose can be as clean as it needs to be.. Yes. You were asking for design advice, and my suggestion was to extend the original, as you were already doing. -- Ted

Re: Nightly Build - Digester Method Not Found Exception

2001-11-04 Thread Ted Husted
f those too? The binary is probably using the latest release from the Commons. The source would use whatever you provided. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail:

Re: Nightly Build - Digester Method Not Found Exception

2001-11-04 Thread Ted Husted
with the later versions of the Digester. Wish I could be of more help. What feature are you after? Is is something you could patch to 1.0? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ David Corbin

Re: Commit message delays

2001-11-04 Thread Ted Husted
After Pier moved the mail server last week, some of these are coming in as MODERATE requests, so I have to touch them first. There are in fact a lot more MODERATE requests on the list now. It's not clear to me why your CVS posts come up this way, but your regular posts to DEV do not. [EMAIL PROT

Re: Validator design considerations

2001-11-03 Thread Ted Husted
's unclear to me what people are suggesting that we are not doing now. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additi

Re: PROPOSAL: Struts Service interface?

2001-11-02 Thread Ted Husted
27;s goal is to realize something that can be used by non-programmers and programmers alike, and configured via, say, XML. The initial code is being built in the commons, and is platform/framework independant. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. --

Re: Validator design considerations

2001-11-02 Thread Ted Husted
nk in terms of validating data for any application, not just a Web application or a Web application built with Struts. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Validator design considerations

2001-11-02 Thread Ted Husted
er object, if that's what you're suggesting. We could definately use more standard, backend validators, but, personally, I would say that the framework object that calls the standard validator with the property in question should be the ActionForm, or a business object, and not the Actio

Re: PROPOSAL: Struts Service interface?

2001-11-02 Thread Ted Husted
ion (which is no longer that simple ;-). http://husted.com/struts/resources/struts-simple.zip Here, I think the next step is working on loading multiple Activities into the Registyr. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-34

Re: cvs commit: jakarta-struts/src/share/org/apache/struts/upload BufferedMultipartInputStream.java MultipartIterator.java

2001-11-02 Thread Ted Husted
* Creates a file on disk from the current mulitpart element > * @param fileName the name of the multipart file > */ >protected File createLocalFile() throws IOException { > - > + >File tempFile = File.createTempFile("strts", null, new File(tempDir)); >BufferedOutputStream fos = new BufferedOutputStream(new >FileOutputStream(tempFile), >diskBufferSize); >byte[] lineBuffer = inputStream.readLine(); > int bytesRead = lineBuffer.length; > - > + >boolean cutCarriage = false; >boolean cutNewline = false; > - > + >try { >while ((bytesRead != -1) && (!equals(lineBuffer, 0, >boundaryBytes.length, >boundaryBytes))) { > @@ -514,12 +519,12 @@ >tempFile.delete(); >throw ioe; >} > - > -fos.flush(); > + > +fos.flush(); >fos.close(); >return tempFile; >} > - > + > /** >* Checks bytes for equality. Two byte arrays are equal if >* each of their elements are the same. This method checks > @@ -528,21 +533,21 @@ >* @param comp The byte to compare to source >* @param offset The offset to start at in comp >* @param length The length of comp to compare to > -* @param source The reference byte to test for equality > +* @param source The reference byte array to test for equality >*/ > public static boolean equals(byte[] comp, int offset, int length, >byte[] source) { > - > - if (length != source.length) { > - return false; > + > + if ((length != source.length) || (comp.length - offset < length)) { > +return false; > } > - > + > for (int i = 0; i < length; i++) { > if (comp[offset+i] != source[i]) { > return false; > } > } > - return true; > + return true; > } > >} > > > -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: cvs commit: jakarta-struts/doc/userGuide building_controller.xml building_model.xml building_view.xml introduction.xml

2001-11-02 Thread Ted Husted
ile: /home/cvs/jakarta-struts/doc/userGuide/building_controller.xml,v > retrieving revision 1.5 > retrieving revision 1.6 > diff -u -r1.5 -r1.6 > --- building_controller.xml 2001/10/07 04:48:08 1.5 > +++ building_controller.xml 2001/10/19 05:51:09 1.6 >

Re: Declarative exception handling for Action classes

2001-11-01 Thread Ted Husted
If this is a convenience for your project, can it arranged as a standard alternative rather than the default? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <

Re: Bean tags

2001-10-16 Thread Ted Husted
, who implemented a feature and then donated it back. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/Clóvis Yutaka Harada wrote: > > Hi, > > I´m new to this list and also new to struts. > &

Re: [PROPOSAL] XMLMessageResources

2001-10-14 Thread Ted Husted
need to add a root element to the file, so that is only part of the scheme, and other configurations, like can be nested within. .. .. .. .. Of course, we should continue to et these be loaded as separate files too, as convenient to the developer. -- Ted Husted, Husted dot Com, Fai

Re: userGuide is confusing to newbies

2001-10-13 Thread Ted Husted
es Devon Brown once posted an outline for a training course he was developing, but I can't seem to find it in the archives (?). -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/

Re: [PROPOSAL] XMLMessageResources

2001-10-13 Thread Ted Husted
Can we join this with the idea of having multiple Struts configuration files, or, on a related front, multiple workflow configuration files? [EMAIL PROTECTED] wrote: > > The Struts 1.1 TODO list contains the following item: > > "XmlMessageResources. Implementation of MessageResources and > Mess

Re: [RFE] Highly-available connection pooling.

2001-10-05 Thread Ted Husted
ips a connection pool, I would suggest we deprecate the Generic Connection Pool in Struts, and stay out of the model business altogether ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ Patrick Eger

Re: new feature

2001-10-05 Thread Ted Husted
-1 Looking to call a method besides get*() runs contrary to the JavaBean specification. Struts should stick to the book. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ c tang wrote

Re: Iterate/Select Tags

2001-10-05 Thread Ted Husted
The best place to post a question like this is the Struts User list. Shawn Sohl wrote: > > I have searched for example on how to use these tags and I have come up > empty. Can some one point to some great documentation > with real world examples on how to use these tags. > > If not here is my

<    5   6   7   8   9   10   11   12   13   >