AjaxTags v1.0 beta 1 released

2005-05-12 Thread Frank W. Zammetti
Finally got it all set up on http://struts.sf.net. The first "official" release is up! AjaxTags is a project to add AJAX functionality to the existing Struts HTML taglib. It allows a developer to jump on the AJAX bandwagon without actually writing any code. It's a completely declarative app

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Michael Jouravlev
I updated the online poll with information from the mailing list. I tried my best to recognize your choices when they were not clear ;) Anyway, after 53 emails and about 15 direct online votes the grand total looks like this: http://jmikus.freepolls.com/cgi-bin/pollresults/001 #1 -- 5 #2 -- 10 #3

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Frank W. Zammetti
As a general rule you always want to close any stream when done, unless you know by design that you need it to remain open, so yes, you probably want to close it. That being said, I've seen *PLENTY* of code that does things like this that don't close the stream, and as far as I could tell it wa

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Frank W. Zammetti
Return null. That's it (seriously!) Null effectively means "do not forward to anything, the response is completely formed". Frank David Johnson wrote: Okay, I've got it opening the second browser (finally got back to it) using the target="_new" in the form declaration, but here's the real prob

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Michael Jouravlev
On 5/12/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > Maybe I'm repeating myself, but I give myself a last try :-) > I'm a beliefer of design by responsibility. When I design an > application I identify responsibilities to form and define components, > modules and layers. Therefore I like each c

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
Wow, excellent. Thanks! is tehre anything IU need to do to close my PrintWriter in the Action class? right now I have response.setContentType("application/pdf"); response.setHeader("Content-disposition", "inline" ); PrintWriter out = response.getWriter(); socket.write(out); // I get my PDF throu

RE: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Benedict, Paul C
Return null. Returning null means you have handled the response and Struts will do no more. -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 5:47 PM To: Frank W. Zammetti; Struts Users Mailing List Subject: Re: Opening a NEW browser for a 2nd

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
Okay, I've got it opening the second browser (finally got back to it) using the target="_new" in the form declaration, but here's the real problem I'm in the action class, and I can can work on the response using response.setContentType("application/pdf"); response.setHeader("Content-disposition

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Leon Rosenberg
Maybe I'm repeating myself, but I give myself a last try :-) > -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 12. Mai 2005 21:43 > An: Struts Users Mailing List > Betreff: Re: [POLL] What do you use action forms for? > > On 5/12/05

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Leon Rosenberg
Maybe I'm repeating myself, but I give myself a last try :-) > -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 12. Mai 2005 21:43 > An: Struts Users Mailing List > Betreff: Re: [POLL] What do you use action forms for? > > On 5/12/05

Re: how to validate when the form-property is of type="java.lang.String[]"

2005-05-12 Thread m Komma
My problem is not accessing the values but is with validator. I have the validation working correctly if within the struts-config.xml file the form-property type="java.lang.String" My issue is that I can't validate when the form-property is of type="java.lang.String[]" (I can't validate the form-p

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Gareth Meyrick
hi, Dave Newton wrote: > > When we see "Perversion of Control" fronted by "Hot Dependency > Injection" THEN I'll be scared. actually i'm already scared.. imagine the VU reincarnating itself to play something like "I'm waiting for my IDE".. 'guess i'm _really_ showing my age;) isn't today thu

Re: how to validate when the form-property is of type="java.lang.String[]"

2005-05-12 Thread David Johnson
What exactly is the problem you're having? Normally I'd say you'd loop through the array of values passed in thru the form bean On 5/12/05, m Komma <[EMAIL PROTECTED]> wrote: > > Hi, > I have a problem using validatorplugin for multiselection box. > my filed is of type type="java.lang.String[]"

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Frank W. Zammetti
With the way my kids manipulate my wife, I'd say it's a great example of IoC. Groan. Frank Eric C. Hein wrote: I guess I'm relieved that Ted doesn't refer to his kids as "POJO's". :) - Eric Tour Manager - "No Bean Found" - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: "Str

