RE: JAAS struts 2 Tutorial?

2007-09-23 Thread Fowler, Perryn
Better a late replay than none at all :) > Is JAAS the best way to go, or there are better alternates? 'JAAS' encompasses a lot of stuff, so it depends what you are trying to do... Let me assume for the minute that you are talking about login/authentication... In this case, it depends whethe

RE: Struts and arabic encoding

2007-08-12 Thread Fowler, Perryn
You seem to be trying all the right things, my advice is to try to isolate where things are going wrong.. for example 1) Check what encoding your browser thinks the page is in ( usually somewhere under the view menu ) 2) Check whether you are managing to read the request parameter in the corre

RE: Problem deploying an application

2007-08-02 Thread Fowler, Perryn
And this http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c om.ibm.websphere.base.doc/info/aes/ae/crun_classload.html -Original Message- From: John Mammen [mailto:[EMAIL PROTECTED] Sent: Friday, 3 August 2007 3:33 PM To: 'Struts Users Mailing List' Subject: Problem d

RE: Problem deploying an application

2007-08-02 Thread Fowler, Perryn
We are having similar problems ...try reading this http://www.redbooks.ibm.com/redpapers/pdfs/redp4307.pdf. -Original Message- From: John Mammen [mailto:[EMAIL PROTECTED] Sent: Friday, 3 August 2007 3:33 PM To: 'Struts Users Mailing List' Subject: Problem deploying an application Hi,

[S2] accessing a JSP variable in a tag

2007-08-01 Thread Fowler, Perryn
I am probably being dense, but I have a normal old jsp variable in one of my pages Eg <% String foo = "bar" %> I want to write out the value of foo using the Struts property tag ( so that I can make use of its handy escaping functionality) I cant figure out how to do it though :( Cheers Perry

RE: unit testing interceptors

2007-07-05 Thread Fowler, Perryn
This uses easyMock @Test public void should_log_before_and_after_action_execution() throws Exception { Logger mockLogger = createMock(Logger.class); String actionName = "mockAction"; String actionResult = "Success"; ActionInvocation mockInvocation = createMock(A

[s2] OGNL and javascript

2007-05-31 Thread Fowler, Perryn
Hi People, I usually like to access form elements using their names ( rather than ids) as I find it more readable. So, if I had a field named 'street' on a form named 'addressForm' I can access it using something like document.addressForm.street Now, I am using struts 2 and its OGNL support

RE: [S2] How to get an object from Spring inside an interceptor

2007-05-23 Thread Fowler, Perryn
If you use the Spring plugin, you should be able to have your actions and your interceptors created by Spring. Then you can simply configure Spring to create your interceptor already wired up with a SessionFactory. -Original Message- From: Célio Cidral Junior [mailto:[EMAIL PROTECTED]

Struts 2 validation and Redirect After Post

2007-05-22 Thread Fowler, Perryn
Hi, I want to use the redirect after post pattern in order to have a web app that is well behaved when the user hits back, refresh etc etc I also want to use the Struts 2 validation framework. At first glance though, the two seem incompatible: If I have a form that I want to submit

Struts 2 validation and Redirect After Post

2007-05-22 Thread Fowler, Perryn
Hi, I want to use the redirect after post pattern in order to have a web app that is well behaved when the user hits back, refresh etc etc I also want to use the Struts 2 validation framework. At first glance though, the two seem incompatible: If I have a form that I want to submit with a POS