Re: Session ID

2008-08-15 Thread Hrvoje Ban
On Fri, Aug 15, 2008 at 2:39 PM, "Stephan Schröder" <[EMAIL PROTECTED]> wrote: > Try this one: > ServletActionContext.getRequest().getSession().getId(); > > /Stephan That's what I was looking for. Thanks! - To unsubscribe, e-mail

Re: Session ID

2008-08-15 Thread Hrvoje Ban
On Fri, Aug 15, 2008 at 9:47 AM, Chris Pratt <[EMAIL PROTECTED]> wrote: > I usually implement ServletRequestAware so that I can call > request.getSession().getId(). I would love to see them add that value to > the SessionMap but it's not there at the moment. > (*Chris*) That would work for a act

Session ID

2008-08-15 Thread Hrvoje Ban
Hi! How can I get session ID from inside a Struts2 interceptor? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

action-param

2008-08-08 Thread Hrvoje Ban
something What is the use of param here? I thought it would call setSomething("something") on my action, but it won't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: @FieldExpressionValidator calling action's method

2008-08-03 Thread Hrvoje Ban
On Sun, Aug 3, 2008 at 5:04 AM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > Sorry to hear it didn't work. > > I am having my own share of problems with that ExpressionValidator, and I > found one useful suggestion in the following doc: > http://www.opensymphony.com/xwork/wikidocs/ExpressionValid

Re: @FieldExpressionValidator calling action's method

2008-08-02 Thread Hrvoje Ban
On Sat, Aug 2, 2008 at 9:17 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > Since it's "expression" is an OGNL expression, have you tried instead: > > @FieldExpressionValidator(expression = "usernameAvailable", message = "...") > > which would attempt to find, in turn, getUsernameAvailable() and

@FieldExpressionValidator calling action's method

2008-08-02 Thread Hrvoje Ban
I placed validation code for one of my fields inside action's method and I'm trying to call it using OGNL expression: @Validation public class RegistrationAction extends ActionSupport { private String username; public boolean isUsernameAvailable() {