for review - split content type handler manager in REST plugin

2008-06-30 Thread Jeromy Evans
. The ContentTypeHandlerManager also allows handlers to be registered by mime-type and/or extension. I'm happy with it but want to ensure it doesn't conflict with other plans. I've kept in mind that in the future the manager may check the accepts header for the response content-type. Thanks, Jeromy Evans https

Classpath leading slash question (codebehind)

2008-06-30 Thread Jeromy Evans
should test for both cases, or whether CodeBehind is broken and has always failed to find results in jars. [Environment: tomcat:5.5.25.0, jvm:1.5.0_13-b05, os: linux 2.6.22-14-generic] Thanks, Jeromy Evans - To unsubscribe, e

Re: Classpath leading slash question (codebehind)

2008-07-01 Thread Jeromy Evans
Musachy Barroso wrote: I think that if the resource name starts with a /, then the class loader will use it as an absolute path (taking the web app root as root). If the resource name is relative, the classloader tries all the entries in the classpath(including jars), as roots, using the

2.0.11.2 download page broken link

2008-07-02 Thread Jeromy Evans
Anyone know where is the download.cgi page is maintained/generated? (http://struts.apache.org/download.cgi) The links for Alternative Java 4 JARs are invalid: It is: http://*mirror*/struts/binaries/struts-2.0.11.2-j4.zip but should be:

Re: Enhancing stream type result

2008-07-07 Thread Jeromy Evans
-1 The params of StreamResult are already evaluated. Example: result name=stream type=stream param name=contentType${contentType}/param param name=inputNameinputStream/param param name=contentDispositionattachment; filename=${fileName}/param param

Re: CodeBehind and index action?

2008-07-13 Thread Jeromy Evans
Paul Benedict wrote: Anyway to accomplish this in 2.0? Have you ever did it? Just looking for a quick answer, even if that includes adding action mappings to the config. Paul A quick solution is to extend the DefaultActionMapper to set the actionName to index if it looks like a

Re: hacking OGNL and parameter binding

2008-07-18 Thread Jeromy Evans
Musachy Barroso wrote: I opened a code review here: http://fisheye6.atlassian.com/cru/CR-9 I added a new interface ClearableValueStack, which if implemented will make the OGNL parameter binding run in a clean context. I'm not sure how to get permission to make comments in crucible.

Re: [PROPOSAL] Deprecate or remove Dojo plugin

2008-07-21 Thread Jeromy Evans
Musachy Barroso wrote: With all the problems/questions and time that the ajax tags have caused, and not having any takers on porting to the latest Dojo release. I would propose to deprecate, or even remove the Dojo plugin, or at least let users know that we will not be upgrading to a newer Dojo

Re: [PROPOSAL] Deprecate or remove Dojo plugin

2008-07-23 Thread Jeromy Evans
Paul Benedict wrote: Dojo 0.4.3 is old :-) I didn't know that. No one wants to move it to 1.x or wherever they are now? Paul Many have tried. In general, the effort doesn't justify the result. ie. you put a lot of effort writing new templates and tags that predominately wrap and

Re: [PROPOSAL] Deprecate or remove Dojo plugin

