Re: Struts 1.3 and OAuth2

2019-03-10 Thread Martin Gainty
attempts at direct access to struts webapp should automatically redirect the request to an authorisation-server once fully authenticated the original-request is then sent to "struts-app" JSR-286 portlet-api frameworks have handled role assignment and authorisation for better part of 10 years Her

RE: Struts 1.3 errorStyleClass Not Working (Error Field Highlighting)

2015-09-02 Thread Givler, Eric
lar to use and see how it behaves. What do you use for the validation that is creating these keys? Struts Validator? Eric -Original Message- From: eugenebalt [mailto:eugeneb...@yahoo.com] Sent: Tuesday, July 07, 2015 3:45 PM To: user@struts.apache.org Subject: Re: Struts 1.3 errorStyleC

Re: Struts 1.3 errorStyleClass Not Working (Error Field Highlighting)

2015-07-07 Thread eugenebalt
So, I now have some more info about this problem, which could maybe help us debug it: If you open Struts' BaseHandlerTag.doErrorsExist(), which is called to set the Error Style, it looks like this. Note the very last statement, the &&-paired double condition for errorsExist. protected boolean d

Re: Struts 1.3 : Preventing SQL Injection (form.field validation)

2013-03-22 Thread Paul Benedict
If you use JDBC prepared statements, you will not have to worry about SQL injection. Paul On Fri, Mar 22, 2013 at 6:36 PM, J.V. wrote: > Does anyone out there have a method I could use to pass a form field > variable that would check for all known SQL injection vulnerabilities (with > regards t

Re: Struts 1.3 : Preventing SQL Injection (form.field validation)

2013-03-22 Thread Anjib Mulepati
Use Filter On 3/22/2013 7:36 PM, J.V. wrote: Does anyone out there have a method I could use to pass a form field variable that would check for all known SQL injection vulnerabilities (with regards to the form field only, irrespective of the method of SQL execution) and return a true/false if

Re: Struts 1.3 : Validating forms / password field

2013-03-22 Thread Paul Benedict
The best approach is to make validate() deal with syntax validation. At the beginning of your execute() method, run business logic validation and construct ActionErrors if your business logic fails. You really shouldn't be trying to stuff business logic in the validate() method -- keep that for dat

Re: Struts 1.3 Tiles not working

2013-01-14 Thread sameer ali
Il'l keep that in mind the next time. Sameer On Tue, Jan 15, 2013 at 5:19 AM, Dave Newton wrote: > Unrelated, but go ahead and take out all those comments that don't add > anything to the question next time. Some of us read on mobile devices and > useless vertical whitespace generally ends up

Re: Struts 1.3 Tiles not working

2013-01-14 Thread Dave Newton
Unrelated, but go ahead and take out all those comments that don't add anything to the question next time. Some of us read on mobile devices and useless vertical whitespace generally ends up in an automatic delete. Dave

Re: [Struts 1.3] first time use custom converter not working

2009-10-07 Thread Arthur Neves
HI, You must create your property as a WarrType. Then your converter will be call. On Sat, Oct 3, 2009 at 10:21 PM, Paul Benedict wrote: > Ever solve this? Are you sure you registered your converter properly? > > Paul > > On Wed, Sep 23, 2009 at 3:14 AM, senderj wrote: > > > > I have a clas

Re: [Struts 1.3] first time use custom converter not working

2009-10-03 Thread Paul Benedict
Ever solve this? Are you sure you registered your converter properly? Paul On Wed, Sep 23, 2009 at 3:14 AM, senderj wrote: > > I have a class Stk with property warType of type enum WarrType > >    public enum WarrType { >        NONE, CALL, PUT; } > > I have in my struts config > > type="org.ap

Re: [Struts 1.3] converter converts but not set property

2009-09-24 Thread senderj
Thanks for the reply. The warType is WarrType. The convert() method executed. It has correct input parm and output return (I've used debugger to check it). The copyProperties() just doesn't copy it after the convert(). That's why I have to add copyProperty() to explicitly copy "warType". Arthur

Re: [Struts 1.3] converter converts but not set property

2009-09-23 Thread Arthur Neves
BeansUtils just call your converter, if your form bean property "warType", will be a 'WarrType' . On Wed, Sep 23, 2009 at 7:16 AM, senderj wrote: > > I wrote a converter to convert a enum for BeanUtils.copyProperties(). I > have > this in my struts config: > > type="org.apache.struts.validator

Re: Struts 1.3: MappingDispatchAction and forms??

2009-07-02 Thread Paul Benedict
Try putting scope="request" on your action mappings. I don't think they are found because they aren't in the session (the default). On Tue, Jun 30, 2009 at 3:42 AM, Florian Rustedt wrote: > Hi, > > i want to do follwing: > after Login, i am at "showCallinggroupMembers.jsp". There, i want to implem

Re: Struts 1.3 + Spring -> "No WebApplicationContext found: no ContextLoaderListener registered?"

2008-04-01 Thread Yayo
yep I did, it's were my context gets started, everything goes fine, actions, transactions and the like until I try to instantiate this object. I've tried both lazy-init="false" and "true" but... On Tue, Apr 1, 2008 at 9:39 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote: > Have you added the cont

Re: Struts 1.3 + Spring -> "No WebApplicationContext found: no ContextLoaderListener registered?"

2008-04-01 Thread Alberto A. Flores
Have you added the contextLoaderListener in web.xml? Yayo wrote: Hi and thanks in advance! I've got a struts - spring based application and a declared bean wich implements both ApplicationContextAware and ServletContextAware. I debug the code and both setters receive data but when I try to use

Re: Struts 1.3 : DynaValidatorActionForm missing input form data on errors display

2008-03-18 Thread Laurie Harper
eod wrote: Hi, I'm seeing input form data disappear if the validation fails & the page is re-displayed; have Googled around but found nothing specific to dyna forms, so I'm hoping someone has come across this & know what the issue is; I had tried setting the action's scope to session as a test,

Re: Struts 1.3 modules.

2008-01-02 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter L. Berghold wrote: > Maybe I'm misunderstanding just what Struts modules do, but I'm trying > to migrate from Struts 1.2 to Struts 1.3 and I'm running into some issues. > > Never mind.. figured out what was going on. Seems when you invok

Re: Struts 1.3.x : Dynavalidatorform : initialize & prepopulate ArralyList with data after submisstion

2007-06-06 Thread Niall Pemberton
Use a LazyValidatorForm - define an array of User objects for the form in your struts-config and it will automatically populate it for you: http://struts.apache.org/1.x/userGuide/building_controller.html#lazy_action_form_classes Niall On 6/6/07, Raghupathy, Gurumoorthy <[EMAIL PROTECTED]

Re: Struts 1.3 and maven

2007-03-28 Thread Niall Pemberton
On 3/28/07, Manfred Wolff <[EMAIL PROTECTED]> wrote: James. I know it. But at least one question: Does anybody know why every little peace of open source is hosted at ibiblio, but not the famous struts. I really don't understand this. It is (both 1.3.5 and 1.3.8 versions) - but in the maven 2

Re: Struts 1.3 and maven

2007-03-28 Thread Manfred Wolff
James. I know it. But at least one question: Does anybody know why every little peace of open source is hosted at ibiblio, but not the famous struts. I really don't understand this. Manne James Mitchell wrote: Ya, I don't know off the top of my head, but keep in mind that you can tell Mave

Re: Struts 1.3 and maven

2007-03-28 Thread James Mitchell
Ya, I don't know off the top of my head, but keep in mind that you can tell Maven to use different repositories, so you can easily host your own maven repo on your intranet which I presume that all of the devs could see and may or may not be open to the public. HTH -- James Mitchell On M

Re: Struts 1.3 and maven

2007-03-28 Thread Manfred Wolff
James. For a project with one worker this is a suitable resolution. But in a big project, with developers round the world (in this case Germany, India and Tunesia) it is a good thing to have all needed common open source jars held in the project.xml accessable via a public maven repo as ibib

Re: Struts 1.3 and maven

2007-03-28 Thread James Mitchell
Oh, you're right. Sorry. Would you be able to install them locally and just go with that? Or do you have to have a portable solution? If you can install them locally (on your machine), then drop them in the right place, and call it done. If you must have a portable solution, just drop t

Re: Struts 1.3 and maven

2007-03-28 Thread Manfred Wolff
Sorry, but there - as in ibiblio - is no 1.3 Struts in the repository. Manne James Mitchell wrote: http://www.apache.org/dev/repository-faq.html -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote: Hi Can somebody tell me, wh

Re: Struts 1.3 and maven

2007-03-28 Thread James Mitchell
http://www.apache.org/dev/repository-faq.html -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote: Hi Can somebody tell me, why there is no jar file at ibiblio.org/maven - and - where I can get the jars (via url), if I want to m

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
I will try that. Thanks a lot for your input. Harsh. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 13, 2007 5:05 PM To: Struts Users Mailing List Subject: Re: Struts 1.3 pain -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harsh

Re: Struts 1.3 pain

2007-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harsh, Chaudhary, Harsh wrote: > There is no specific reason, But we have one custom validation, So is it > good practice to revamp the entire the validator.xml file then? Well, there's no reason to put everything into one file. I had this same probl

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
: Tuesday, February 13, 2007 4:10 PM To: Struts Users Mailing List Subject: Re: Struts 1.3 pain -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chaudhary, Chaudhary, Harsh wrote: > I am trying to convert a Struts 1.2 app to Struts 1.3. [snip] > I have the validator.xml, validator-rules.x

Re: Struts 1.3 pain

2007-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chaudhary, Chaudhary, Harsh wrote: > I am trying to convert a Struts 1.2 app to Struts 1.3. [snip] > I have the validator.xml, validator-rules.xml and errors.properties > intact from my Struts 1.2 version. Is there a reason to keep your old validat

Re: Struts 1.3, JSON, and Action Forms

2007-02-07 Thread Musachy Barroso
I've been working on a JSON plugin to serialize/deserialize actions to/from JSON, but it is for Struts 2. You could at least reuse the serialization/deserialization code: http://code.google.com/p/jsonplugin/ musachy On 2/7/07, Alejandro Calbazana <[EMAIL PROTECTED]> wrote: Hello, I am wonder

Re: Struts 1.3 + Tiles + Chain config

2006-10-18 Thread Niall Pemberton
On 10/18/06, Michael Rush <[EMAIL PROTECTED]> wrote: > > ... > > ... > Related to this, is there a way to specify the tiles-defs file to use? For example, my application has 3 modules, each with its own tiles-defs file. In the normal way - using the tiles plugin in your

Re: Struts 1.3 + Tiles + Chain config

2006-10-18 Thread Michael Rush
... ... Related to this, is there a way to specify the tiles-defs file to use? For example, my application has 3 modules, each with its own tiles-defs file. - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Struts 1.3 + Tiles + Chain config

2006-10-17 Thread Niall Pemberton
On 10/17/06, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: Wendy Smoak wrote: > See section 4.3 on Tiles in the upgrade notes: > http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 > > There is a chain-config file in the Tiles jar. You can use it > directly, or extract it and modify it if yo

Re: Struts 1.3 + Tiles + Chain config

2006-10-17 Thread Mikolaj Rydzewski
Wendy Smoak wrote: See section 4.3 on Tiles in the upgrade notes: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 There is a chain-config file in the Tiles jar. You can use it directly, or extract it and modify it if you need to. Thanks for information. There is a bug in 1.3.5, however

Re: Struts 1.3 + Tiles + Chain config

2006-10-17 Thread Michael Jouravlev
Check out struts-cookbook-1.3.5.war example app, it contains custom chain-config.xml with entries relevant to Tiles. Below are portions from this file: === cut here === ... ... ... ... ... === cut here === On 10/17/06, Mikolaj Rydzewski <[EMAIL

Re: Struts 1.3 + Tiles + Chain config

2006-10-17 Thread Wendy Smoak
On 10/17/06, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: I wanted to migrate my struts/tiles application from struts 1.2 to struts 1.3 to make use of its new feature: chain of responsibility. The old way of using tiles with struts was to override default request processor with special one desi

Re: Struts 1.3 and bean write

2006-08-23 Thread Wendy Smoak
On 8/22/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: I am testing struts 1.3.5 and I have a difference with previous version. When I call bean:write to display an int property in my jsp page I have the following value org.apache.struts.taglib.bean.format.int19 instead of 19. Have you got an

Re: Struts 1.3

2006-08-08 Thread Niall Pemberton
Struts 1.3.x doesn't yet have a "GA" (i.e. production) quality rating - However there is a Struts 1.3.5 test build which is currently being voted on: http://article.gmane.org/gmane.comp.jakarta.struts.devel/45152 ...and this will probably get at least a "beta" label if not a "GA" label. You can

Re: struts 1.3.x

2006-07-17 Thread David Evans
Another avenue for exploration at this point is webwork: http://opensymphony.com/webwork/ this is the basis for for struts 2.0, and its a great framework. the basic concept remains the same (a url maps to a class method, which returns a pointer to a resource, usually a view), but there is a lot mo

Re: struts 1.3.x

2006-07-17 Thread Adam Hardy
Ted Husted on 18/07/06 00:31, wrote: On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: However there isn't even a link to the javadoc for it on the website that I could find. At this point, the Javadoc on Struts 1 website, along with everything else, covers 1.3.5. * http://struts.apache.org/1

Re: struts 1.3.x

2006-07-17 Thread Ted Husted
On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: However there isn't even a link to the javadoc for it on the website that I could find. At this point, the Javadoc on Struts 1 website, along with everything else, covers 1.3.5. * http://struts.apache.org/1.x/struts-core/apidocs/index.html We

Re: struts 1.3.x

2006-07-17 Thread Hubert Rabago
On 7/17/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: > "In fact, in Struts 1.3, some of the same "convention of configuration" practices are applied in the configuration files: you can define mapping conventions in struts-config.xml without

Re: struts 1.3.x

2006-07-17 Thread Michael Jouravlev
On 7/17/06, Adam Hardy <[EMAIL PROTECTED]> wrote: Is 1.3.5 beta or alpha? Neither. The grade will be assigned after voting in about a week. See dev list for details. 1.3.5 is the fifth build since 1.3.0 and is being expected to make a GA grade. At least that is the intention of those who are pu

Re: Struts 1.3.x snapshot is not available

2006-06-25 Thread James Mitchell
Thanks Wendy, I'm sorting through hardware issues and hopefully I'll make some more headway on this by the end of the week. -- James Mitchell On Jun 23, 2006, at 6:04 AM, Wendy Smoak wrote: On 6/22/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 6/22/06, Michael Jouravlev <[EMAIL PROTECTED

Re: Struts 1.3 Release Date...

2006-06-23 Thread Wendy Smoak
On 6/22/06, thamizh arasu <[EMAIL PROTECTED]> wrote: This is a good news about Struts 1.3 is going to be released. I searched the web but i could not find the release date of struts 1.3 version. can any one tell me the release date of struts 1.3.. There isn't one. :) http://struts.apache.or

Re: Struts 1.3.x snapshot is not available

2006-06-23 Thread Wendy Smoak
On 6/22/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 6/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > The 1.3.x snapshot location [1] pointed to from the 1.3.5 release page > [2] results in "Not Found" response: "The requested URL > /builds/struts/maven/trunk/nightly/struts-action/ was n

Re: Struts 1.3.x snapshot is not available

2006-06-22 Thread Wendy Smoak
On 6/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: The 1.3.x snapshot location [1] pointed to from the 1.3.5 release page [2] results in "Not Found" response: "The requested URL /builds/struts/maven/trunk/nightly/struts-action/ was not found on this server." Was it moved to another locati

Re: Struts 1.3 - WebSite/Docs

2006-04-11 Thread Wendy Smoak
On 4/11/06, Dion Gillard <[EMAIL PROTECTED]> wrote: > Shouldn't this be a bit more obvious on the main site? Probably. :) Things are under construction (again!) with the reorganization and move to Maven 2 for Struts Action, but we'll be changing the menu to reflect the shorter list of sub-projec

Re: Struts 1.3 - WebSite/Docs

2006-04-11 Thread P Y
I guess most people bet on google now ... http://www.google.com/search?q=struts+release+changes On 4/12/06, Dion Gillard <[EMAIL PROTECTED]> wrote: > Shouldn't this be a bit more obvious on the main site? > - To unsubscribe, e-m

Re: Struts 1.3 - WebSite/Docs

2006-04-11 Thread Dion Gillard
Shouldn't this be a bit more obvious on the main site? On 4/11/06, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > > On 4/10/06, Dion Gillard <[EMAIL PROTECTED]> wrote: > > Any pointers to where to find details on the changes and details in 1.3? > > > > > Probable starting points: > > http://struts.ap

Re: Struts 1.3 - WebSite/Docs

2006-04-10 Thread Rahul Akolkar
On 4/10/06, Dion Gillard <[EMAIL PROTECTED]> wrote: > Any pointers to where to find details on the changes and details in 1.3? > Probable starting points: http://struts.apache.org/struts-action/userGuide/release-notes.html http://wiki.apache.org/struts/StrutsUpgrade -Rahul

Re: Struts 1.3: Arbitary key/value pair

2006-01-06 Thread Manfred Wolff
Thanks - works fine. Niall Pemberton schrieb: >The properties get set in the ActionMapping - not the Action, so you can do >mapping.getProperty("foo") to get the values. > >This feature works the same throughout - its available in the >"configuration" objects, not the object itself - so ActionMa

Re: Struts 1.3: Arbitary key/value pair

2006-01-06 Thread Joe Germuska
At 5:43 PM +0100 1/6/06, Manfred Wolff wrote: Hi everybody. Since Struts 1.3 it is possible to set an arbitary key/value pair to retrieve at runtime such as: In a document from the struts university (author Ted Husted) is an example to retrieve such pair: public ActionForward ex

Re: Struts 1.3: Arbitary key/value pair

2006-01-06 Thread Niall Pemberton
The properties get set in the ActionMapping - not the Action, so you can do mapping.getProperty("foo") to get the values. This feature works the same throughout - its available in the "configuration" objects, not the object itself - so ActionMapping which is the config for Action or FormBeanConfig

Re: Struts 1.3 - what is new there ?is it based on shale ?

2005-10-10 Thread Ted Husted
On 10/9/05, Legolas Woodland <[EMAIL PROTECTED]> wrote: > Hi > Thank you for reading my mail. > What is new in struts 1.3 ? The codebase that would become Struts 1.3.x is available as our nightly build. A copy of the release notes is available here: * http://wiki.apache.org/struts/StrutsClassicRe

Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread Craig McClanahan
On 9/9/05, Don Brown <[EMAIL PROTECTED]> wrote: > > Heh, well, I can assure you I for one have my doubts :) Shale is one of > the > more interesting developments in Struts and certainly deserved a few > slides. > My goal was not to promote Shale as the future, but provide a snapshot of > the man

Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread Don Brown
Heh, well, I can assure you I for one have my doubts :) Shale is one of the more interesting developments in Struts and certainly deserved a few slides. My goal was not to promote Shale as the future, but provide a snapshot of the many growth areas within Struts, Shale included. I wanted to say

Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread 梁炳場
Don I have read your presentation. I give me an impression. Shale is the future of Struts without doubt!!! 2005/9/8, Don Brown <[EMAIL PROTECTED]>: > I just finished giving a presentation titled "Struts 1.3 and Beyond" to the > Silicon Valley Web Developer JUG that I thought folks on this lis

Re: sTRUTS 1.3 - chain flow / complex app

2005-05-26 Thread Craig McClanahan
On 5/23/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > Marco wrote: > >Does Shale use chain? Could you integrate chain in Shale? > > Shale does use chain, but to be honest, I don't know much more about > it than that. > Shale uses Commons Chain to configure it's application level processing (i.e.

RE: sTRUTS 1.3 - chain flow /again

2005-05-25 Thread Joe Germuska
At 9:23 AM +0100 5/25/05, Marco Mistroni wrote: Hello Joe & all, I have one question regarding the chain.. Am I correct to assume that The SelectInput command that comes after ValidateActionForm in chain-config.xml should be called in case validation fails? How does that happen? Javadoc s

RE: sTRUTS 1.3 - chain flow /again

2005-05-25 Thread Marco Mistroni
d regards marco -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 14:10 To: Marco Mistroni; 'Struts Users Mailing List'; 'Frank W. Zammetti' Subject: RE: sTRUTS 1.3 - chain flow / complex app Marco wrote: >Does Shale use cha

RE: sTRUTS 1.3 - chain flow / solved

2005-05-24 Thread Frank W. Zammetti
Excellent, I am looking forward to it! Frank -Original Message- From: "Marco Mistroni"<[EMAIL PROTECTED]> Sent: 5/24/05 4:08:39 AM To: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> Cc: "'Struts Users Mailing List'" Subjec

RE: sTRUTS 1.3 - chain flow / solved

2005-05-24 Thread Frank W. Zammetti
Excellent, I am looking forward to it! Frank -Original Message- From: "Marco Mistroni"<[EMAIL PROTECTED]> Sent: 5/24/05 4:08:39 AM To: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> Cc: "'Struts Users Mailing List'" Subjec

RE: sTRUTS 1.3 - chain flow / solved

2005-05-24 Thread Marco Mistroni
marco -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 23:42 To: Marco Mistroni Cc: 'Struts Users Mailing List' Subject: Re: sTRUTS 1.3 - chain flow / solved Sorry I didn't respond sooner Marco, Fantastic work! I haven't had a chance

Re: sTRUTS 1.3 - chain flow / solved

2005-05-23 Thread Frank W. Zammetti
Sorry I didn't respond sooner Marco, Fantastic work! I haven't had a chance to look at what you sent me yet, but I definitely look forward to doing so. Would you have any objection to me putting your code out on SF in CVS, maybe as a separate branch? That way others can benefit from your eff

RE: sTRUTS 1.3 - chain flow / complex app

2005-05-23 Thread Joe Germuska
Marco wrote: Does Shale use chain? Could you integrate chain in Shale? Shale does use chain, but to be honest, I don't know much more about it than that. I am looking forward to add more complexity for 'testing' the chain.. If you have anything to suggest me, go ahead :-) .. Just keep doi

RE: sTRUTS 1.3 - chain flow / complex app

2005-05-23 Thread Marco Mistroni
Hello all, >It's interesting to have some more complex use cases to test the >chain model against... I would offer my app as 'guinea pig' for complex cases :-) Currently it's a small app that manage my own 'expenses' (I have a mysql as backend and jboss 3.2.5/tomcat 5.5 as app server)to see Wha

RE: sTRUTS 1.3 - chain flow / solved

2005-05-23 Thread Marco Mistroni
Hello, Looks like I found a way to make it work! :-) I have submitted the code to Frank..surely he'll find way to optimize it.. For now, I had to extend few commands (SelectAction, ValidateActionForm, PopulateActionForm & SelectForward) and I had to rewrite struts chain-config.xml to use my

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
Joe Germuska wrote: I'm not sure I think that would be nice ;-) Seems kind of risky, in that it adds a lot of indeterminacy. That's the main reason why lots of us are down on request chaining too. Just talking about the chain pattern generically... think about trying to implement a recursive p

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
At 3:23 PM -0400 5/20/05, Frank W. Zammetti wrote: It's interesting to have some more complex use cases to test the chain model against... Absolutely. One thing that would be nice, and maybe it already is and I just don't know enough yet, is to be able to essentially restart the chain at any gi

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
Joe Germuska wrote: Well, the difference between extending PopulateForm and putting a command after it which re-populates in the case of a SOAP request is small; the only caveat being that in the add-a-command-after model you must do it after or the existing PopulateForm action would clobber you

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
I'd suggest adding a preprocessing command which recognizes the SOAP header, as Frank described, and instead of forwarding, simply sets a key/value pair in the ActionContext which other commands can interpret. Then later, you could extend the PopulateForm class to look for the flag and to do i

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
Joe Germuska wrote: I do think that it would be much easier in 1.3 than in 1.2 to solve this without doing a forward and re-engaging the request processor; I can see where the complexity of intervening in arbitrary spots in the request process in the "template pattern" approach of the RequestPro

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
However, just to level-set as far as the current 1.2.x version goes... Thanks, Frank. That helps a lot. I do think that it would be much easier in 1.3 than in 1.2 to solve this without doing a forward and re-engaging the request processor; I can see where the complexity of intervening in arbitra

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
I don't want to comment much, if at all, on the chain-based implementation Marco is trying to accomplish because I am frankly not up to speed on the 1.3 code base and so am not in a position to comment intelligently. I'm trying to help him off the list as best I can, but I'm actually having tr

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
It works, but yes, you are right in the sense that If I override The struts catalog, everything will screw up... unless I have a look at Chain-config before, so that I know what commands are supposed to be In struts chain, and then add mine while keeping original ones.. I think that's the best solu

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Marco Mistroni
Hello Joe, Thanx a lot for your reply... >If you have time to try this, let me know -- but I'd be afraid that >if you defined another catalog with the name "struts", it would >overwrite the base "struts" catalog instead of merging with it. If >that's true, then you either must edit the one ch

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
At 2:43 PM +0100 5/20/05, Marco Mistroni wrote: Hello Joe, As an aside, I think reveals an unfortunate (though minor) shortcoming of the basic chain model: either way, you must edit the struts chain-config.xml in order to use this behavior. I would prefer if there were a way for users to register

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Marco Mistroni
Hello Joe, >As an aside, I think reveals an unfortunate (though minor) >shortcoming of the basic chain model: either way, you must edit the >struts chain-config.xml in order to use this behavior. I would >prefer if there were a way for users to register their preprocessing >command without ha

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
No, rather than changing LookupCommand, you would put your logic into one or more classes that are clean implementations of Command and configure in a catalog with a name so that the existing lookup command would find them -- either put them in catalog "struts" under the name "servlet-standard

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Marco Mistroni
Hello Joe, I have read in a sample chain-config.xml that I have downloaded, That RequestProcessor.processPreprocess maps now to 'LookupCommand with optional="true"' Does that mean that, If in my webapp my RequestProcessor.processPreProcess was doing some logic, now I have to put that logi

Re: sTRUTS 1.3 - chain flow

2005-05-17 Thread Joe Germuska
At 10:05 AM +0100 5/17/05, Marco Mistroni wrote: Hello Joe, I am trying to port an app (Frank Zammetti's strutsws)that was using Struts 1.1 to Struts 1.3. I have a quick question: in which class/method the ActionForm is populated with parameters from request? org.apache.struts.chain.comman

RE: Struts 1.3 & custom controller

2005-05-09 Thread Marco Mistroni
Hello all, I have an app that was using strutsws from Frank Zammetti, and I am trying to port it to Struts 1.3.. The current version of strutsws override Struts's result processor, and in particular it overrides those following methods: - processPreprocess - processValidate - processActio

RE: Struts 1.3, chain & command configuration / few thoughts..

2005-05-04 Thread Joe Germuska
At 12:00 PM +0100 5/4/05, Marco Mistroni wrote: Hello joe, So really, all you should need to do is write a custom subclass of ComposableRequestProcessor which gets its base CatalogFactory from Spring during the init method. Then, you'd have to adapt the default chain-config.xml into Spring's bean

RE: Struts 1.3, chain & command configuration / few thoughts..

2005-05-04 Thread Marco Mistroni
Hello joe, >So really, all you should need to do is write a custom subclass of >ComposableRequestProcessor which gets its base CatalogFactory from >Spring during the init method. Then, you'd have to adapt the >default chain-config.xml into Spring's bean-factory XML syntax so as >to create a C

Re: Struts 1.3, chain & command configuration / few thoughts..

2005-05-04 Thread Joe Germuska
Hi, Marco: Since you first brought up using Spring to configure the chain, that has been on the back of my mind. Probably like you, as I use Spring more in an application I find it frustrating to bump up against places where I can't seem to connect to the ApplicationContext or otherwise use Sp

RE: Struts 1.3 & custom controller

2005-05-03 Thread Frank W. Zammetti
ng' my old app (written using Struts 1.1) to > Struts 1.3/chain..it works just great :-) > > > > -Original Message- > From: Joe Germuska [mailto:[EMAIL PROTECTED] > Sent: 03 May 2005 16:23 > To: Marco Mistroni; 'Struts Users Mailing List' > Subject: RE

RE: Struts 1.3 & custom controller

2005-05-03 Thread Frank W. Zammetti
I'm going to try and find some time next week to do strutsws in 1.3... as much for my own learning as for anyone else, but I think that might be a good thing to post about on the Wiki, a real-life example step-by-step. Even those that have never looked at strutsws may find the walk-through helpful

RE: Struts 1.3 & custom controller

2005-05-03 Thread Frank W. Zammetti
age- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: 03 May 2005 14:40 > To: Marco Mistroni > Cc: 'Struts Users Mailing List' > Subject: Re: Struts 1.3 & custom controller > > Hi Marco, > > You are correct, the custom controller is at the h

RE: Struts 1.3 & custom controller

2005-05-03 Thread Marco Mistroni
co Mistroni; 'Struts Users Mailing List' Subject: RE: Struts 1.3 & custom controller At 3:24 PM +0100 5/3/05, Marco Mistroni wrote: >Hello Frank, > If Str1.3 RP is implemented as set of commands, then shouldn't >I be able to extend It to add my own commands (s

RE: Struts 1.3 & custom controller

2005-05-03 Thread Joe Germuska
At 3:24 PM +0100 5/3/05, Marco Mistroni wrote: Hello Frank, If Str1.3 RP is implemented as set of commands, then shouldn't I be able to extend It to add my own commands (such as one that does the trick In your request processor).. I think it should be possible at least I would like to

RE: Struts 1.3 & custom controller

2005-05-03 Thread Marco Mistroni
Marco -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 03 May 2005 14:40 To: Marco Mistroni Cc: 'Struts Users Mailing List' Subject: Re: Struts 1.3 & custom controller Hi Marco, You are correct, the custom controller is at the heart of strutsws. I

Re: Struts 1.3 & custom controller

2005-05-03 Thread Frank W. Zammetti
Hi Marco, You are correct, the custom controller is at the heart of strutsws. I hesitate to answer about 1.3 because I've only looked at it very briefly. But, I'll try and answer and if someone more knowledgable sees me flub something, please correct me... Remember that 1.3 uses the CoR pattern

Re: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Hubert Rabago
Marco, What about still extending BaseAction then using ActionDispatcher? Attachment http://issues.apache.org/bugzilla/attachment.cgi?id=12768 from http://issues.apache.org/bugzilla/show_bug.cgi?id=31270 Joe, Yes, yes, I know. It's just that my home machine went offline and when it got back up

Re: Struts 1.3 & DispatchAction. command question

2005-04-22 Thread Michael Jouravlev
If you do app for yourself, then I think it is for your liking. If you want to create a library, then having one method processing all commands allows you to define only one interface once and for all. On the other hand, this interace would not define the possible commands, it will be too flexible.

RE: Struts 1.3 & DispatchAction. command question

2005-04-22 Thread Marco Mistroni
Hello, In a scenario where I am using a DispatchChainAction Where I have n methods, what could be good strategy to use With Commons-Chain? 1) 1 command per method 2) 1 command for all method, where I pass a parameter saying what I want to do? Anyone has any idea? Thanx and regards

RE: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Joe Germuska
tring anyway -- but again, a matter of taste. Joe Regards, marco -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 14:28 To: Marco Mistroni; 'Struts Users Mailing List' Subject: Re: Struts 1.3: retrieving commands dynamically from Act

RE: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Marco Mistroni
lto:[EMAIL PROTECTED] Sent: 22 April 2005 14:28 To: Marco Mistroni; 'Struts Users Mailing List' Subject: Re: Struts 1.3: retrieving commands dynamically from Action Marco: I'm not quite sure what you find distasteful about how dispatch action is working; is it simply that you th

Re: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Joe Germuska
Marco: I'm not quite sure what you find distasteful about how dispatch action is working; is it simply that you think the request parameter values are not controlled enough to be good for use as bean names? Maybe the problem is that you've been caught where the DispatchChainAction class hasn't

RE: struts 1.3 dev with validator 1.2 dev

2005-04-21 Thread Marsh-Bourdon, Christopher
! Cheers for all the suggestions. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 21 April 2005 11:04 To: Struts Users Mailing List Subject: Re: struts 1.3 dev with validator 1.2 dev The method signature on these

  1   2   >