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

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: 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: 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: Struts 2 in the cloud

2008-12-23 Thread Don Brown
ation for the beta? pls share. > > On Tue, Dec 23, 2008 at 2:33 PM, Don Brown wrote: > >> Very cool project I stumbled upon for quickly developing and deploying >> Struts 2 applications into the cloud: >> >> http://www.stax.net >> >> I haven't looked at

Struts 2 in the cloud

2008-12-23 Thread Don Brown
Very cool project I stumbled upon for quickly developing and deploying Struts 2 applications into the cloud: http://www.stax.net I haven't looked at it beyond viewing their screencasts, but it seems very promising. Of course, the real reason I'm mentioning it is Struts was listed as the primary

Re: [S2] Plugin architecture

2008-11-18 Thread Don Brown
FWIW, I'm working with James to port the OSGi parts of the Atlassian Plugins framework over to Apache Archiva, which recently moved to Struts 2. We are planning on releasing that bit as its own project, although the whole Atlassian Plugins framework is also now open source. Don On Wed, Nov 19, 2

Re: [S2] Result definitions are not overridden on subtyping using codebehind

2008-10-28 Thread Don Brown
I'd go with bug. Please file a JIRA ticket at http://issues.apache.org/struts Thanks, Don On Tue, Oct 28, 2008 at 11:16 PM, Leonard Broman <[EMAIL PROTECTED]> wrote: > I am using 2.0.11.2. When I am inheriting action, the codebehind > plugin is not overriding the definition for the supertype. >

Re: [S2] actions responding only to POST/GET methods

2008-10-28 Thread Don Brown
PHP's register_globals really has nothing to do with GET vs POST but rather with how it could be possible to inject variables into a script to compromise later evaulation. Since Java doesn't allow such dynamic variables, there is no equivalent. In addition, whether your action is executed via GET

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-09 Thread Don Brown
jar, there is a struts-2.0.tld > descriptor tagfile inside of it but there is not much inside of it. > > Or maybe i should use a different version of Struts 2 ? Some other library ? > Thanks for helping. > > --- On Sun, 9/7/08, Don Brown <[EMAIL PROTECTED]> wrote: > From: D

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-07 Thread Don Brown
There was a JBoss issue that I found once I added JBoss 4.2 testing with the tld. Not sure if that fix is in 2.1.2, but it will be in 2.1.3. If you need, you can just unzip the Struts jar, fix the order of the elements that is causing the problem, and zip it back up. Don On Mon, Sep 8, 2008 at

Re: Struts 2 perfromance among the worst???

2008-07-22 Thread Don Brown
Kinda hard to comment without being able to see the application used for the benchmark. As I think it has been frequently noted, you can build a very fast Struts 2 app or a really slow one - our challenge is to make it easier to build the faster variety. Don On Wed, Jul 23, 2008 at 11:36 AM, neer

Re: [S2] Possible issue w/ S2.1.3

2008-07-21 Thread Don Brown
Doh, we really need functional tests. I'll try to take a look at it in the next few days if no one beats me to it. Don On Mon, Jul 21, 2008 at 1:57 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Sun, 7/20/08, Jeromy Evans wrote: >> Dave Newton wrote: >> > --- On Sun, 7/20/08, Musachy Barros

Re: S2: web.xml servlet/filter-mappings

2008-07-15 Thread Don Brown
Could you post more information? Struts should only be responding to URI's that contain configured extensions via the struts.action.extension setting, which defaults to "action". Don On Tue, Jul 15, 2008 at 7:01 PM, Mikkel Lindhard <[EMAIL PROTECTED]> wrote: > Hello list > > I have an web-applic

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-12 Thread Don Brown
On Sat, Jul 12, 2008 at 5:56 PM, Lyallex <[EMAIL PROTECTED]> wrote: > Wouldn't it be great to have the redirect resultType parameterised in > some way so that the target could be set depending on which action was > selected .. You can. Try something like this: ${destination} /cha

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Don Brown
You can try the config browser plugin: http://struts.apache.org/2.x/docs/config-browser-plugin.html Don On Wed, Jul 9, 2008 at 2:04 AM, Milan Milanovic <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm wodering is there any Eclipse plug-in (or something similar) which will > vizualize struts.xml config

Re: [OT] What slows you down?

2008-06-20 Thread Don Brown
This is an excellent question, Ted, thanks for bringing it up. At Atlassian, we've been rolling out a few new internal applications built on Grails and have been amazed how easy it can be. They take production-ready libraries like Hibernate and Spring, then tie everything together in a seamless w