2008-07-24 Thread Jeromy Evans
Ted Husted wrote: I'd suggest that we put a replacement together before pulling the Dojo plugin out of the distribution (I can help). We could at least deprecate Dojo in the meantime. -T. I can help too but I'm moving house today so may be offline for a while (it takes weeks to get a new

Re: how to complie Action Class

2008-08-02 Thread Jeromy Evans
or the forums for your IDE. Please don't follow-up with questions here. regards, Jeromy Evans safewraju wrote: hi to all, i am working on Ubuntu OS. while compiling itz not giving any error, after compiling .class file also generating. but the main problem is for new .class files execute

Re: ParameterFilterInterceptor security issue

2008-08-12 Thread Jeromy Evans
This relates to Musachy's recent proposal to remove OGNL entirely from the parameter-setting process. Which I think is a very good idea. If I've understood correctly, currently there is no way to filter the parameter names, using regex or otherwise, other than to verify them use a

Re: S2 tags, which attributes evaled, and docs.

2008-08-18 Thread Jeromy Evans
Dave Newton wrote: I'm running into a weird difference between: [1] s:textfield name=foo.bar value=foo.bar/ and [2] s:textfield name=foo.bar value=%{foo.bar}/ Nutshell: when there's nothing submitted for foo.bar (at least if it's the only element on the page) [1] will print foo.bar as a

Re: adoption of s2 (was S2 as JSR for Action Framework)

2008-08-22 Thread Jeromy Evans
Just an interesting note: According to the Google keyword tool in English speaking countries and territories: - the number of searches containing the phrase struts (-cars) has been flat the last 12 months (approx 1,000,000 per month). I wish I could compare that to previous years. - this is

Re: Struts 2 archetypes

2008-08-23 Thread Jeromy Evans
? regards, Jeromy Evans Wendy Smoak wrote: Our user docs point to snapshots of the archetypes, which is not ideal. Especially since old snapshots were removed recently by infra to free up disk space, and the commands in the docs no longer work. I've branched the blank and starter archetypes [1

Re: S2 as JSR for Action Framework

2008-08-24 Thread Jeromy Evans
Don Brown wrote: On Mon, Aug 25, 2008 at 12:54 PM, Martin Cooper [EMAIL PROTECTED] wrote: Another option is a client-side component-based framework like Ext or Flex running directly against web services, RESTful or otherwise. No server-side web framework required. Of course, you could use

Re: S2 as JSR for Action Framework

2008-08-26 Thread Jeromy Evans
Musachy Barroso wrote: What are the plans for the future of the REST plugin? Has anybody tried to make it more JSR-311 like? I am not a REST user myself, but I am kind of bored and could help if there was a clear understanding of what needs to be done. I haven't touched the REST plugin for

Re: S2 as JSR for Action Framework

2008-08-28 Thread Jeromy Evans
Ralf Fischer wrote: Well there is a thing like that where you can publish information to google or other search engines in one single file. You have to serve a file with a name like http://foo.com/site.xml.gz [1] which holds a description of your whole site. Sure it's no API, but it gets

Re: [VOTE] Release Struts 2 Starter Maven Archetype v2.0.11.2

2008-09-02 Thread Jeromy Evans
+1 [platform: clean XP install] Interesting note: struts 2.0.11.2 has never replicated to to http://mirrors.dotsrc.org/maven2 Wendy Smoak wrote: The Struts 2 Starter Maven Archetype v2.0.11.2 is available for review. Staging repository:

Re: 2.1 builds

2008-09-02 Thread Jeromy Evans
Musachy Barroso wrote: Do we have any pending blocking tickets for a 2.1 builds? or are we just missing free time from our build masters? It would be nice to get 2.1 rolling. I was looking at: http://struts.apache.org/2.x/docs/creating-and-signing-a-struts-21x-distribution.html and I have to

Re: 2.1 builds

2008-09-03 Thread Jeromy Evans
Musachy Barroso wrote: From the ones scheduled for 2.1.3 there are still some minor ones in there, and other that are on hold for different reasons. I will start playing with the release process over the weekend. We also need an xwork release right? Looks like struts-annotations-1.0.4

dojo documentation update

2008-09-04 Thread Jeromy Evans
I've added some more information to the dojo tags documents and was hoping someone intimately familiar with the tags can do a sanity check for me. The objective is to emliminate some of the frequently asked questions: http://cwiki.apache.org/confluence/display/WW/Ajax+Tags Duplicated

Re: dojo documentation update

2008-09-04 Thread Jeromy Evans
Musachy Barroso wrote: ... Okay, that makes more sense for the case where separateScripts is false, but now I'm having second thoughts about my interpretation of executeScripts and WW-2501. bind and contentPane do this: if (this.executeScripts) { var parsed= this.parse(data)

Re: dojo documentation update

2008-09-05 Thread Jeromy Evans
Musachy Barroso wrote: Ah, and I thought we were about to fix this one :). I think you are right on, wouldn't calling eval() on the generated script, instead of expecting the browser to execute it fix this problem? musachy It probably would work better in this case, but creating a script

Re: dojo documentation update

2008-09-05 Thread Jeromy Evans
Dave Newton wrote: --- On Fri, 9/5/08, Jeromy Evans wrote: Unfortunately with separateScripts=false case, I couldn't get an inline alert to work in FF. I'm not sure why... it created the script node and added it to the parent (a span) and then ...nothing... How does the Yahoo

Re: Struts 2.1.2(an previous releases) vs 2.1.3 in regards to actionMessages in a sitemesh decorator

2008-09-08 Thread Jeromy Evans
matt.payne wrote: There seem to be some type of regression that has happen with regards to actionMessage/actionErrors. In the current build snapshots of 2.1.3 actionErrors/message are no longer exposed my to the sitemesh decorator(I am using freemarker result types/decorators). However that

Re: Client-side validation extensions

2008-09-09 Thread Jeromy Evans
Dave Newton wrote: --- On Tue, 9/9/08, Martin Cooper wrote: This smells like reinventing a subset of Commons Validator just for S2. Can you convince me otherwise? My initial motivation was to create a stop-gap, extensible mechanism for adding custom JavaScript validators without

more OSGI thoughts?

2008-09-11 Thread Jeromy Evans
Has anyone given any more thought to an OSGI container embedded within Struts2? I ask because I growing to hate having to build and deploy entire war files and regularly restart Containers. It seems far behind alternative technologies. Is it conceivable that: - the container provides the

Re: more OSGI thoughts?

2008-09-11 Thread Jeromy Evans
Atlassian, is a committer, I might start there. They use WebWork 2 right now, so it may involve a migration to Struts 2, we'll see... Don On Fri, Sep 12, 2008 at 10:33 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Has anyone given any more thought to an OSGI container embedded within Struts2? I ask

Re: more OSGI thoughts?

2008-09-11 Thread Jeromy Evans
Don Brown wrote: The Atlassian plugin system has been in Atlassian products for years, allowing developers to add new features to Atlassian applications dynamically in some cases (Confluence). However, the two main problems with it were: Cool. I'm impressed you guys are allowed to be open

Re: more OSGI thoughts? brian?

2008-09-11 Thread Jeromy Evans
Are you still out there Brian? Did you put any thought into something like this for JCatapult modules within S2? Jeromy Evans wrote: Has anyone given any more thought to an OSGI container embedded within Struts2? I ask because I growing to hate having to build and deploy entire war files

Re: Client-side validation extensions

2008-09-17 Thread Jeromy Evans
Dave Newton wrote: Any more comments? The question has come up a few times on the user list in the last week or two. My proposal is an incremental improvement (if tiny); if we switch to commons-validator at least their JavaScript code could be re-used. Dave I still say go with the

Re: Enum type conversion

2008-09-18 Thread Jeromy Evans
Piotr Matkowski wrote: Maybe Enums should be handled by struts by default? Why they aren't handled? Enum conversion broken/unsupported in OGNL's default type converter. I can't recall where. I spent hours hunting it down and put it in the too hard basket... However, if you enable

Re: Enum type conversion

2008-09-18 Thread Jeromy Evans
Bob Tiernay wrote: I'm not 100% sure, but I though Musachy enabled this by default? Ah, yes, Don did for 2.1.0, https://issues.apache.org/struts/browse/WW-2162 But it's not back-ported to 2.0.x - To unsubscribe, e-mail:

Re: Concerned Strutszien: A Manifesto

2008-10-21 Thread Jeromy Evans
dusty wrote: How do we tackle all this? Do we have a meeting? Do we create a Chief who can make decisions for better or for worse? Clearly decisions need to be made. Do we start StrutsCon 2009 and lock everyone in a room until the decisions are made? I started to also write apps in Rails

Re: Concerned Strutszien: A Manifesto

2008-10-21 Thread Jeromy Evans
Wendy Smoak wrote: On Tue, Oct 21, 2008 at 6:01 PM, Bob Tiernay [EMAIL PROTECTED] wrote: I get the sense that CI + Maven is a like wrestling with a slinky. Is this problem endemic to s2? What do other open source projects do to alleviate this? The release process here could be *much*

Re: Xalan Dependency missing from XWork pom?

2008-10-30 Thread Jeromy Evans
is provided, not xalan). I've never investigated any further than that. Yes, it's stupid and time-wasting. cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 2.1.3 REST plugin issue/sanity check