how to validate when the form-property is of type="java.lang.String[]"

2005-05-12 Thread m Komma
Hi, I have a problem using validatorplugin for multiselection box. my filed is of type I can't validate when the form-property is of type="java.lang.String[]" I have the validation working correctly when form-property is of type="java.lang.String". I can't however validate when the form-prope

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Eric C. Hein
I guess I'm relieved that Ted doesn't refer to his kids as "POJO's". :) - Eric Tour Manager - "No Bean Found" - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, May 12, 2005 1:23 PM Subject: Re: [OT] Too late to become a rock star?

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Vic Cekvenich (netsql)
tonight on mtv: http://www.afterdawn.com/news/archive/6361.cfm 3 PPC at 3.2 ea. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Dave Newton
Ted Husted wrote: Tomorrow night, live at the Steel Music Hall: "Midtown", "Plain White Ts", and my personal favorite, the Struts band of the week ... "Action Action". (No kidding.) *lol* When we see "Perversion of Control" fronted by "Hot Dependency Injection" THEN I'll be scared. Dave -

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Ted Husted
You wouldn't be so much older than a lot of people in the audience these days. I sometimes take the kids to all-ages shows, and I'm always happy to find that I'm still neither the oldest nor the spookiest guy there :) Tomorrow night, live at the Steel Music Hall: "Midtown", "Plain White Ts", and m

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Frank W. Zammetti
70mb might not be much on a single server, but move to a clustered environment and you might be in for some rude surprises... Remember replication across the cluster... while 10k per session might not be much, 5000-7000 sessions constantly replicating 10k across the cluster could become an issue i

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Dave Newton
Michael Jouravlev wrote: P.S. If a problem can be solved by adding more RAM, it is not a real problem ;) This is what Microsoft keeps proving with Windows: 640K, 1M, 4M, 16M, 64M... But people still use it, they just put more memory in their machines. Someone can still advertise OS which fits on on

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Michael Jouravlev
On 5/12/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > Well the question was, why to use ActionForm if a POJO will do it es well? Umm... No reason, unless one wants to use same ActionForm for input, edit, view, etc. > And keeping current object in session isn't a solution to all problems... > >

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Benedict, Paul C
Rick, what do you mean? It sounds like you have an answer. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 3:38 PM To: Struts Users Mailing List Subject: Re: [POLL] What do you use action forms for? Benedict, Paul C wrote the following on 5/1

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Rick Reumann
Benedict, Paul C wrote the following on 5/12/2005 3:25 PM: My biggest problem with session based forms is that, without a special mechanism, it prevents multiple instances of a form from being edited at once within a session. Not really, because I can just call form.reset() (or assign the formBea

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Benedict, Paul C
Leon, My biggest problem with session based forms is that, without a special mechanism, it prevents multiple instances of a form from being edited at once within a session. Am I the only one with this concern? ;-) Paul -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED]

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Leon Rosenberg
Well the question was, why to use ActionForm if a POJO will do it es well? And keeping current object in session isn't a solution to all problems... Just to give you an example, in our current application we have about 5000-7000 active session on each webserver. We have tons of object, so if we

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Leon Rosenberg
Well the question was, why to use ActionForm if a POJO will do it es well? And keeping current object in session isn't a solution to all problems... Just to give you an example, in our current application we have about 5000-7000 active session on each webserver. We have tons of object, so if we

Verified by Visa, MasterCard Secure Code and Struts

2005-05-12 Thread Andrew Thorell
Greetings all, Based on the subject line has anyone had any problems implementing these systems together? Anything I should keep an eye out for? thanks, Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: How to get the ActionErrors object from the request

2005-05-12 Thread Mehmet E.
http://javaboutique.internet.com/tutorials/excep_struts/ A good article Handling Messages, Errors and Exceptions in Struts 1.1 > Hi > > Does somebody know how I can get the ActionErrors > object from the request??? > > Regards, > > Néstor Boscán > __

