Re: upload validation failures are blanking my form values

2004-03-12 Thread Caoilte O'Connor
On Friday 12 March 2004 20:27, you wrote:
> Thanks for the reply. Nice to know I'm not alone. I found
> a suggested work around that involved using JavaScript to
> alter the HTML form's action attribute by appending the
> the values you want to remember as parameters. See
> http://mail-archives.apache.org/eyebrowse/ReadMsg?listId=
>42&msgNo=54731 for details.
>
> Happy sailing!
>
> Craig

aaah. Now I hate Javascript, but my colleague at work will 
love that hacked script you linked to. I'm gonna CC again 
to the struts list in the hope other people are also able 
to make good use of your good digging.

later,

c

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: upload validation failures are blanking my form values

2004-03-12 Thread Caoilte O'Connor
On Friday 12 March 2004 19:43, you wrote:
> Greetings,
>
> I was browsing through the Struts mail lists and found
> the thread that you started. I am having the exact same
> problem. Do you know of a work around or fix for this
> problem?
>
> TIA,
>
> Craig

user ignorance mate. i filed a bug,

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24503

you can voice your support and maybe someone in the team 
will have a look at it. Otherwise someone else emailed me a 
couple of monthes ago *rummages around*


--
I just ran into the same problem... and googled up your
unanswered query. But I think I just figured it out...

in the stuts config set the property for the file element to 
org.apache.struts.upload.FormFile not to java.lang.String.
Then in the action class or form or wherever you need to do 
it
cast it back from object.
Thats my guess. 

I bet you already figured that out. :)
--

To be honest, I'm not sure he even had the same problem as 
me, so I don't know if that will help you (it doesn't help 
me).

Let me know if you find a solution or persuade someone to 
fix it.

c

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: upload validation failures are blanking my form values

2003-11-07 Thread Caoilte O'Connor
I've tried all the normal tricks. They don't fix it, because 
as long as you don't try and upload a file it's not broken 
to begin with. 

I'm familiar with all the newbie problems, I've been using 
struts for two and a half years. 

thanks the same, I'll see if it's something i can fix in the 
struts source. it is very obscure.

c




On Friday 07 November 2003 06:04, muzammil shahbaz wrote:
> Caoilte,
>
> Can you afford session scope in this scenario. There must
> be no problem in this scope.
>
> If not, then try to redirect on the page through the same
> action class which u use it for preparing it. This will
> be sort of chaining.
>
> Regards,
> MMS
>   --
>   From:  Caoilte O'Connor [SMTP:[EMAIL PROTECTED]
>   Sent:  Thursday, November 06, 2003 7:00 PM
>       To:  [EMAIL PROTECTED]
>   Subject:  Re: upload validation failures are blanking
> my form values
>
>   it's not quite the same problem as that guy is having.
>
>   I don't mind "file" fields being blanked, because
> chances
>   are the validation error is from that particular file
> being
>   too big.
>
>   my problem is that every single field in the form is
> being
>   blanked (ie text ones which describe the file too, not
> just
>   the file one), and that this only happens when you
> upload a
>   file (ie it won't happen on exactly the same page if
> you
>
>   don't try to upload the file and there is a validation
>   error).
>
>   i think this must be a bug in struts,
>
>   caoilte
>
>   On Thursday 06 November 2003 14:33, Susan Bradeen wrote:
>   > Maybe this archive thread can help you?
>
> http://marc.theaimsgroup.com/?t=10475202833&r=1&w=2
>
>   > Susan
>   >
>   > On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote:
>   > > Hi, I've got a bizarre bug with the struts-upload
>   > > tools.
>   > >
>   > > Struts-upload "works" when,
>   > >
>   > > 1) everything validates correctly.
>   > > 2) there is a validation error and you do not
>
> attempt
>
>   > > to upload a file.
>   > >
>   > > but it breaks as soon as i try to upload a file and
>   > > there is a validation error for any reason.
>   > >
>   > > The errors get reported correctly and I get
>   > > returned
>
> to
>
>   > > the input page BUT all the form fields are blanked.
>   > > This does NOT happen if I do not attempt to upload
>   > > a file.
>   > >
>   > >
>   > > I have confirmed this also happens in the
>
> struts-upload
>
>   > > example webapp. Has anyone else been infuriated by
>
> this
>
>   > > bug and found any workarounds?
>   > >
>   > > I'm not using a nightly build.
>   > >
>   > >
>   > > cheers,
>   > >
>   > > caoilte
>
> ---
>
>   > >-- To unsubscribe, e-mail:
>   > > [EMAIL PROTECTED] For
>   > > additional commands, e-mail:
>   > > [EMAIL PROTECTED]
>
> -
>
>   > To unsubscribe, e-mail:
>   > [EMAIL PROTECTED] For
>
> additional
>
>   > commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: upload validation failures are blanking my form values

2003-11-06 Thread muzammil shahbaz
Caoilte,

Can you afford session scope in this scenario. There must be no problem
in this scope.

If not, then try to redirect on the page through the same action class
which u use it for preparing it. This will be sort of chaining.

Regards,
MMS
--
From:  Caoilte O'Connor [SMTP:[EMAIL PROTECTED]
Sent:  Thursday, November 06, 2003 7:00 PM
To:  [EMAIL PROTECTED]
Subject:  Re: upload validation failures are blanking my
form values

it's not quite the same problem as that guy is having.

I don't mind "file" fields being blanked, because
chances 
are the validation error is from that particular file
being 
too big.

my problem is that every single field in the form is
being 
blanked (ie text ones which describe the file too, not
just 
the file one), and that this only happens when you
upload a 
file (ie it won't happen on exactly the same page if you

don't try to upload the file and there is a validation 
error).

i think this must be a bug in struts,

