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
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
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
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
--
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
--- 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"
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
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
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
"
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
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)
11 matches
Mail list logo