RE: How to get the ActionErrors object from the request

2005-05-12 Thread Freddy Villalba A.
Hello, There is the "nice" way (tags) - which I deduce from a previous posting you already know - and then there are many "dirty" ways. For instance, you can access it directly. However, in that case, you have to find out the key under which Struts stores that object. There is one, that I can assu

Re: Best practice for redirecting on session timeout?[Scanned]

2005-05-12 Thread Frank W. Zammetti
Sorry, I lost track of the thread (stupid webmail interface!)... can you outline your method again? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, May 12, 2005 1:39 pm, David Johnson said: > So, how what would you all say about my me

Re: Best practice for redirecting on session timeout?[Scanned]

2005-05-12 Thread David Johnson
So, how what would you all say about my method? does this seem to be a valid method for controlling this? On 5/12/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Good point Aladin... > > However, I would take this a step further... > > in pre-1.3 Struts, you might not want to implement yo

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Michael Jouravlev
Oops, I don't know why did I mention going back again. I guess, I am too fixated on that. I am sorry. Anyway, just to reiterate, I have a "current object" in the session. "Current" means "currenty being used" whatever that means for you. Object has an ID. I pass this ID to any action which uses th

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Michael Jouravlev
But #5 is better in this regard, is not it? ;) Do you think #5 is worse than #2? On 5/12/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > As you see, you don't need the BookForm to present a Book, since you > need other properties for presentation, as for editing. > So if you are working with scena

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Michael Jouravlev
Whew! Thank you all for responses. I am sorry that I confuse some of you. Now I kind of got confused myself, because there are some usages I did not even thought of :) First, the things that I can state for sure. * I started to use Struts when I had rather vague knowledge about servlets/JSPs, so

RE: [OT] Too late to become a rock star?

2005-05-12 Thread Frank W. Zammetti
On Thu, May 12, 2005 12:35 pm, Pilgrim, Peter said: > How did the Rolling Stone make over the last decade? > One billion smackers, reportedly! Exception to the rule. There's more of those, but that's what they are. For every 10 wastes of airspace on the radio there is 1 good talent. And I'm pro

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Dave Newton
Rick Reumann wrote: Anyone else fed up with trying to keep up with all the stuff coming out every day in this crazy IT world ??? At one company I worked for we kept a list of all the technologies/acronyms we were using on a single web project. After we ran off the end of a page we gave up. And

RE: [OT] Too late to become a rock star?

2005-05-12 Thread Pilgrim, Peter
> -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] ==== > > > Based on the talent of musicians as a whole over the past few years, I > would say it's *never* too late to become a rock star. Even > if one is in > a nursing home, confined to a wheel chair and su

Re: [OT] Too late to become a rock star?

2005-05-12 Thread K.C. Baltz
And remember, old ska bands never die, they just can't pickitup-pickitup-pickitup anymore. (Couldn't resist the chance to use my only ska-related joke). Rick Reumann wrote: Yea, it's not Friday. Just whining (with no cheese).. Anyone else fed up with trying to keep up with all the stuff coming

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Rick Reumann
I might give potato farming a try. Frank W. Zammetti wrote the following on 5/12/2005 12:09 PM: Based on the talent of musicians as a whole over the past few years, I would say it's *never* too late to become a rock star. Even if one is in a nursing home, confined to a wheel chair and suffering fr

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread James Mitchell
It really has nothing to do with caching, that meta refresh tag forces the browser to refresh the page from the server (without JavaScript) so (for example) the user returns from a long lunch and sees the browser sitting at the login screen instead of the last customer search. -- James Mitchel

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Rick Reumann
#2 only. Michael Jouravlev wrote the following on 5/11/2005 6:02 PM: What is your preferred way to use action forms? #1 Prefer not to use action forms at all #2 For input data only (usually collected from HTML form) #3 For output only (to be used in JSP) #4 Same form for input and output #5 One for