caoilte

On Thursday 06 November 2003 14:33, Susan Bradeen wrote:
> Maybe this archive thread can help you?
>
>
http://marc.theaimsgroup.com/?t=10475202833&r=1&w=2
>
> Susan
>
> On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote:
> > Hi, I've got a bizarre bug with the struts-upload
> > tools.
> >
> > Struts-upload "works" when,
> >
> > 1) everything validates correctly.
> > 2) there is a validation error and you do not
attempt
> > to upload a file.
> >
> > but it breaks as soon as i try to upload a file and
> > there is a validation error for any reason.
> >
> > The errors get reported correctly and I get returned
to
> > the input page BUT all the form fields are blanked.
> > This does NOT happen if I do not attempt to upload a
> > file.
> >
> >
> > I have confirmed this also happens in the
struts-upload
> > example webapp. Has anyone else been infuriated by
this
> > bug and found any workarounds?
> >
> > I'm not using a nightly build.
> >
> >
> > cheers,
> >
> > caoilte
> >
> >
> >
---
> >-- To unsubscribe, e-mail:
> > [EMAIL PROTECTED] For
> > additional commands, e-mail:
> > [EMAIL PROTECTED]
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED] For
additional
> commands, e-mail: [EMAIL PROTECTED]



RE: upload validation failures are blanking my form values

2003-11-06 Thread Greg Hess
Try setting the redirect="true" for your error action forward. Not
exactly sure of the exact problem but this has solved my problems with
error reporting with forms with file uploads.

HTH,

Greg

> -Original Message-
> From: Caoilte O'Connor [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 06, 2003 6:22 AM
> To: [EMAIL PROTECTED]
> Subject: upload validation failures are blanking my form values
> 
> Hi, I've got a bizarre bug with the struts-upload tools.
> 
> Struts-upload "works" when,
> 
> 1) everything validates correctly.
> 2) there is a validation error and you do not attempt to
> upload a file.
> 
> but it breaks as soon as i try to upload a file and there is
> a validation error for any reason.
> 
> The errors get reported correctly and I get returned to the
> input page BUT all the form fields are blanked. This does
> NOT happen if I do not attempt to upload a file.
> 
> 
> I have confirmed this also happens in the struts-upload
> example webapp. Has anyone else been infuriated by this bug
> and found any workarounds?
> 
> I'm not using a nightly build.
> 
> 
> cheers,
> 
> caoilte
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: upload validation failures are blanking my form values

2003-11-06 Thread Caoilte O'Connor
it's not quite the same problem as that guy is having.

I don't mind "file" fields being blanked, because chances 
are the validation error is from that particular file being 
too big.

my problem is that every single field in the form is being 
blanked (ie text ones which describe the file too, not just 
the file one), and that this only happens when you upload a 
file (ie it won't happen on exactly the same page if you 
don't try to upload the file and there is a validation 
error).

i think this must be a bug in struts,

caoilte

On Thursday 06 November 2003 14:33, Susan Bradeen wrote:
> Maybe this archive thread can help you?
>
> http://marc.theaimsgroup.com/?t=10475202833&r=1&w=2
>
> Susan
>
> On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote:
> > Hi, I've got a bizarre bug with the struts-upload
> > tools.
> >
> > Struts-upload "works" when,
> >
> > 1) everything validates correctly.
> > 2) there is a validation error and you do not attempt
> > to upload a file.
> >
> > but it breaks as soon as i try to upload a file and
> > there is a validation error for any reason.
> >
> > The errors get reported correctly and I get returned to
> > the input page BUT all the form fields are blanked.
> > This does NOT happen if I do not attempt to upload a
> > file.
> >
> >
> > I have confirmed this also happens in the struts-upload
> > example webapp. Has anyone else been infuriated by this
> > bug and found any workarounds?
> >
> > I'm not using a nightly build.
> >
> >
> > cheers,
> >
> > caoilte
> >
> >
> > ---
> >-- To unsubscribe, e-mail:
> > [EMAIL PROTECTED] For
> > additional commands, e-mail:
> > [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail:
> [EMAIL PROTECTED] For additional
> commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: upload validation failures are blanking my form values

2003-11-06 Thread Susan Bradeen

Maybe this archive thread can help you?

http://marc.theaimsgroup.com/?t=10475202833&r=1&w=2

Susan

On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote:

> Hi, I've got a bizarre bug with the struts-upload tools.
>
> Struts-upload "works" when,
>
> 1) everything validates correctly.
> 2) there is a validation error and you do not attempt to
> upload a file.
>
> but it breaks as soon as i try to upload a file and there is
> a validation error for any reason.
>
> The errors get reported correctly and I get returned to the
> input page BUT all the form fields are blanked. This does
> NOT happen if I do not attempt to upload a file.
>
>
> I have confirmed this also happens in the struts-upload
> example webapp. Has anyone else been infuriated by this bug
> and found any workarounds?
>
> I'm not using a nightly build.
>
>
> cheers,
>
> caoilte
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: upload validation failures are blanking my form values

2003-11-06 Thread Rajat Pandit
i am waiting for an answer as well. i also had a similar problem

Caoilte O'Connor wrote:

Hi, I've got a bizarre bug with the struts-upload tools.

Struts-upload "works" when,

1) everything validates correctly.
2) there is a validation error and you do not attempt to 
upload a file.

but it breaks as soon as i try to upload a file and there is 
a validation error for any reason.

The errors get reported correctly and I get returned to the 
input page BUT all the form fields are blanked. This does 
NOT happen if I do not attempt to upload a file.

I have confirmed this also happens in the struts-upload 
example webapp. Has anyone else been infuriated by this bug 
and found any workarounds?

I'm not using a nightly build.

cheers,

caoilte

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--

Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]