Re: REST plugin URL syntax

2008-06-16 Thread Don Brown
I believe it is technically possible to do this, but not at all intuitive right now. This is probably my number one improvement request for the REST plugin. You should be able change the wildcard mapper to one that recognizes named wildcards then use them in your namespace annotation like this: @

[ANN] Struts 2 in Action now available

2008-05-24 Thread Don Brown
opics such as the Ajax tags, Spring Framework integration, and configuration by convention give familiar subjects new depth. You can find the book at Manning's website [1], on Amazon [2], or any major book retailer. Don [1] http://www.manning.com/dbrown/ [2] http://www.amazon.com/Struts-2-

Re: Struts and OsGI

2008-04-30 Thread Don Brown
Spring MVC is taking a significantly different approach than Struts 2, as I understand it. Their OSGi support allows you to deploy a Spring MVC-based war into an OSGi container, while the Struts 2 plugin allows you to build part of your app as an OSGi bundle and deploy it in the embedded OSGi cont

Re: About OGNL multi-threading contention

2008-04-24 Thread Don Brown
There is a ticket open for the next version of Struts 2, 2.1.2, that will upgrade OGNL. The new version requires Struts 2 and XWork code changes, so it will take some time. Please vote or add any additional information to the Struts issue: http://issues.apache.org/struts/browse/WW-2527 Don On

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Don Brown
Hmm...what should happen is those exceptions should be logged as a warn, but the process should continue like normal. If that isn't the case, definitely file a bug and put it against 2.1.2 Don On Fri, Apr 18, 2008 at 11:11 PM, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > Hello, > > I'm in the

Re: return Result instantiated within Action

2008-04-17 Thread Don Brown
On Fri, Apr 18, 2008 at 1:22 AM, Brad A Cupit <[EMAIL PROTECTED]> wrote: > I've tried that myself as it seemed a very clean way of returning a > result, but I get a NullPointerException since the ActionMapper isn't > set on the Result. > > Can you think of any way that the actionMapper could

Re: ServletRedirectActionResult - is there a way to set parameters?

2008-04-17 Thread Don Brown
The easiest solution is to simply return a ServletActionRedirectResult instance from your action method. Don On Wed, Apr 16, 2008 at 4:33 PM, Alex Shneyderman <[EMAIL PROTECTED]> wrote: > I am using 2.0.11 it seems that I can not use action-redirect result > type. I need to tag along a request p

Re: Is there such a thing as flash in S2?

2008-04-15 Thread Don Brown
Oh, didn't see the 2.0.11.1 requirement...not sure if the message store interceptor code is in that branch, but the scope plugin should work just fine. Don On Tue, Apr 15, 2008 at 7:19 PM, Don Brown <[EMAIL PROTECTED]> wrote: > There is the Struts 2 Scope Plugin [1], which does fla

Re: Is there such a thing as flash in S2?

2008-04-15 Thread Don Brown
There is the Struts 2 Scope Plugin [1], which does flash scope and a lot more. Also, the message store interceptor, available in core out-of-the-box, will persist action and error messages across a redirect in a "flash" scope, which is very handy for registering validation errors on a POST but hav

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
ingleton since there will be only one instance of myBean. > > > Regards, > Randy Burgess > Sr. Web Applications Developer > Nuvox Communications > > > > > From: Don Brown <[EMAIL PROTECTED]> > > > Reply-To: Struts Users Mailing List &g

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
To clarify, interceptors aren't technically singletons as each instance in an interceptor stack gets its own interceptor instance. However, for all requests using that stack, the same interceptor will be used. Therefore, you do need to be careful. For example, most interceptors take parameters th

Re: Sitemesh & Struts 2

2008-02-17 Thread Don Brown
You could say Struts 2 was built with SiteMesh in mind :) The WebWork folks heavily favored their sister project SiteMesh and had SiteMesh support in there from day one. In Struts 2, we moved it out into the SiteMesh plugin: http://struts.apache.org/2.x/docs/sitemesh-plugin.html Don On Feb 17,

Re: [OT] Killer Scam

2008-02-04 Thread Don Brown
Aw, I just thought I was special, and was so excited - my first death threat! :) Don On Feb 4, 2008 9:54 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Hi Antonio, I received that spam for the first time today too on my > address used on this list. I guess it just went wild. > > > Antonio Petrell

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

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: 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: [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] 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: 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: 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: 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