Re: StrutsCatalogInputOutputSeparation

2005-05-12 Thread Dave Newton
James Mitchell wrote: I consider myself a reasonably minded person, yet I tend to disagree with such assertions that, in my mind, are unreasonable. Yeah, but I was being sarcastic. "Look, an argument isn't simply a contradiction [...]" "Yes it is." Dave ---

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Simon Chappell
Ska? Showing your age there Rick. Oops, so am I. :-) On 5/12/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Yea, it's not Friday. Just whining (with no cheese).. > > Anyone else fed up with trying to keep up with all the stuff coming out > every day in this crazy IT world ??? > > I can't play an

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Frank W. Zammetti
You raise a good point, but I think there is something to be said for keeping class count down and keeping those UML diagrams less cluttered. It's a balancing act, that would be my contention. I never like saying one approach is "bad" or "improper", because inevitably someone can come up with an

Re: [OT] Too late to become a rock star?

2005-05-12 Thread Frank W. Zammetti
Based on the talent of musicians as a whole over the past few years, I would say it's *never* too late to become a rock star. Even if one is in a nursing home, confined to a wheel chair and suffering from any number of age-related ailments, one could probably break the top 40 these days :) Speaki

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Leon Rosenberg
On Thu, 2005-05-12 at 17:07 +0200, Pedro Salgado wrote: > So you mean, on your actionform you use: > > The html form attributes + (this is what I understand for input) > The collections needed to present combo/list boxes (and other options) (this > is what I understand for output) > > I don't th

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Frank W. Zammetti
Ugh, I always forget the simple target attribute! Absolutely agreed, that's probably the best approach. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, May 12, 2005 11:16 am, David Johnson said: > whoa that's simple. I'm trying that

[OT] Too late to become a rock star?

