Re: S2 support for index action?

2012-08-20 Thread Lukasz Lenart
2012/8/20 Paul Benedict : > Are you familiar with index actions in HTTP servers? It's the page > that loads when a directory is specified. It's the default when no > specific resource is requested. That's different than the "default > action" in S2 which runs if no suitable action can be found. > >

Re: S2 support for index action?

2012-08-20 Thread Paul Benedict
I am asking to find out if such ability exists today. If not, I will be submitting a patch :-) On Mon, Aug 20, 2012 at 7:26 PM, Martin Gainty wrote: > > > > >> Date: Mon, 20 Aug 2012 14:45:37 -0500 >> Subject: Re: S2 support for index action? >> From: pbened...@apache.org >> To: user@struts.apach

RE: S2 support for index action?

2012-08-20 Thread Martin Gainty
> Date: Mon, 20 Aug 2012 14:45:37 -0500 > Subject: Re: S2 support for index action? > From: pbened...@apache.org > To: user@struts.apache.org > > Are you familiar with index actions in HTTP servers? It's the page > that loads when a directory is specified. It's the default when no > specific r

Re: accessing properties/attributes (scope)

2012-08-20 Thread Christopher Johnson
Thank you, that makes sense. I've read that page a few dozen times and it did not click until you gave the example. Best, -Chris On Mon, Aug 20, 2012 at 3:26 PM, Lukasz Lenart wrote: > 2012/8/20 Christopher Johnson : > > From what I've read there are the following scopes in struts. > > > >-

Re: S2 support for index action?

2012-08-20 Thread Paul Benedict
Are you familiar with index actions in HTTP servers? It's the page that loads when a directory is specified. It's the default when no specific resource is requested. That's different than the "default action" in S2 which runs if no suitable action can be found. Pretend there is a default package c

Re: S2 support for index action?

2012-08-20 Thread Lukasz Lenart
2012/8/20 Paul Benedict : > Lukasz, > > The docs say runs when any URI can't be found in > the package. I don't want much liberty. Just when the package matches > the URI exactly, have a default action. In regards to configuration, > this might be as easy as adding a new attribute to that element.

Re: java.io.NotSerializableException: com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector

2012-08-20 Thread Lukasz Lenart
2012/8/6 manjesh : > Hi I have Struts2 application Running on Google App Engine. > When I add "tokenSession" interceptor to any of the actions (say > registration.action) , I do get the following exception. If I remove > "tokenSession" Interceptor.. things works fine.., what could be the issue? >

Re: accessing properties/attributes (scope)

2012-08-20 Thread Lukasz Lenart
2012/8/20 Christopher Johnson : > From what I've read there are the following scopes in struts. > >- application >- session >- request >- page >- action > > I can see application, session, request in and see how to > access the different parts via #application, #session, #reque

Re: accessing properties/attributes (scope)

2012-08-20 Thread Christopher Johnson
Lukasz, I changed to include 'scope="request"' and I now see my variables in the request scope and can access them via #request.url. Thank you. --- >From what I've read there are the following scopes in struts. - application - session - request - page - action I can see applicat

Re: S2 support for index action?

2012-08-20 Thread Paul Benedict
Lukasz, The docs say runs when any URI can't be found in the package. I don't want much liberty. Just when the package matches the URI exactly, have a default action. In regards to configuration, this might be as easy as adding a new attribute to that element. What do you think? Paul On Mon, Au

Re: Problem with struts 2.3.4.1 & struts2-rest-showcase on Tomcat

2012-08-20 Thread Frans Thamura
i am glad if you can compare with our showcase also . s2restplugins.java.net On Aug 20, 2012 7:05 PM, "Lukasz Lenart" wrote: > Could you try with the latest snapshot ? The issue should be solved > already. > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > -

RE: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-08-20 Thread Martin Gainty
How do you want Spring to find the Action? autowire by name? autowire by type? IF you want Spring to create the Action then... However, sometimes you might want the bean to be completely managed by Spring. (This is useful, for example, if you wish to apply more complex AOP or Spring-enabled t

Re: accessing properties/attributes

2012-08-20 Thread Lukasz Lenart
2012/8/20 Christopher Johnson : > #url turns out to be null because it can't. does not show it > anywhere. Did you try #request.url ? As this should be a request scoped variable. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: accessing properties/attributes

2012-08-20 Thread Christopher Johnson
On Mon, Aug 20, 2012 at 6:42 AM, Lukasz Lenart wrote: > 2012/8/19 Christopher Johnson : > > fails because the TLD does not accept > > Did you try: > > This gives an error message because ${} expressions are not allowed in the test attribute. > > or > > > Since currentURL is created via the #c

Re: Problem with struts 2.3.4.1 & struts2-rest-showcase on Tomcat

2012-08-20 Thread Lukasz Lenart
Could you try with the latest snapshot ? The issue should be solved already. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-m

Re: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-08-20 Thread Lukasz Lenart
2012/8/9 Mounir Benzid : > sorry for the late response. web.xml ---> http://pastebin.com/XPiQ3ZJB > > I guess the problem might be that the transaction boundary starts and ends > within the controller class I wrote to manage entities. The action itself > doesn't participate in the transaction. If m

Re: S2 support for index action?

2012-08-20 Thread Lukasz Lenart
2012/8/5 Paul Benedict : > I see that allows an action to execute if the > user's path cannot be found. This is almost what I want but not quite. > I would like to have an IMPLICIT "index" action for my packages. My > configuration does not use any suffix -- everything goes to Struts > (i.e., /*)

Re: accessing properties/attributes

2012-08-20 Thread Lukasz Lenart
2012/8/19 Christopher Johnson : > fails because the TLD does not accept Did you try: or Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additio