[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: 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

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.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: [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-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] 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-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: 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: 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-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
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: 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: [s2] Struts head tag KILLS (> 10s) page load time

2007-09-24 Thread Don Brown
The issue to automate the custom profile build is here: > > https://issues.apache.org/struts/browse/WW-2131 > > right now I build the custom profile and upload the files by hand. > Help to get this done with maven would be appreciated. > > musachy > > On 9/24/07, Don Bro

Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-09-24 Thread Don Brown
TED]> wrote: > It is a dojo/browser thing. All we can do is done already, if you set > cache="true" Struts 2 will use a custom build where only one file > (which will be cached) will be used. > > musachy > > On 9/24/07, Don Brown <[EMAIL PROTECTED]> wrote: &

Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-09-24 Thread Don Brown
ed. > > musachy > > On 9/24/07, Don Brown <[EMAIL PROTECTED]> wrote: > > Oh damn, why is that? Cache is critical here. > > > > Don > > > > On 9/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > > When a file is loaded using dojo.requ

Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-09-23 Thread Don Brown
Oh damn, why is that? Cache is critical here. Don On 9/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > When a file is loaded using dojo.require, it is not cached by the browser. > > musachy > > On 9/23/07, Jason Wyatt <[EMAIL PROTECTED]> wrote: > > Hi Martin, > > > > Yes, that's right. > > >

Re: [S2] dynamic validation.xml file iterating of form elements

2007-09-21 Thread Don Brown
I think this would make a good jira ticket, if you can clearly describe what functionality you'd like. Even better, write a patch and it'll have a much higher chance of getting implemented ;) Don On 9/22/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > Hi, > > Quite a few days ago I posted t

Re: [struts] [s2] Struts head tag KILLS (> 10s) page load time

2007-09-21 Thread Don Brown
over 40s is hard to diggest. > Meissa > > > > "Don Brown" <[EMAIL PROTECTED]> > 21/09/2007 08:51 > Veuillez répondre à > "Struts Users Mailing List" > > > A > "Struts Users Mailing List" > cc > > Objet > Re: [strut

Re: [struts] [s2] Struts head tag KILLS (> 10s) page load time

2007-09-20 Thread Don Brown
Sadly, it was a change brought by the WebWork 2 incubation process, where we had to remove all LGPL Javascript libraries. The tooltip library used LGPL, so to get through the IP clearance, we changed the tags to use Dojo, hence the import. Unfortunately, this temporary fix was never revisited til

Re: [S2] MessageStoreInterceptor

2007-09-20 Thread Don Brown
I agree it could be made easier. I'd like to see it combined with a flash scope-type interceptor so that more than just messages could be passed via the session automatically. As for your solution, you could implement the SessionAware interface and get the session map directly, then you could do

Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-09-20 Thread Don Brown
Musachy, has this been fixed in 2.1? Are the number of requests happening because we are using Dojo's lazy import feature? Don On 9/21/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Only on 2.1 Frank, if you set cache="true" it will use a custom build > that includes the files needed by the S2

Re: ObjectFactory.buildResult not correctly configuring Result instance properties

2007-09-10 Thread Don Brown
This is a bug and will definitely be fixed for 2.1, although I think we should do something for 2.0.11. Patches are always welcome... :) Don On 9/11/07, Aaron Brown <[EMAIL PROTECTED]> wrote: > Hi, I think I have stumbled across a bug in the ObjectFactory. Has > anyone else noticed the following

Re: Struts 2 - incompatibility between JSTL xml taglibs and Struts 2 ?????

2007-09-07 Thread Don Brown
The Struts 2 tags can only go on pages where the request has passed through a Struts 2 filter. That error indicates the Dispatcher instance isn't on the correct ThreadLocal variable, and it should have been placed there by the Struts ServletFilter. Don On 9/7/07, Riccardo Mollame <[EMAIL PROTECT

Re: Struts 2 - compatibility between JSTL xml tags and Struts 2

2007-09-05 Thread Don Brown
Could you provide the stacktrace? Don On 9/5/07, Riccardo Mollame <[EMAIL PROTECTED]> wrote: > Has anyone ever experienced compatibility issues > between JSTL xml tags (i.e. and the like) > and Struts 2? > I've isolated, with no ambiguity, a weird case in a > web application where the usual comb

Re: What is the S2 equivalent