2005-05-12 Thread Rick Reumann
Yea, it's not Friday. Just whining (with no cheese).. Anyone else fed up with trying to keep up with all the stuff coming out every day in this crazy IT world ??? I can't play an instrument or sing, but maybe it's not too late to become a rock star at 35? I want to join a ska band. -- Rick ---

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Pilgrim, Peter
> -Original Message- > From: Michael Jouravlev [mailto:[EMAIL PROTECTED] > ==== > > > What is your preferred way to use action forms? > #1 Prefer not to use action forms at all > #2 For input data only (usually collected from HTML form) > #3 For output only (to be used in JSP) > #4 S

Re: How to get the ActionErrors object from the request

2005-05-12 Thread Aladin Alaily
Hi Néstor, You can do that with the following code: ActionErrors errors = (ActionErrors) request.getAttribute(Globals.ERROR_KEY); Aladin > Hi > > Does somebody know how I can get the ActionErrors object from the > request??? > > Regards, > > Néstor Boscán > -

RE: How to get the ActionErrors object from the request

2005-05-12 Thread McDonnell, Colm (MLIM)
request.getAttribute(Globals.ERROR_KEY); -Original Message- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 16:28 To: 'Struts Users Mailing List' Subject: How to get the ActionErrors object from the request Hi Does somebody know how I can get the ActionErrors object f

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
Cool. Thank you all. I'll post a wrap up to this thread summarizing what I've done when it's working. Thank you all!!! On 5/12/05, David Johnson <[EMAIL PROTECTED]> wrote: > > Cool. Thank you all. I'll post a wrap up to this thread summarizing what > I've done when it's working. > > Thank you

RE: How to get the ActionErrors object from the request

2005-05-12 Thread Allistair Crossley
the correct way is to use struts tag libraries otherwise you can do something like ActionMessages messages = (ActionMessages) request.getAttribute("org.apache.struts.action.ERROR"); Allistair. > -Original Message- > From: Néstor Boscán [mailto:[EMAIL PROTECTED] > Sent: 12 May

Fwd: RE: [POLL] What do you use action forms for?

2005-05-12 Thread Brian Holzer
**DISCLAIMER** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this e-mai

Re: StrutsCatalogInputOutputSeparation

2005-05-12 Thread James Mitchell
I consider myself a reasonably minded person, yet I tend to disagree with such assertions that, in my mind, are unreasonable. :P -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmit

How to get the ActionErrors object from the request

2005-05-12 Thread Néstor Boscán
Hi Does somebody know how I can get the ActionErrors object from the request??? Regards, Néstor Boscán

RE: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Benedict, Paul C
David, Aladin has a more straight forward approach. If you can know ahead of time when you need to open a new window, take his approach; if you have no prior knowledge, you'll need to send back JavaScript to open a new window. Either way should fit the bill. Thanks, Paul -Original Message---

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Vincent
#4 Same form for input and output Vincent -- Plato is my friend, Aristotle is my friend, but my greatest friend is truth. - Isaac Newton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
whoa that's simple. I'm trying that first Thanks One things though, I'll have to set the "target" conditionally, only when the user clicks "PDF" or "EXCEL" since I dont **always** want it opening a new window... function setTarget(target) { document.forms[0].target=target; } On 5/12/05, A

Re: StrutsCatalogInputOutputSeparation

2005-05-12 Thread Dave Newton
James Mitchell wrote: I disagree. Wait, trinary logic? Dave "Is it Friday already?" Newton Ted Husted wrote: Reasonable minds can disagree. :) No they can't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread Aladin Alaily
Hi >> 1) Maintainability: if you want to change the timeout to 30 minutes (and >> you have 50 jsp pages), then you have to make the change 50 times. > Umm..ya...that's why I explicity said "preferrably via an include or let a > filter do it for you". Missed the filter part :) >> 2) Business Logi

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
A, gotcha. it's an internal app thankfully, and they're fine with javascript. The report itself foesnt exist when the page is sitting there rendered. the action is going to render it.. a Call to SAS specifically, --> http://support.sas.com/rnd/appdev/V2/webAF/server/examples/streaming3-2.ht

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Aladin Alaily
Hi Dave, This is pretty straightforward. In browser "a", you have a button that says: "Export to PDF" The code would look like this: When the user clicks on the button, the action "exportToPdf.do" opens an ServletOutputStream and writes whatever you want. The headers are also set to the

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Pedro Salgado
On 12/05/2005 16:34, "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > I've always felt the ActionForm had become something that wasn't > originally intended... I personally use it as something that applies to a > PAGE and not just a form, so it becomes an I/O object for me in the truest > sense.

Re: StrutsCatalogInputOutputSeparation

2005-05-12 Thread James Mitchell
I disagree. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> T

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread Frank W. Zammetti
Good point Aladin... However, I would take this a step further... in pre-1.3 Struts, you might not want to implement your own RP for various reasons, so I would suggest doing this in a filter instead... Same benefit as modifying the RP, but doesn't touch Struts code and is also more portable... s

Re: DynaValidatorForm not validating ?

2005-05-12 Thread Dave Newton
Michael Klaene wrote: name="loginForm" input="login.page" scope="request"> Woudln't you need a validate="true" attribute? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread James Mitchell
- Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, May 12, 2005 10:34 AM Subject: Re: Best practice for redirecting on session timeout? Although this approach might work, I don't like it so much. The reasons: 1) Maintainability: if you want t

Re: StrutsCatalogInputOutputSeparation

2005-05-12 Thread Dave Newton
Ted Husted wrote: Reasonable minds can disagree. :) No they can't. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Frank W. Zammetti
You said: "Essentially, I have a nicely rendered HTML report in browser "a" and when the user clicks "export to PDF" or "export to excel" I want a NEW browser to pop up into which I will send the response with the headerType set to the appropriate type." Without an applet or ActiveX control or so

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread struts
Hi, This approach would work as well. I just think that if you're going to do this in struts, it's better to do it in the RequestProcessor. Why? Assume that you are using the forward action defined in struts. If my session has timedout and I click on a link that uses the forward action, I will

