Re: adding action mappings at runtime

2012-12-12 Thread Lukasz Lenart
2012/12/10 ChadDavis : > Before I rewrite agains that API, I thought Id ask for advice. What's the > best way to add a new xml config file to the runtime configuration? You would like to upload a new jar/zip with classes, expand it and somehow reload the whole configuration with newly uploaded xm

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-12 Thread musomesa
Hopefully it solves the OP's problem. Cheers Chris -Original Message- From: Zoran Avtarovski To: Struts Users Mailing List ; musom...@aol.com Sent: Wed, Aug 12, 2009 7:27 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? I apol

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-12 Thread Zoran Avtarovski
gt; > > -Original Message- > From: Zoran Avtarovski > To: Struts Users Mailing List ; CS Wong > > Sent: Tue, Aug 11, 2009 9:49 pm > Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? > > > > > > > > &

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
I think your pattern is on the namespace rather than the action? C. -Original Message- From: Zoran Avtarovski To: Struts Users Mailing List ; CS Wong Sent: Tue, Aug 11, 2009 9:49 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? I¹m

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread Zoran Avtarovski
t; > /styles/* >> > /scripts/* >> > /images/* >> > /index.html >> > >> > ... >> > >> > >> > Regards >> > Eduard Neuwirt >> > >> > CS Wong schrieb: >> > >> > Hi, >>&g

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
Tue, Aug 11, 2009 1:03 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? If I understand you correctly, you're saying that I should have double copies of each JSP, say "/decorated/view.jsp" and "/undecorated/view.jsp". And I should co

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
action mappings in Struts 2? If I understand you correctly, you're saying that I should have double copies of each JSP, say "/decorated/view.jsp" and "/undecorated/view.jsp". And I should configure the exclusion pattern like "/undecorated/*". If poss

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread CS Wong
--- > From: CS Wong > To: user@struts.apache.org > Sent: Tue, Aug 11, 2009 6:10 am > Subject: Configuring SiteMesh for specific action mappings in Struts 2? > > > > > > > > > > > Hi, > I'm trying to configure sitemesh to only take effect for a certain su

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread CS Wong
> /styles/* > /scripts/* > /images/* > /index.html > > ... > > > Regards > Eduard Neuwirt > > CS Wong schrieb: > > Hi, >> I'm trying to configure sitemesh to only take effect for a certain subset >> of >> action mappings in my S

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
e the actual material you want to re-use? Chris -Original Message- From: CS Wong To: user@struts.apache.org Sent: Tue, Aug 11, 2009 6:10 am Subject: Configuring SiteMesh for specific action mappings in Struts 2? Hi, I'm trying to configure sitemesh to only take ef

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread Eduard Neuwirt
Hi Wong, perhaps would the following entries from decorators.xml help you : /styles/* /scripts/* /images/* /index.html ... Regards Eduard Neuwirt CS Wong schrieb: Hi, I'm trying to configure sitemesh to only take effect for a certain subset of action mappings in my Str

Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread CS Wong
Hi, I'm trying to configure sitemesh to only take effect for a certain subset of action mappings in my Struts 2 application. Say for example, I have the following struts.xml snippet: /view/form.jsp /view/form.jsp I would like the output of "/showForm.act

Re: Mixing convention plugin and legacy action mappings

2009-04-03 Thread Ryan Chichirico
I think as I was typing a response I may have discovered the issue. We had a wildcard catch all for the root namespace which was throwing things off. /ftl/{1}.ftl Once I created a stand alone package com.xm.web.struts2.test.HelloAction I was able to use both /test/h

Re: Mixing convention plugin and legacy action mappings

2009-04-03 Thread Musachy Barroso
Convention configuration just gets mixed with xml configuration, they should not conflict. What kind of problem are you having? musachy On Fri, Apr 3, 2009 at 12:52 PM, Ryan Chichirico wrote: > We've recently migrated to Struts 2.1.6 and started looking into the > convention plugin.  Since our a

Mixing convention plugin and legacy action mappings

2009-04-03 Thread Ryan Chichirico
We've recently migrated to Struts 2.1.6 and started looking into the convention plugin. Since our application is far along the 2.0.x way of doing things it's difficult to make whole sale changes immediately. We'd like to start introducing new features with the convention plugin and slowly ada

Re: [S2] submitting a form and choice of action mappings

2008-08-09 Thread Pierre Thibaudeau
In case anyone's interested, I solved the problem by making a small compromise: that previewing a post (whether a new one or an edited one) should require the same security authorization as posting one. >From that point on, I can limit myself to two action mappings: dispatchPost, editPos

[S2] submitting a form and choice of action mappings

2008-08-09 Thread Pierre Thibaudeau
I am a little puzzled as to what my best option is for mapping and naming actions in the following context. I have a "posting" form (in JSP) which is used for any of the following: * Posting a new comment * Editing an existing comment * Previewing a new comment * Previewing a comment while it's be

Re: Thoughts of using explicit regexps instead of wilcards for action mappings?

2008-07-13 Thread Jeromy Evans
Karr, David wrote: "MyStuff_(add|save|load|delete)", that is still more concise than having Has anyone ever considered this? I threw this together but don't use it any more: http://code.google.com/p/struts2urlplugin/ You can plugin a regex matcher (default) or plaintext or others. Aft

Thoughts of using explicit regexps instead of wilcards for action mappings?

2008-07-12 Thread Karr, David
One thing that's always bothered me a bit about using wildcards for action mappings is that it's somewhat less self-documenting than I'd like. Although I like being more concise, I'd really rather have an alternative form that is still concise but still specifies what possibl

Re: Bypassing action mappings

2008-02-14 Thread wkbutler
--- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Bypassing-action-mappings-tp15490514p15494933.html Sent from the Struts - Use

Re: Bypassing action mappings

2008-02-14 Thread Dave Newton
--- wkbutler <[EMAIL PROTECTED]> wrote: > I'm trying to enable the OGNL debug console (using request param > 'debug=console'), and am receiving the error > >There is no Action mapped for namespace /struts and action name > webconsole > > since struts is trying to map the URL. The webconsol

Bypassing action mappings

2008-02-14 Thread wkbutler
Do I need to declare a limited interceptor stack? Thanks for ideas - Kent -- View this message in context: http://www.nabble.com/Bypassing-action-mappings-tp15490514p15490514.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: Case insensitive action mappings

2007-10-21 Thread Paul Benedict
> > > On 10/19/07, Cool Coder wrote: > > > > Hi, > > There is a requirement in my project to make all action mappings case > > insensitive i.e. login.do is same as Login.do. Somebody suggested me to > > use custom moduleconfig, something like > &g

Re: Case insensitive action mappings

2007-10-19 Thread Cool Coder
D]> wrote: On 10/19/07, Cool Coder wrote: > > Hi, > There is a requirement in my project to make all action mappings case > insensitive i.e. login.do is same as Login.do. Somebody suggested me to > use custom moduleconfig, something like > > class MyModuleConfig e

Re: Case insensitive action mappings

2007-10-19 Thread Paul Benedict
I think this idea is cool. On 10/19/07, Cool Coder <[EMAIL PROTECTED]> wrote: > > Hi, > There is a requirement in my project to make all action mappings case > insensitive i.e. login.do is same as Login.do. Somebody suggested me to > use custom moduleconfig, somet

Case insensitive action mappings

2007-10-19 Thread Cool Coder
Hi, There is a requirement in my project to make all action mappings case insensitive i.e. login.do is same as Login.do. Somebody suggested me to use custom moduleconfig, something like class MyModuleConfig extends ModuleConfigImpl{ public MyModuleConfig(String prefix) { super

[answer]Re: Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
ns and action mappings with "!" It appears that this does not work. Is that correct? I have /employee/employee.action working, but I get a 404 when I try /employee/employee.action!list. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC I

Re: Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
Thank you. - Original Message From: Wes Wannemacher <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, October 18, 2007 2:23:43 PM Subject: Re: Annotations and action mappings with "!" what about /employee!list.action -W On 10/18/07, Norris Shelton &

Re: Annotations and action mappings with "!"

2007-10-18 Thread Wes Wannemacher
what about /employee!list.action -W On 10/18/07, Norris Shelton <[EMAIL PROTECTED]> wrote: > It appears that this does not work. Is that correct? I have > /employee/employee.action working, but I get a 404 when I try > /employee/employee.action!list. > > > > Norris Shelton > Software Engineer

Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
It appears that this does not work. Is that correct? I have /employee/employee.action working, but I get a 404 when I try /employee/employee.action!list. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshe

Re: [S2] action mappings help

2007-09-19 Thread Eugen Stoianovici
Thanks, I added REQUEST REDIRECT in my web.xml file for filter-mapping. Which made perfect sense right after i read it. Cory D. Wiles wrote: If you are trying to truly redirect then the below line is your problem. It is trying to forward not redirect. "" Use: <% String redirectAction = "/my

Re: [S2] action mappings help

2007-09-19 Thread Cory D. Wiles
If you are trying to truly redirect then the below line is your problem. It is trying to forward not redirect. "" Use: <% String redirectAction = "/myapp/subfolder/welcome.action"; response.sendRedirect(redirectAction); %> On 9/19/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > I'm trying

[S2] action mappings help

2007-09-19 Thread Eugen Stoianovici
I'm trying to create an index with an action mapped to it for a subfolder in my webapp. The ideea was to create a index.jsp file that has: so it redirects me to a mapped action. The problem is that even though the url is correct, i get a "The requested resource (/myapp/subfolder/welcome.action

Re: action mappings help

2007-08-16 Thread Eugen Stoianovici
Laurie Harper wrote: Eugen Stoianovici wrote: I'm using struts 2.0.9. Where do i read about action mappings and how to configure them? In the Struts2 documentation of course ;-) These pointers may help: http://struts.apache.org/2.x/docs/action-configuration.html http://struts.apache.or

Re: action mappings help

2007-08-16 Thread Laurie Harper
Eugen Stoianovici wrote: I'm using struts 2.0.9. Where do i read about action mappings and how to configure them? In the Struts2 documentation of course ;-) These pointers may help: http://struts.apache.org/2.x/docs/action-configuration.html http://struts.apache.org/2.x/docs/result-types

action mappings help

2007-08-16 Thread Eugen Stoianovici
I'm using struts 2.0.9. Where do i read about action mappings and how to configure them? Is there any detailed documentation? Right now i'm doing something like this...but i don't really know why i need the result name="input" tag and couldn't fi

RE: Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread AntonyJB
web servers or app servers configuration > to > send a redirect back for requests to these URLs? > > -Original Message- > From: AntonyJB [mailto:[EMAIL PROTECTED] > Sent: 02 July 2007 13:57 > To: user@struts.apache.org > Subject: Over 100 site URLs to redirect

RE: Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread Al Sutton
irect: interceptor or action mappings? Hi, I searched for similar situations but haven't come across anything - an easy one I'm sure though. Issue: Our site contains a large amount of marketing URLs which redirect to a small number of actual actions. E.g.: www.mysite.com/offer1 www.mysite

Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread AntonyJB
ot 100% on Struts 2 yet so your assistance is appreciated. I'm going live very soon with this! Thanks, Antony -- View this message in context: http://www.nabble.com/Over-100-site-URLs-to-redirect%3A-interceptor-or-action-mappings--tf4012051.html#a11393485 Sent from the Struts - Use

action mappings

2007-06-20 Thread Emil.I
Hello, I got an exception that my action mappings cannot be located... eg. namespace /program action name viewInvoices. - [UNKNOWN LOCATION] ... etc. so i gave my action an incorrect name eg. (viewInvoice) and guess what my action was suddenly located, even tough I triple checked that the

Re: Softer action mappings

2007-06-06 Thread stanlick
quest} >> >> I'd rather not stash this in a session variable if it's available >> someplace! >> >> -- >> Scott >> [EMAIL PROTECTED] >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd

Re: Softer action mappings

2007-06-05 Thread Musachy Barroso
do you mean the request url? musachy On 6/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there a way to get the current request substituted in an action mapping? ${currentRequest} I'd rather not stash this in a session variable if it's available someplace! -- Sco

Softer action mappings

2007-06-05 Thread stanlick
Is there a way to get the current request substituted in an action mapping? ${currentRequest} I'd rather not stash this in a session variable if it's available someplace! -- Scott [EMAIL PROTECTED]

Re: Why do action mappings default to session scope forformbeans?

2005-10-26 Thread Preston CRAWFORD
Thanks. That helps. One thing puzzles me, though, as to how others handle this specifically with regards to Struts. Does this mean that those that use the session scope simply manage the reset action very carefully? And how does the reset action not get called in situations where you want to retain

Re: Why do action mappings default to session scope for formbeans?

2005-10-26 Thread Michael Jouravlev
Please, read this short intro: http://struts.sourceforge.net/strutsdialogs/#traditionalflow It advertises Struts Dialogs library (doh), but also explains where the power of session scope and two-way request processing is. Also read about JSF and Wicket. Wicket developers use two-phase request proc

Why do action mappings default to session scope for formbeans?

2005-10-26 Thread Preston CRAWFORD
I don't know why (I've been doing struts development for years, but I guess we've always been very explicit in our struts-config files), but only recently did I discover that this was the default behavior for form beans. And I'm trying to figure out, mostly on a higher level, on a theoretical level

Re: Action class defined in action-mappings not being executed - without 2mb webapp source

2005-05-29 Thread Martin Gainty
independently What does the logs say? Martin- - Original Message - From: "Robbie Anonymous" <[EMAIL PROTECTED]> To: Sent: Sunday, May 29, 2005 3:01 AM Subject: Action class defined in action-mappings not being executed - without 2mb webapp source Hi, The Action cla

RE: Action class defined in action-mappings not being executed - without 2mb webapp source

2005-05-29 Thread David G. Friedman
ous [mailto:[EMAIL PROTECTED] Sent: Sunday, May 29, 2005 6:52 AM To: Struts Users Mailing List Subject: RE: Action class defined in action-mappings not being executed - without 2mb webapp source I fixed the dtd to be struts 1.2 as thats the version of my struts.jar (Struts 1.2.4). http://stru

RE: Action class defined in action-mappings not being executed - without 2mb webapp source

2005-05-29 Thread Robbie Anonymous
lt;[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: RE: Action class defined in action-mappings not being executed - without 2mb webapp source Date: Sun, 29 May 2005 03:15:07 -0400 > > Robbie, > > I see you are using Struts v1.1 (your included DTD l

RE: Action class defined in action-mappings not being executed - without 2mb webapp source

2005-05-29 Thread David G. Friedman
Robbie, I see you are using Struts v1.1 (your included DTD lists it as such) so are you using execute() or perform()? What is your Action method's signature? Regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Action class defined in action-mappings not being executed - without 2mb webapp source

2005-05-29 Thread Robbie Anonymous
Hi, The Action class defined in my action-mappings not being executed. I know its not being executed as I made the execute window pop up a swing window on the server and it did not. When I click submit on contactUs.jsp, instead of an object com.devfirm.actions.AddContactUs being instantaniated

Re: Infinite loop with action mappings

2005-05-06 Thread Michael Jouravlev
false > > 3 > > > > jsp > /views/* > > > > controller > /* > > > > -Original Message- > > From: Allistair Crossley > > Sent: 06 May 2005 15:1

RE: Infinite loop with action mappings

2005-05-06 Thread Allistair Crossley
May 2005 15:11 > To: user@struts.apache.org > Subject: Infinite loop with action mappings > > > Hi, > > I have a catch-all servlet mapping to push all requests to my > Struts controller in web.xml; > > > controller > /* > > > I have 2 action m

Infinite loop with action mappings

2005-05-06 Thread Allistair Crossley
Hi, I have a catch-all servlet mapping to push all requests to my Struts controller in web.xml; controller /* I have 2 action mappings; When I request http://www.domain.com/view Struts finds the action mapping and delegates a forward to /views/layout.jsp. However, /views/layout.jsp

Re: Actions and Action Mappings instantiated once?

2005-04-18 Thread Joe Germuska
At 6:48 AM -0400 4/18/05, Néstor Boscán wrote: Hi When I create a struts-config.xml that has many nodes that call the same action class, is the action class instantietad once, or is instantiated for every node?. What happens if I have a custom action mapping class, is instantiated once or is instan

RE: Actions and Action Mappings instantiated once?

2005-04-18 Thread Freddy Villalba A.
..." Not sure if this is what you mean, though. Cheers, Freddy. -Mensaje original- De: Néstor Boscán [mailto:[EMAIL PROTECTED] Enviado el: lunes, 18 de abril de 2005 12:49 Para: 'Struts Users Mailing List' Asunto: Actions and Action Mappings instantiated once? Hi When I

Actions and Action Mappings instantiated once?

2005-04-18 Thread Néstor Boscán
Hi When I create a struts-config.xml that has many nodes that call the same action class, is the action class instantietad once, or is instantiated for every node?. What happens if I have a custom action mapping class, is instantiated once or is instantiated for every node?. Regards, Néstor Bosc

Re: Add action mappings on the fly

2005-02-22 Thread Diego Manilla Suárez
Thanks everyone for your replies. I didn't know the wildcard matching feature in action mappings. With this feature and map-backed ActionForms now I can do more or less what I wanted to do. Regards, Diego. Joe Germuska wrote: At 12:39 PM +0100 2/21/05, Diego Manilla Suárez wrote: Hi! I

Re: Add action mappings on the fly

2005-02-21 Thread Don Brown
Or use an action mapping that matches "/*". I use them with MappingDispatchAction to match "/*/*" where the first is the action class and the second is the function to call. Don On Mon, 21 Feb 2005 22:40:17 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > Diego, > > Here is an idea: You c

