File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes File Uploading With DynaValidatorForms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File Uploading With DynaValidatorForms" Watch "File Uploading With DynaValidatorForms" New topic

File Uploading With DynaValidatorForms

Zak Nixon
Ranch Hand

Joined: Sep 27, 2003
Posts: 126

My problem is the following. I am trying to do a file upload to the server.
I have successfully made my forms upload the file to the appropriate
form bean and it is performing the execute() method. Now, the problem:

I have seen that many people do the following code:

Struts Example

But if you have defined no class, but let the DynaValidatorForm do it for you, how can you ever cast the class to retrieve your FormFile object?

Any suggestions would be helpful.

Zak Nixon
Ranch Hand

Joined: Sep 27, 2003
Posts: 126
I just used


I agree. Here's the link:
subject: File Uploading With DynaValidatorForms
It's not a secret anymore!