Re: How to pass request parameters through a waiting page?

2006-05-23 Thread Adam Samere
Hi Starki! You should easily be able to grab the request parameters on your waiting page, then use them in the generated target URL. I'm assuming your waiting page then redirects the user to the target page using meta tags or javascript, right? I'll be happy to provide an example if you'd like.

Re: Ajax and MVC pattern

2006-05-24 Thread Adam Samere
I've recently used AJAX in some existing Struts applications making use of AjaxTags http://ajaxtags.sourceforge.net/. The Struts controller is still very much applicable, in that the Ajax requests are made to struts action urls, the action subclasses then delegate processing to business objects

Re: How to pass request parameters through a waiting page?

2006-05-24 Thread Adam Samere
arki78 wrote: Hi Adam, an example would be great! This is really a great problem to us! Especially then the post method is called! Thanks a lot in advance Starky ------ Initial Header --- >From : "Adam Samere" [EMAIL PROTECTED] To : "user" us

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
I agree that scriptlets are undesirable, but IMHO when compared with the consequences of having to track down and modify the key in every page that referenced it directly it's the lesser of two evils. So the goal of the new attribute on the tags would be to display/test for only messages store

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
Niall Pemberton wrote: On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote: At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >In my actions I have messages stored in the session either under >ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). > >In my jsp I have a section to display the se

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
Niall Pemberton wrote: On 6/7/06, Adam Samere <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote: >> At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: >> >In my actions I have messages stor

Re: Organizing action classes

2006-06-07 Thread Adam Samere
Depending on what version of Struts you are using, you could check out org.apache.struts.actions.DispatchAction and it's subclasses. For the sake of maintainability and readability though I generally prefer to keep a 1 to 1 between action subclasses and path mappings, factoring common functiona

Re: How to set size of submit button

2006-06-18 Thread Adam Samere
Frank and Eddie are right about not being able to read the css property unless you have set it ahead of time. The javascript Element Object (from which buttons etc are derived) has properties called clientWidth and clientHeight. This will give you the width and height of the element in pixels a

Re: Checkling Security

2006-06-18 Thread Adam Samere
You can use the standard Servlet authorization/authentication mechanism, or use a Servlet filter, or use a custom ActionMappings class or common base Action subclass if you're bent on handling it within Struts. -Adam chamal desilva wrote: Hi, How should we test wether a user has permission f