2007-09-03 Thread Don Brown
Use the JSTL tag. The Struts 2 tags aren't meant to replace JSTL, but complement it in ways that are useful. There are several tags that do overlap with JSTL, such as the iterator tag, but they are kept mainly to keep backwards-compatibility. Don On 9/4/07, tom tom <[EMAIL PROTECTED]> wrote: >

Re: Can you specify the name of struts.xml for Struts2?

2007-09-03 Thread Don Brown
Yes, the way to specify the location is the 'config' parameter in web.xml, however, it will try to load the path from the classpath, not the webapp root. If you do specify it, it is recommended to add to the existing - 'struts-default.xml,struts-plugin.xml,struts.xml' - rather than replacing it, a

Re: [S2] Wildcard action name that includes slashes?

2007-09-03 Thread Don Brown
Use two astrisks - '**' Don On 9/4/07, Neil Aggarwal <[EMAIL PROTECTED]> wrote: > Hello: > > In my struts.xml, I have this property: > > > > At the very end of my actions, I have this one: > > > page.products > > > This works if I have a url with a non-slash action name: > http

Re: [S2] how to get the constants in struts.xml programmatically?

2007-08-22 Thread Don Brown
First, ensure that the object that Struts will be injecting to is created by Struts. Then, you can do: @Inject(StrutsConstants.SOME_CONSTANT_HERE) public void setSomeConstant(String val) {...} For example, Actions, Interceptors, and Result objects are generally processed for injections by Struts

Re: [ANN] Connext Graphs

2007-08-19 Thread Don Brown
Pic or it didn't happen :) Don On 8/20/07, Mark P Ashworth <[EMAIL PROTECTED]> wrote: > > Good Day, > > I am please to announce that version 0.4 of Connext Graphs includes support > for Bar and > Filled Bar charts. > > Have a look at:- > http://cwiki.apache.org/confluence/display/S2PLUGINS/Connex

Re: [2] Changing xwork.default.invalid.fieldvalue to report type

