Re: S2 equivalent of ForwardAction?

2012-07-06 Thread Oscar Alvarez
You can use wildcard too. Something like this: /{*}.jsp This takes advantage of ActionSupport and take the default result (success) to your page. 2012/7/6 Łukasz Lenart > 2012/7/6 Paul Benedict : > > Is there any such shortcut in S2? It would be nice if such a thing > existed like: > >

Re: S2 equivalent of ForwardAction?

2012-07-05 Thread Łukasz Lenart
2012/7/6 Paul Benedict : > Is there any such shortcut in S2? It would be nice if such a thing existed > like: > > /page.jsp > It should work, as a default action class is the ActionSupport class and its execute() method returns SUCCESS. Regards -- Łukasz mobile +48 606 323 122 http://www.l

Re: S2 equivalent of ForwardAction?

2012-07-05 Thread Dave Newton
Such a thing does exist, just don't name a class :) Dave (pardon brevity, typos, and top-quoting; on cell) On Jul 5, 2012 8:28 PM, "Paul Benedict" wrote: > In Struts 1, I could use a ForwardAction (or forward attribute) to go > directly to a JSP page. The controller activates and the page rende

S2 equivalent of ForwardAction?

2012-07-05 Thread Paul Benedict
In Struts 1, I could use a ForwardAction (or forward attribute) to go directly to a JSP page. The controller activates and the page renders. Is there any such shortcut in S2? It would be nice if such a thing existed like: /page.jsp Thanks, Paul ---

Re: s2 equivalent of

2007-08-26 Thread Pavel Sapozhnikov
Hey Alex thank you very much. I'll definately try that. On 8/26/07, j alex <[EMAIL PROTECTED]> wrote: > > I don't think there's an equivalent tag, see if *helps > > 8/24/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > > > Hey does anyone know which tag in struts2 would be equivalent to the t

Re: s2 equivalent of

2007-08-26 Thread j alex
I don't think there's an equivalent tag, see if *helps 8/24/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > Hey does anyone know which tag in struts2 would be equivalent to the tag > in struts1. Thanks. > > -- > Pavel Sapozhnikov > xFact, Inc > [EMAIL PROTECTED] >

s2 equivalent of

2007-08-24 Thread Pavel Sapozhnikov
Hey does anyone know which tag in struts2 would be equivalent to the tag in struts1. Thanks. -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Joe Germuska
On 2/22/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: I don't know much about Spring and shied away from servlet context listeners because I didn't want the external dependencies. I'm not suggesting that my way is the best way, but if you have a requirement to write unit tests for all of yo

RE: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Wesley Wannemacher
ay away from the Servlet API. -Wes > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Joe Germuska > Sent: Thursday, February 22, 2007 11:58 AM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: [S2] Equivalent of Servl

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Joe Germuska
On 2/22/07, Joe Germuska <[EMAIL PROTECTED]> wrote: This page is the place to start on using the Spring plugin with Struts 2: http://struts.apache.org/2.x/docs/spring-plugin.html In short, Spring can instantiate any beans you want, either as singletons or as "prototypes" (that is, a new bean is

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Tom Schneider
I see a couple of options. The first would be to create an interceptor for your singleton factory. In the init of the interceptor you would initialize this factory and then provide some mechanism to inject that factory into your actions. (possibly via a FactoryAware interface) Another opti

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Joe Germuska
On 2/22/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: I looked for something similar a while back and didn't find anything simple. There are servlet context listeners (but that isn't really struts-2-ish). I would strongly disagree that ServletContextListeners are "not really struts-2-ish"

RE: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread bob
I could be wrong, but perhaps you should use the Spring IoC container for this. I can't point you to the correct documentation off hand, but I believe that this is the way to maintain a resource such as what you had previoulsy done with the Servlet's init method and the factory class. Mayb

RE: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Wesley Wannemacher
Varley [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 22, 2007 9:10 AM > To: user@struts.apache.org > Subject: [S2] Equivalent of Servlet init() method? > > Hi > > I'm a struts2 newbie & I've just got the hello world app running. I'm > now trying to co

[S2] Equivalent of Servlet init() method?

2007-02-22 Thread Roger Varley
Hi I'm a struts2 newbie & I've just got the hello world app running. I'm now trying to convert a simple servlet app to struts2. In the original servlet I use a singleton factory class which I initialise/setup in the servlets init() method and use it in the servlet service() method. What is the eq