2008-11-08 Thread Jeromy Evans
Dave Newton wrote: Removing the REST plugin restores regular S2 .action accessibility. So I guess my questions are: is this by design, and is there a way to combine both in the same app? No, you can't use both approaches in the same app. You can get most of the way by setting up the a

Re: Sanity check on REST plugin

2008-11-08 Thread Jeromy Evans
Al Sutton wrote: Is there a reason why using an ID of the form x.y blows out the REST plugin in 2.1.2? If I use the URL; http://localhost/AndroidPhoneApplications/packages/!veecheck?id=org.blah.com everything works, however if I use;

Re: XWork build failure

2008-11-08 Thread Jeromy Evans
Martin Cooper wrote: On Tue, Nov 4, 2008 at 7:16 PM, Wes Wannemacher [EMAIL PROTECTED] wrote: Just pulled and built with both Java 5 6 and didn't see it... Using Ubuntu Intrepid on AMD64 with Sun JDKs. Weird. I was using Java 6, but switched to Java 5 and now it builds. (This is

Re: Struts2 and production apps

2008-11-14 Thread Jeromy Evans
Koen Serry wrote: * 2.0.12: yes great GA, ah no it doesn't do static resources, so all client side validations won't work Just a tip, if you're releasing a production app, you shouldn't be serving static resources from the struts2 dispatcher. Extract them and the problem is avoided.

2.1.5 release quality

2009-01-02 Thread Jeromy Evans
instead of value attribute Update the constants in struts.xml to use setup convention+rest instead of codebehind+rest. Check web.xml (filters and params) Update CamelCase action results and references to match Convention Hope that's useful to someone. regards, Jeromy Evans

Re: 2.1.5 release quality