RE: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Benedict, Paul C
David, You cannot control opening a new client window from a server response. This is all client-side control -- javascript for the user explicitly opens a link in a new window. Because of this limitation, you need to work with the client-side support that you may have control over: JavaScript.

RE: Best practice for redirecting on session timeout?

2005-05-12 Thread struts
Hi, That's scary :). I would never trust javascript for session management. What happens if javascript is turned off? The user is not allowed to use your app? Your requirement can definetly be met on the server-side. Here's a possible scenario. You can create you a timer class (running in a

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread David Johnson
I have a method in my BaseAction called "boolean checkAuth(request)". then in every Action I write I code this at the top // Check if session is active, if not redirect to login page if( !checkAuth( request )){ log.info("*** Session has timed out ***"); errors.add( ActionErrors.GLOBAL_ERROR, new

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
hmm I dont think I understand. so instead of redirecting to an action mapping, just add the HTML myself, like you would if you were writing a servlet (no jsp) application? interesting. you're right, I dont need a nice tiles definition page for my pdf/xls output.. all I really need is to pop up

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Allistair Crossley
I've been starting to read up on Spring and I am sure it handles the same BOs in the view/model/dao tiers. > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: 12 May 2005 15:34 > To: Struts Users Mailing List > Subject: Re: [POLL] What do you use action forms

RE: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Benedict, Paul C
David, You could have your response return HTML with rendered JavaScript; the script would then automatically pop open a new window with the destination link that generates your unstructured content. You could even provide a link in the response if the JavaScript doesn't run automatically. Thanks

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread struts
Although this approach might work, I don't like it so much. The reasons: 1) Maintainability: if you want to change the timeout to 30 minutes (and you have 50 jsp pages), then you have to make the change 50 times. 2) Business Logic: This approach will never prevent you Action from executing. Sin

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Frank W. Zammetti
I've always felt the ActionForm had become something that wasn't originally intended... I personally use it as something that applies to a PAGE and not just a form, so it becomes an I/O object for me in the truest sense. I love the idea of something like a Velocity-type context. Before I came to

Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
Hey all is it possible to forme my struts app to open up a second browser window for the purpose of streaming a different content type (like a pdf file) into it while maintaining the page in the original browser? Essentially, I have a nicely rendered HTML report in browser "a" and when the use

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Benedict, Paul C
Ted, This is my point too. I think the majority of people answered #4 because data within tags is I/O, but it's not the type of output (i.e., arbitrary display output) I think Michael was trying to convey. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Thursday, May

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Ted Husted
On 5/12/05, Pedro Salgado <[EMAIL PROTECTED]> wrote: > > Well, your option 1) matched the #2 > and > 2) matched the #4 > > :) > > Pedro Salgado It might be helpfult to clarify whether by output we mean output that is being used within the tags, or any arbitrary dynamic output. The intended us

RE: Best practice for redirecting on session timeout?

2005-05-12 Thread Narayan, Anand
In our application we handle user inactivity using a javascript timer on the client side. The requirement we had was to issue a warning message if the user has not typed or clicked anything for some period of time. What we do is once the javascript timer expires we post a message which the user ca

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Benedict, Paul C
Michael, is #4 clear?? I think people are misunderstanding it. Developers can use a form for input and output (#4/1), but not put display (pure output) data in there (#4/2). The difference is between an edit and view page. -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED]

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread James Mitchell
That's easy, just drop this in all of your JSPs (preferrably via an include or let a filter do it for you). (assuming your session timeout is 20 minutes) You should be handling invalid/expired session state in your application and by using the above technique, it will work universally, whether

Re: Is struts more performant than JSF