2007-08-08 Thread Don Brown
Hmm...could you use a custom TextProvider impl that recognizes that error key, checks the type of the parameter, then looks up a new error key, say 'xwork.default.invalid.fieldvalue.number'? Don On 8/9/07, mraible <[EMAIL PROTECTED]> wrote: > > The default value for a type mismatch error (when do

Re: Extending ActionConfig in Struts2

2007-08-08 Thread Don Brown
The bigger question is why you would want to do this. In Struts 1, it was one of the few ways to pass configuration information to an Action. In Struts 2, you can pass values directly to an action via setters, which is a better solution imo. Don On 8/9/07, Ian Roughley <[EMAIL PROTECTED]> wrote

Re: Possible to package struts2 actions/code in a reusable jar?

2007-08-08 Thread Don Brown
I believe by default, Struts will load multiple struts.xml files on the classpath, so creating jars, each with their own struts.xml, should work. As mentioned, JSP's won't work, but you could put the in the usual places, leaving the jars for config and Java code. Don On 8/9/07, Ian Roughley <[EM

Re: ActiveMQ Problem migrating from WebWork 2.2.2 to Struts 2.0.9

2007-08-03 Thread Don Brown
Struts 2 behaves quite differently based on what plugins are installed. Looks like you are using the Spring plugin, which it sounds like you shouldn't be. Remove the struts2-spring-plugin-VERSION.jar from your WEB-INF/lib. Don On 8/4/07, Van Riper <[EMAIL PROTECTED]> wrote: > I'm running into t

Re: [s2] Is it possible to replace/supplement i18n resolution logic?

2007-08-03 Thread Don Brown
On 8/4/07, mraible <[EMAIL PROTECTED]> wrote: > > With Struts 2, how would I go about doing the following: > > 1. Replace the i18n resolution logic to load key/value pairs from a database > instead of properties files? Well, if your Action class implements TextProvider (as does ActionSupport), the

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-07-31 Thread Don Brown
portlets.html > > Also, I took a struts 2 portlet archetype project and added the > necessary files and configurations and put it on my site for download. > You can find the link in the blog. > > Please let me know if you find any errors. > > Nils-H > > On 7/29/07, Don B

Re: [s2] Developing Portlets with Eclipse tutorial available

2007-07-29 Thread Don Brown
the need to > run it emulated as a servlet. It wasn't really that hard (just had to > add a filter and a listener to the web.xml), and the overhead is > hardly noticeable. > > I'll try to write a tutorial and/or package it as a maven plugin, but > until then, if anybody is i

[s2] Developing Portlets with Eclipse tutorial available

2007-07-26 Thread Don Brown
I wrote up a simple tutorial showing how to start developing portlets using Struts 2 and Eclipse. It takes advantage of the fact that Struts 2 portlets can be deployed as normal web applications, the tutorial is more how to use a Maven 2 archetype with Eclipse, but with portlet-specific bits. I'm

Re: Preventing OGNL evaluations of user input (was Re: Struts 2 performance)

2007-07-16 Thread Don Brown
I have replied in dev@ so please post over there. Thanks, Don On 7/16/07, Aram Mkhitaryan <[EMAIL PROTECTED]> wrote: Don, could you please send the subject to continue the discussion in? Should we use [EMAIL PROTECTED] Thanks, Aram Aram Mkhitaryan 52, 25 Lvov

Re: Preventing OGNL evaluations of user input (was Re: Struts 2 performance)

2007-07-16 Thread Don Brown
I'm glad to see so many people joining the discussion, but let's please take this to the dev list. There are a lot of Struts committers and contributors that don't read this user list. So please, no more messages on this thread for this list. Don On 7/16/07, Don Brown &l

Preventing OGNL evaluations of user input (was Re: Struts 2 performance)

2007-07-15 Thread Don Brown
If your application is displaying user input without checking for malicious code, you have a problem whether Struts 2 evaluations ognl expressions or not.This is how the majority of Cross-Site Scripting (XSS) [1] attacks work, tricking the user into visiting a page that the attacker has placed

Re: Struts 2 performance

2007-07-12 Thread Don Brown
I'm really happy to see this issue being addressed, but it is important to remember, framework performance wasn't (isn't?) a primary goal for WebWork 2, and now Struts 2. Specific decisions were made to favor developer productivity and flexibility over performance such as a template engine-based,

Re: Struts 2 performance

2007-07-11 Thread Don Brown
Ted wrote up a good doc somewhere on the website, but the summary is join the dev list, participate in discussions, file jira tickets with patches that include unit tests. Don On 7/12/07, Aram Mkhitaryan <[EMAIL PROTECTED]> wrote: BTW, the idea about participation in contributing to this part i

Re: Struts 2 performance

2007-07-11 Thread Don Brown
No idea about the 2.1 release, but if you don't use tooltips, just override the xhtml header template, the one with the dojo import. That should remove the dojo import and fix your issue for now. Don On 7/11/07, Dale Newfield <[EMAIL PROTECTED]> wrote: Don Brown wrote: > Anyw

Re: Struts 2 performance

2007-07-11 Thread Don Brown
Tooltips come to mind, and I think there is one other reason...maybe it was the rich text editor. Anyways, in 2.1 we pulled all Dojo-related code into its own plugin, so it shouldn't affect the xhtml theme anymore. Don On 7/11/07, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: After playing aroun

Re: Struts 2.x mapping question

2007-07-10 Thread Don Brown
gt; 'struts.action.extension=' > there won't be .css .html .js > > There must be another way. I have seen examples of custom mappers > without .action but I don't seem to be able to make them work in > struts 2.x > > Perssy Llamosas > > Don Brown wrote: >

Re: Page-by-Page Iterator on S2

2007-07-10 Thread Don Brown
You might try the Table Tags plugin - http://cwiki.apache.org/S2PLUGINS/table-tags.html Don On 6/14/07, Giovanni Azua <[EMAIL PROTECTED]> wrote: Hi all, Can anyone please point me please in the S2 example applications to an implementation of the Page-by-Page Iterator pattern? any ideas otherwi

Re: [S2] Unable to access Model properties when using ModelDriven

2007-07-10 Thread Don Brown
The problem could be the order of the interceptors. Take a look at the showcase application as it has at least one model-driven example action. Don On 6/21/07, Victor Neo <[EMAIL PROTECTED]> wrote: I have an Action class that implements ModelDriven. My DummyForm object will be used to store

Re: [S2] Master-Detail Form

2007-07-10 Thread Don Brown
If you are wanting to do this on the client side via JavaScript, you won't be using Struts 2 server-side tags. Look around for JavaScript tutorials about adding form elements. Perhaps one of the popular JavaScript frameworks like Dojo will be of help here. Don On 6/29/07, Luciano Costa <[EMAIL

Re: Caught OgnlException while setting property 'imageServletUrl'

2007-07-10 Thread Don Brown
Ah, good catch. Well darn, the reason I changed them to return the object instance was to make it easier to initialise results programmatically (action methods can return Result objects directly, not just Strings), but looks like that broke this case. Please file a JIRA ticket so this gets addre

Re: [S2] Session Key for Locale

2007-07-10 Thread Don Brown
Well, at the least, it looks like it deserves a ticket. Pretty strange it only happens for one action though... Don On 6/30/07, Ray Clough <[EMAIL PROTECTED]> wrote: I have an application using S1, S2, and other component layers, all of which use Locale. At application startup, the Initializ

Re: migration tutorial for JSF to S2 migration

2007-07-10 Thread Don Brown
Hmm...that's a pretty tall order :) If you have any specific questions, please ask, and you might want to check out the docs on the JSF plugin, which allows you to use JSF components in your Struts 2 apps. Don On 7/2/07, java_user <[EMAIL PROTECTED]> wrote: please provide some good migration

Re: S2: Redirect question

2007-07-10 Thread Don Brown
Hm...don't see anything glaringly wrong. Have you tried using something like Firebug and stepping through the JavaScript? Don On 7/3/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: We have the following: Select.jsp …… ……… Lineup History … Struts.xml

Re: [s2] Performance of Ajax theme in SSL mode

2007-07-10 Thread Don Brown
The problem is some browsers, Firefox comes to mind, don't cache resources when accessed via SSL. This means every Javascript and image file will be request each time, and in Dojo's case, that is a lot of Javascript. Dojo usually relies on lazily loaded Javascript code, so that might mean severa

Re: [S2] Trying to use Struts2 in a custom framework but ...

2007-07-10 Thread Don Brown
On 7/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: == 1st Issue == - if I click on a link to another page in my menu, the URL will be: ".../otherUrlEdit.action?currentFichierId=1" ... and I can't find how to avoid it. There is a parameter in the url building tag that will turn off this fe

Re: [S2] FreeMarker sample application

2007-07-10 Thread Don Brown
I believe our Struts 2 Starter archetype uses Freemarker. See the archetype section in our docs. Don On 7/5/07, Mark P Ashworth <[EMAIL PROTECTED]> wrote: Good Day, I have been using FreeMarker for the S2 plug-in development and some other projects. I find the FTL language more expressive th

Re: Is the tooltip working in S2

2007-07-10 Thread Don Brown
It depends what theme you are using. I believe tooltips require at least the xhtml theme, and they use Dojo to render. Don On 7/9/07, tom tom <[EMAIL PROTECTED]> wrote: Hi, I got the following in S2, jsp. it shows nothing, infact when I saw the view source it shows nothing with regards to to

Re: [S2] How can I get system validation message modified?

2007-07-10 Thread Don Brown
Take a look at the localization section in our documentation, and override the messages for those validation error keys. Don On 7/6/07, Wei Xu <[EMAIL PROTECTED]> wrote: In my scenario, I didn't use any Struts validation frame. Here, "field1" is a numeric field in Java bean. If I input a val

Re: Action Based, Event Based Component Based ?

2007-07-10 Thread Don Brown
That's a huge question that is better served by spending some time with Google, but in general, action-based frameworks map a url to an "action", which is generally a single class with some sort of execute or perform method. Component-based frameworks like JSF and Wicket don't deal with urls, but

Re: [S2] Wildcard characters in Action-validation.xml

2007-07-10 Thread Don Brown
Nope, it currently isn't supported, although it is a great idea. I think there may be a JIRA ticket already for it, but if you can't find any, please create one. Of course, patches are very appreciated :) Don On 7/9/07, Wei Xu <[EMAIL PROTECTED]> wrote: I plan to use Struts validation frame t

Re: [S2] config file inheritance (extending packages) - need help

2007-07-10 Thread Don Brown
I know result-types are, and I'd be pretty surprised if the other two weren't as well. File a JIRA ticket to get the docs updated, or file a CLA [1] and get access to change them yourself. Don [1] http://www.apache.org/licenses/ On 7/9/07, Bill Johnson <[EMAIL PROTECTED]> wrote: According to

Re: [S2] Form Processing - Security - ParameterNameAware

2007-07-10 Thread Don Brown
Agreed - the best practice is to be very careful what you expose via getter/setters on your Action. Of course, if you still don't trust the interceptor, just use a custom stack that doesn't include it. Don On 7/10/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote: Hi, I think you can only hav

  1   2   3   4   >