2009-01-03 Thread Jeromy Evans
On 04/01/2009, at 4:17 AM, Musachy Barroso wrote: 2. I am not sure about the camel case problem. I guess we could add another flag to search for camel-cased results, instead of the default. I am on the fence for this one, as actions names are built with - by default, and the idea behind the

Re: 2.1.5 release quality

2009-01-03 Thread Jeromy Evans
On 04/01/2009, at 6:48 AM, Musachy Barroso wrote: Ok, this is implemented in trunk and the doc was updated. I removed disableJarScanning and excludeJars and added includeJars. Only jars whose URL matches one of the regexes in struts.convention.action.includeJars will be scanned.

Re: [VOTE] Struts 2.1.6 Quality

2009-01-08 Thread Jeromy Evans
+1 GA Thanks Musachy. REMINDER: the struts-2.1 DTD should be published at http://struts.apache.org/dtds/struts-2.1.dtd Note: the wiki contains a page about migrating applications from 2.0.x to 2.1x. If anyone has any improvements please include them. It's referenced in the release

Re: [OT] I nominate Musachy for the Got a bunch of stuff done award.

2009-01-14 Thread Jeromy Evans
Yes, thank you for taking on such a leadership and ownership role Musachy. At the very least, you've earned free accommodation in spare beds and on sofas across the globe when you next travel. On 14/01/2009, at 5:17 AM, Dave Newton wrote: Really, we owe him a lot for this release. What

Re: Struts 2.1.6 not working with Struts 2 JSON Plugin

2009-01-14 Thread Jeromy Evans
I've used it with 2.1. If I recall correctly, only the unit tests needed to be modified. There's a patch sitting on my machine jsonplugin4struts21.patch that's probably linked to one of the issues in the bug tracker. On 15/01/2009, at 7:54 AM, James Holmes wrote: Ok, thanks. I am

Re: Accessing properties set in struts.xml and/or struts.properties

2009-02-28 Thread Jeromy Evans
= dispatcher.getConfigurationManager().getConfiguration(); StrutsPrepareFilter will still need to chain to the next filter, so you'll also have to modify the StrutsExecuteFilter so it doesn't run but does chain to its next filter. Doesn't seem very elegant. Hope that gets you started. regards, Jeromy

Re: Seeking reflections on our tag library (as a framework)

2009-08-17 Thread Jeromy Evans
templates and duplication of templates for every new theme is necessary (theme inheritance doesn't work as one would expect). There's no easy fix to that. cheers, Jeromy Evans On 12/08/2009, at 12:19 AM, Don Brown wrote: At Atlassian, every application seems to have picked a different web

Build requires JDK 1.6 now - EmbeddedJSP plugin

2009-08-23 Thread Jeromy Evans
that module (is that even possible?) regards, Jeromy Evans - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org

Convention/XWork on GAE: unable to get members (SecurityException)

2009-08-23 Thread Jeromy Evans
guess I need to approach the GAE forum now. Has anyone got any ideas about what to attempt next on the S2/Xwork side? Stack traces for the two cases are below. regards, Jeromy Evans Failed startup of context com .google.apphosting.utils.jetty.runtimeappenginewebappcont...@67fe80

Re: Convention/XWork on GAE: unable to get members (SecurityException)

2009-08-24 Thread Jeromy Evans
On 24/08/2009, at 1:29 PM, Jeromy Evans wrote: As a work-around (guess), I changed it to cimpl.getDeclaredClasses() instead which is permitted (I don't know if this has the same effect on the ClassLoader). That got me past the issue above, but the same SecurityException occurs

Re: Convention/XWork on GAE: unable to get members (SecurityException)

2009-08-25 Thread Jeromy Evans
On 25/08/2009, at 2:28 AM, Musachy Barroso wrote: would it help to have a maven archetype for S2 and GAE? musachy Yes, but not yet I think. The GAE team only support an ant build process and I'd like to see the maven-based build converge a little more. At the moment everyone rolls

Re: Build requires JDK 1.6 now - EmbeddedJSP plugin

2009-08-25 Thread Jeromy Evans
On 25/08/2009, at 2:59 AM, Musachy Barroso wrote: Everything should be included in the default build. We can add a profile to exclude the plugin from building, just like we did with assembly. musachy Just trying to summarize: - the default build should include everything (requires JDK 1.6

S2.3 sitemesh uses both StrutsPrepareFilter and StrutsListener

2012-01-19 Thread Jeromy Evans
. Regards, Jeromy Evans

Re: Struts 2 Components

2012-01-31 Thread Jeromy Evans
://engineering.linkedin.com/frontend/leaving-jsps-dust-moving-linkedin-dustjs-client-side-templates Regards, Jeromy Evans On 28/01/2012, at 10:28 PM, Christian Grobmeier wrote: Great examples. I will look into it. May I ask you why you didn't develop this at the struts repos? With dojo tags going

<    1   2