RE: Return key pressed and default submit form

2005-03-20 Thread Mili Aggarwal, Noida
Hello, Use tabindex int eh button tag:ex: Please verify the syntax again..long time sinmce I used it Warm Regards, Mili Aggarwal -DISCLAIMER-

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-20 Thread Andrew Hill
Yes. I always validate in Actions and not in the form itself (though I often delegate to a seperate helper class from the action (and configure the helper in a subclass of ActionMapping and have an abstract action superclass manage its lifecycle)). Validating in the form I find to be troublesom

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-20 Thread Joe Germuska
David, no worry about insulting anyone -- you raise good points. Jack wrote: Ted will tell you that only code matters. But, I think some things other than just code matter to some of the people involved. While Ted can speak for himself, I don't think that he'd tell you that. He himself is an avi

SecurityFilter/Struts issue...

2005-03-20 Thread Joe Hertz
I've got an application I'm trying to deploy that works perfectly on my Windows development system. I deploy it on a Suze box, and the following behavior occurs. User Logs in fine. My Request Processor has an overridden processActionPerform() which checks and sees if he has signed the Terms of Se

SecurityFilter/Struts issue...

2005-03-20 Thread Joe Hertz
I've got an application I'm trying to deploy that works perfectly on my Windows development system. I deploy it on a Suze box, and the following behavior occurs. User Logs in fine. My Request Processor has an overridden processActionPerform() which checks and sees if he has signed the Terms of Se

Generating dynamic DynaValidatorActionForm elements and form pages?

2005-03-20 Thread Dave Newton
Hi, I have coded and programmed myself into a corner. Gotta hate that. I don't seem to be able to get to the archives at the moment, either. In a nutshell the problem is this: A certain form has a wad of known elements. Based on J. Random Criteria I need to be able to dynamically add elements to t

Re: How to call a Struts 'forward' from a CustomRequestProcessor?

2005-03-20 Thread David Kennedy
Mike Deegan wrote: [snip] import org.apache.struts.config.ForwardConfig; { ForwardConfig fc = mapping.getModuleConfig().findForwardConfig("unauthorized"); ^^^ request.getRequestDispatcher(fc.getPath()).forward(request,response); } Thanks, my problem with this is that processPreprocess() d

Re: How to call a Struts 'forward' from a CustomRequestProcessor?

2005-03-20 Thread Mike Deegan
Googled and found this snippet that my help! http://technology.amis.nl/blog/index.php?p=400 Comment by Leon van Tegelen - 14/2/2005 @ 11:17 pm The actual way to do it would be to forward to a global forward named "unauthorized" in the struts-config, like so import org.apache.struts.config.Forward

How to call a Struts 'forward' from a CustomRequestProcessor?

2005-03-20 Thread David Kennedy
Easy one for a Sunday morning: I'm got a simple CustomRequestProcessor which checks for the presence of a user login bean, and if not found, it should bounce the request to my logon page. Problem: how can I say "Go to the Struts Forward /logon" from within the CustomRequestProcessor? Bonus poin

Re: Free Struts ebook

2005-03-20 Thread Janarthan Sathiamurthy
Hi Srikanth, Thank you very much ! Cheers ! Janarthan S --- Srikanth Shenoy <[EMAIL PROTECTED]> wrote: > Hi All, > > Back in 2003, I wrote the book "Struts Survival > Guide - Basics to Best > Practices" and subsequently published it. > The book was wildly successful and I sold off all > the cop

Struts and Security

2005-03-20 Thread Ben Taylor
Hi, Does anyone know if there is a way to have the login page for container security submit to an action? At the moment it's embedded within a tile so when I sumbit the form it goes looking for some page hidden behind the web-inf folder. Any help appreciated. Thank you. ---