Re: Need help writing an interceptor to force a user to change their password

2009-06-30 Thread Russell Neufeld
is how we accomplished something similar to your pblem. Hope this helps. -Nate ____ From: Russell Neufeld [mailto:russ.neuf...@hds.com] Sent: Mon 6/29/2009 5:19 PM To: Struts Users Mailing List Subject: Need help writing an interceptor to force a user to change their pass

Need help writing an interceptor to force a user to change their password

2009-06-29 Thread Russell Neufeld
Hi all, I'm trying to implement functionality which will force a user to a change-password page if a certain bit is set on their user account. That is, no matter what action they are attempting to take, I'd like to intercept the request and show them a change-password page. I've written a

Need help writing an interceptor to force a user to change their password

2009-06-29 Thread Russell Neufeld
Hi all, I'm trying to implement functionality which will force a user to a change-password page if a certain bit is set on their user account. That is, no matter what action they are attempting to take, I'd like to intercept the request and show them a change-password page. I've writte

Re: Sending back HTML with Struts 2 while shutting down the server

2009-04-30 Thread Russell Neufeld
Thanks Dave. Worked like a charm. Dave Newton wrote: Russell Neufeld wrote: One of the struts actions I'm implementing shuts down the server. Hmm. Is there a special value I can return from a Struts 2 execute() > method, say null, which tells the framework not

Sending back HTML with Struts 2 while shutting down the server

2009-04-29 Thread Russell Neufeld
Hi all, One of the struts actions I'm implementing shuts down the server. I'd like to be able to send back an HTML response before the server shuts down, but the action's execute() method doesn't dispatch to the jsp for the html response until after the return of the method. That means i

The future of the dojo plugin

2009-04-24 Thread Russell Neufeld
Hi all, What's the future of the dojo plugin for Struts2? We're starting to port an existing web app from Struts1 to Struts2, and one of the features which was very appealing in Struts2 was the dojo plugin. Our web app doesn't do anything too fancy, but we're planning on making heavy use

Re: "disabled" attribute on s:form not working

2009-04-24 Thread Russell Neufeld
an inoperable submit button. Any ideas what might be going on here? Thanks, Russ Dave Newton wrote: Russell Neufeld wrote: I set disabled="true" in an s:form tag, expecting the resulting form to be disabled (greyed out, unable to submit by clicking, etc...) however th

"disabled" attribute on s:form not working

2009-04-24 Thread Russell Neufeld
Hi all, I set disabled="true" in an s:form tag, expecting the resulting form to be disabled (greyed out, unable to submit by clicking, etc...) however that appears not be working. I checked the HTML that Struts 2 produced and the "disabled" attribute doesn't show up. I'm using Struts 2.1

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Ahh! It's an array! So instead of I need to do this: Thank you! Russ Dave Newton wrote: Russell Neufeld wrote: I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com On Fri, Apr 17, 2009 at 8:01 PM, Terry Gardner wrote: try On Apr 17, 2009, at 1:58 PM, Russell Neufeld wrote: Hi all, I'm still coming up the learning curve on Struts2, and I've com

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Thanks for the suggestion. That did not work. Evaluates to false. Terry Gardner wrote: try On Apr 17, 2009, at 1:58 PM, Russell Neufeld wrote: Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you

Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this. I have a request parameter "status" set to "invalid" which I'd like to access from within a JSP. If I use the following li

Re: Struts2 equivalent of

2009-04-15 Thread Russell Neufeld
You're right - the method may be a quicker change. I'll give that a shot. Thanks for the quick answer. Russ Wes Wannemacher wrote: On Wednesday 15 April 2009 16:00:34 Russell Neufeld wrote: Hi all, We're porting an app from Struts 1 to Struts 2, and I'm hav

Struts2 equivalent of

2009-04-15 Thread Russell Neufeld
Hi all, We're porting an app from Struts 1 to Struts 2, and I'm having trouble figuring out how to conditionally include a portion of a JSP depending on the role of the user principal. In Struts 1 we did this: ... some html ... What's the preferred way of doing this in Struts2?