2005-05-12 Thread Frank W. Zammetti
On Thu, May 12, 2005 6:46 am, Ted Husted said: > If the decision between approaches is not obvious, then do the first > interation of your application using both, and compare the results for > yourself. I don't know what kind of environment you work in, but if I suggested writing an application tw

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Pedro Salgado
Well, your option 1) matched the #2 and 2) matched the #4 :) Pedro Salgado > #1 Prefer not to use action forms at all > #2 For input data only (usually collected from HTML form) > #3 For output only (to be used in JSP) > #4 Same form for input and output > #5 One form for input, another for out

Re: My OWN VALIDATOR

2005-05-12 Thread Metal KoRn
OK but I really dont know when to use all of them or some of them can u explain me thnx On 5/12/05, Niall Pemberton <[EMAIL PROTECTED]> wrote: > This is the same problem you had with your other custom validation method - > the parameters you've defined in the validation configuration file don't >

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Pedro Salgado
So you use #2? :) Pedro Salgado On 12/05/2005 14:40, "Vic Cekvenich (netsql)" <[EMAIL PROTECTED]> wrote: > Some of you needs a struts mentor ;-) > > You use display any bean or collection in struts, if it's RO, you don't > use formBeans and you use JSTL/displaytag. > If you edit, update, inser

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Vic Cekvenich (netsql)
Some of you needs a struts mentor ;-) You use display any bean or collection in struts, if it's RO, you don't use formBeans and you use JSTL/displaytag. If you edit, update, insert, etc, you have to use and map a form bean and html tag. Often do I see a formBean mapped on a page that only output

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread Aladin Alaily
Hi Adam, One possibility is to have the timing out of the session be managed by your container and have the redirection issued by a filter. If you are using Tomcat 4+ this is very straightforward to implement. In the web.xml, you declare your session-timeout value and your filter class. After

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Ted Husted
My question would be: * Under this poll how does the Struts MailReader application use ActionForms? I would think the essential question is whether people use ActionForms to 1) Harvest or populate only the default values of form controls. 2) Populate other page members, such as the items dis

RE: Best practice for redirecting on session timeout?

2005-05-12 Thread Paul McCulloch
How does your system know to send the user to the login page in the first place? Typically an application (or the container if you are letting it manage authentication) detectes that a request is made with no session/an invalid session/a new session. It then sends the user to the login page. Assu

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Allistair Crossley
;) > -Original Message- > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Sent: 12 May 2005 10:16 > To: Struts Users Mailing List > Subject: RE: [POLL] What do you use action forms for? > > > Sorry, but you described #2 and not #4. > > On Thu, 2005-05-12 at 09:49 +0100, Allistair Cross

Re: Is struts more performant than JSF

2005-05-12 Thread Ted Husted
On 5/10/05, Yan Hu <[EMAIL PROTECTED]> wrote: > Hi: > I have been playing with JSF lately. I really like it since it is very > intuitive. But as I > understand it, JSF keeps a component tree for each page with JSF widgets in > it on the server. So > it is heavy weight compared with struts. Coul

RE: using html link to submit form and params

2005-05-12 Thread Marsh-Bourdon, Christopher
Set a hidden field within the form, which you could dynamically set using JavaScript, and example would be: I roughly grafted this from my JavaScript methods, but it should work! Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: [EMAIL PROTEC

RE: using html link to submit form and params

2005-05-12 Thread Faisal.Shoukat
The href="javascript:document.{Form Name}.submit();" will allow me to submit the form but how would I send the request parameter through which the forward allows me to send. Eg: for this particular link I am also sending action=edit as a request param Thanks -Original Message- Fr

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread Shailender Jain
Hello, It should be done in the RequestProcessor. If none of your JSP is doing a forward to other JSP directly. Shailender Jain Adam Lipscombe wrote: > Folks, > > I there a standard way of handling session timeouts. If a user has been > inactive for longer than N minutes I want to redirect them

RE: using html link to submit form and params

2005-05-12 Thread Marsh-Bourdon, Christopher
Get rid of the forward, I tend to use just HTML tags for this, but it should work if you lop off the forward, as the form handles the POST. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 11:21 To: user@struts.apache.org Subject: RE: using html link

  1   2   >