RE: Problems with ActionError

2005-05-12 Thread Freddy Villalba A.
Hi Nestor, This is a code snippet from a catch clause in an ActionForm class of mine: ... ActionErrors errors = new ActionErrors(); if (this.getValorPorcentual() == null) { errors.add(ActionErrors.GLOBAL_ERROR, new

Validation and multiple languages

2005-05-12 Thread Anders Sveen
Hi, I'm using validation with one locale and everything works fine. Then I decided to add another locale for Icelandic, and do the following: formset language=is /formset This gives me an empty formset and no validation is turned on. So I move on to try to add a form for validation: formset

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

2005-05-12 Thread Marco Mistroni
#4 .. #1 - so I generate them from my POJOs using XDoclet. All the other frameworks I use (JSF, Spring, Tapestry and WebWork) allow me to use my POJOs directly. Matt On May 11, 2005, at 4:02 PM, Michael Jouravlev wrote: Turns out, that my way of using action forms differs from

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

2005-05-12 Thread atta-ur rehman
#4 On 5/12/05, Marco Mistroni [EMAIL PROTECTED] wrote: #4 .. #1 - so I generate them from my POJOs using XDoclet. All the other frameworks I use (JSF, Spring, Tapestry and WebWork) allow me to use my POJOs directly. Matt On May 11, 2005, at 4:02 PM, Michael Jouravlev wrote:

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

2005-05-12 Thread Marsh-Bourdon, Christopher
#4 -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 09:05 To: 'Struts Users Mailing List' Subject: RE: [POLL] What do you use action forms for? #4 .. #1 - so I generate them from my POJOs using XDoclet. All the other frameworks I use (JSF,

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

2005-05-12 Thread Leon Rosenberg
To all of the #4 voter. Can you bring in an example? I mean what exactly do you show on the output page? thanx Leon -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 09:05 To: 'Struts Users Mailing List' Subject: RE: [POLL] What do you use

Framework and application webapps

2005-05-12 Thread Craig Edwards
I have been using struts for a while now and have built up a collection of common code/forms/actions (stuff like log on, log off, administer news items, etc). Everytime I create a new web application that builds on top of these, I seem to be copying all the form/action definitions from my

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

2005-05-12 Thread Marco Mistroni
Hello, In output page I just display actionform properties.. For example, @work, I display actionform properties after a search, or after an update @home, now that I realize it, I use them only for input..because in output of my action I have either a statusmsg or a collection of POJO

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

2005-05-12 Thread Allistair Crossley
#4 is pretty much the standard. your bean declares fields, you use the struts-html tags to draw your form and link it to the action mapping. also use struts tags to render a block of error messages in a list, or next to each form input. the action mapping declares it uses the form bean. turn

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

2005-05-12 Thread Marsh-Bourdon, Christopher
In my particular usage (which might be half or even fully cocked) I do the following: For Input, I take the details in via a form, like most I assume; For Viewing/Editing or Amending I take a POJO from Hibernate and then using PropertyUtils copy the data from the POJO to the Form and then use the

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

2005-05-12 Thread rmanchu
pretty much what is on the input form. :) eg: a search form would return the same search form with the set parameters. the result i pass as a Collection in Request imho, in a lot of the cases (mostly simple) it is just not worth the effort to do a separation of input and output ActionForm 's

Re: The field name in jsp

2005-05-12 Thread Cliff Lam
Hi riyaz, Thank you very much. I have try it. I think this method is mot suitable for me as I only want to get the fields in jsp not all the field in the form. As some field in the form is not used in jsp and some field is used by the other action. Anyway thank a lot. Do you still have any

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

2005-05-12 Thread Allistair Crossley
well for a search form, it's not like you really need the values of the form remembered, since the resultant view is always going to be a search results page. your search action could quite happily just worry about request.getParameter(searchInputType). we use ActionForm only where it

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

2005-05-12 Thread Leon Rosenberg
Sorry, but you described #2 and not #4. On Thu, 2005-05-12 at 09:49 +0100, Allistair Crossley wrote: #4 is pretty much the standard. your bean declares fields, you use the struts-html tags to draw your form and link it to the action mapping. also use struts tags to render a block of error

is it posible to pass a parameter to an action in configuration time?

2005-05-12 Thread Rodolfo García Esteban/CYII
Hi, I need to pass an url to an action for do some validations, this action is a parameter of application's configuration, the user mustn't modify it and it has the same value all the time. I don't know the best way to do this. Thanks Rodolfo ___

Re: The field name in jsp

2005-05-12 Thread rmanchu
unless u have a method by which u can select which fields u want to display, yup it'll render all fields on form. i currently use customized Form*Config's to give it hints in the struts-config.xml file. the ability to use set-property key/value is hopefully coming soon (struts 1.3-dev). but

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

2005-05-12 Thread rmanchu
indeed. i was giving a simple example. it can well be an data insert form (where validation is required) - with some appropriate message/result returned with it. it is quite easy to use the same actionform for input/output riyaz Allistair Crossley wrote: well for a search form, it's not like

RE: is it posible to pass a parameter to an action in configurati on time?

2005-05-12 Thread Marsh-Bourdon, Christopher
action path=... type=... name=... scope=request validate=false parameter={parameter} forward name=success path=... redirect=false / /action Use the parameter={parameter}, you can then pick this up in the

depends=required didn't work with radio button - I GOT A PROBLEM!

2005-05-12 Thread Oratai Sookrojnirun
Dear All, I'm in trouble of using depends=required in validation.xml for validate radio buttons. If has no any selected the radio buttons. It don't validate anything and I got an errors message WARNING: Unhandled Exception thrown: class java.lang.NullPointerException (I'm using Tomcat

RE: is it posible to pass a parameter to an action in configurati on time?

2005-05-12 Thread Rodolfo García Esteban/CYII
thanks this is I was looking for Rodolfo García Esteban Canal Isabel II División de Aplicaciones Técnicas C/ Santa Engracia, 125 Edificio 8 Tel. 91 545 10 00 - Ext. 2128 Fax. 91 545 14 41 ___ Marsh-Bourdon, Christopher [EMAIL PROTECTED] 12/05/2005

using html link to submit form and params

2005-05-12 Thread Faisal.Shoukat
I have a search page which allows the user to perform multiple actions. i.e The user can select a returned row and then he can edit or delete via a link. However if I use the following link tag in my jsp: html:link forward=editClient/html:link This is encompassed within a form tag. The struts

RE: using html link to submit form and params

2005-05-12 Thread Marsh-Bourdon, Christopher
If set your href of the link to be something like this: href=javascript:document.{Form Name}.submit(); Then the form will be submitted and your form values will not be set to null. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: [EMAIL PROTECTED]

RE: using html link to submit form and params

2005-05-12 Thread Faisal.Shoukat
Would I use the href tag in addition to using the forward tag within the link? html:link href=javascript:document.{Form Name}.submit(); forward=editClient /html:link -Original Message- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 11:16 To: 'Struts Users

Best practice for redirecting on session timeout?

2005-05-12 Thread Adam Lipscombe
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 to the login page. It occurs to me that this could be done in a) the RequestProcessor or b) in an JSP include. Is there another way? What is best

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

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 to

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: global-forwards forward name=editClient path=/actionClient.do?action=edit/ /global-forwards for this particular link I

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: html:form action=/xyz.do method=POST html:hidden property=abc / html:link href=javascript:document.xyz.abc.value='edit';document.xyz.submit(); /html:form I roughly

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. Could I

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 Crossley

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.

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

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 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

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, insert, etc,

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
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 output

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

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) meta http-equiv=refresh content=1200;/ You should be handling invalid/expired session state in your application and by using the above

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 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

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 html:form tags, or any arbitrary dynamic output. The intended

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 html:form 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:

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 user

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

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.

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.

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 for?

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: 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: 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: 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, 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

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 something

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: Best practice for redirecting on session timeout?

2005-05-12 Thread James Mitchell
- Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org 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)

Re: DynaValidatorForm not validating ?

2005-05-12 Thread Dave Newton
Michael Klaene wrote: action path=/login type=org.jsurveys.web.struts.LoginAction name=loginForm input=login.page scope=request forward name=success path=welcome.page/ forward name=failure path=login.page/ /action Woudln't you need a validate=true attribute? Dave

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...

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] To:

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. So you

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: html:form action=/exportToPdf.do target=_NEW submit name=export value=Export to PDF /html When the user clicks on the button, the action exportToPdf.do opens an

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, --

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 Logic: This

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,

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, Aladin

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

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

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: 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:

[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 insert one of a million acronyms here ??? I can't play an instrument or sing, but maybe it's not too late to become a rock star at 35? I

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

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 think #2

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 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 insert one of a million

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: [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

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

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

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 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 suffering

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 insert one of a million acronyms here ??? 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

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

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: [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 scenario

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 this

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 your own

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

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 assure

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

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

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

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

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 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

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

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... Just

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

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

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 my

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

  1   2   >