RE: Add action mappings on the fly

2005-02-21 Thread David G. Friedman
Diego, Here is an idea: You could always set your on-the-fly actions under a module. Then you could use the unknown="true" attribute to route all unmatched /module/*.do mappings to your new Action, which handles the lookup and dynamic dispatching to the appropriate pages/actions, probably via a m

Re: Add action mappings on the fly

2005-02-21 Thread Joe Germuska
At 12:39 PM +0100 2/21/05, Diego Manilla Suárez wrote: Hi! I'm trying to add an ActionMapping definition dinamically (using ModuleConfig.addActionConfig method), but I get an IllegalStateException (configuration is frozen). Is there a way to do what I want? Well, you haven't really explained wh

Re: Add action mappings on the fly

2005-02-21 Thread Frank W. Zammetti
It can be done, but I suspect everyone on the list will tell you not to do it, and for very good reasons. However, I'm one of those "here's your rope sir, try not to hang yourself with it" kind of guys, so here's how... The ModuleConfigImpl has a member "configured". This is what determines i

Add action mappings on the fly

2005-02-21 Thread Diego Manilla Suárez
Hi! I'm trying to add an ActionMapping definition dinamically (using ModuleConfig.addActionConfig method), but I get an IllegalStateException (configuration is frozen). Is there a way to do what I want? Thanks in advance. - To u