how to get a dynamic form bean object if it's not linked to the action

2007-10-02 Thread Leo Asanov
Hi, I've got the survey-like application. Survey is divided into several pages and each of those is represented by a dynamic action form. All forms are stored in the session. Once survey is completed it's stored in the database and anyone can go back at any time, retrieve his/her results, change

Re: content-type

2006-06-05 Thread Leo Asanov
This wouldn't work for me because content type have to be different under different circumstances, but response.setContentType works just fine. Thanks!! Cheers, Leo Bart Busschots <[EMAIL PROTECTED]> wrote: You can set it in the JSP like so: <%@ page contentType="text/xml&qu

content-type

2006-06-05 Thread Leo Asanov
Hi! Is it possible to change content type in action class? response.setContentType doesn't do anything. Content is html code, generated by a jsp file. What are my options? Cheers, Leo - Ring'em or ping'em. Make PC-to-phone calls as low as 1ยข/min

Loading data into FormFile

2005-10-03 Thread Leo Asanov
Hi! Is there a way to load data (from database or file on the server) into org.apache.struts.upload.FormFile object? Cheers, Leo __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com --

Re: Re-use field validations?

2005-09-04 Thread Leo Asanov
Hi! I was looking for this kind of functionality some time ago and didn't find any standard way of doing reusable validators. What I did was more like a hack, but it worked: 1. For server side validation. Overwrite validate() method of FormBean class with something like this: public ActionErro

Re: multiple instances of one ActionForm

2005-08-10 Thread Leo Asanov
--- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Do you need it? Yes. > Back/Forward navigates between resources. Resource > is an Action, not a > JSP nor an ActionForm. So, to use default > Back/Forward functionality > you need to define as many action mappings as you > have "navigatiable"

Re: multiple instances of one ActionForm

2005-08-10 Thread Leo Asanov
That's the first thing I thought of. But in that case you loose "Back" function (and maybe something else as well). You could do something if user presses "back" on the page, but you can't do much if he clicks "back" in the browser unless you write your own request handler. And I am trying to avoid

Re: multiple instances of one ActionForm

2005-08-10 Thread Leo Asanov
Michael, I don't think I really understand your suggestion. Don't I loose struts validation functionality if I don't have an ActionForm per html form? Cheers, Leo > ActionForm does not have to correlate to HTML form > one-to-one. You can > create one ActionForm with session scope and use > neste

Re: multiple instances of one ActionForm

2005-08-09 Thread Leo Asanov
Yes, I am talking about one form per request situation. I don't really see how I can use it as it is. ActionForm object will be overriden with the latest one and all previous data will be lost. Ideally I would prefer to have all data stored in the session automatically and only when user clicks "

Re: multiple instances of one ActionForm

2005-08-08 Thread Leo Asanov
create another > "File Save" dialog? Do all these dialogs remain > allocated until you > shut down the system? > > ActionForm is not a business object. > > Michael. > > On 8/8/05, Leo Asanov <[EMAIL PROTECTED]> > wrote: > > Hi! > > &g

multiple instances of one ActionForm

2005-08-08 Thread Leo Asanov
Hi! Is there any standard ways to manage multiple instances of one form with Struts? I have application which is supposed to take theorerically unlimited number of person's descriptions. Every time user clicks "add one more person" he/she gets exactly the same form (with the same validation rules)