That is what i am saying. The docs shows how to upload files to action
class but my requirement is different. Please read the problem carefully.
and do help me.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Fri, Sep 11, 2015 at 3:03 PM, Johannes Geppert <jo...@apache.org> wrote:

> Have you already checked the docs?
> https://struts.apache.org/docs/file-upload.html
>
>
> Best Regards
>
> Johannes
>
> #################################################
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
>
> 2015-09-11 11:31 GMT+02:00 Yaragalla Muralidhar <yaragallamur...@gmail.com
> >:
>
> > Hi ,
> >   I know how to upload a file into the action class but my requirement is
> > different. I have a list of pojos where each pojo contains a field called
> > file.
> >
> > for example:-
> >
> > public class Pojo{
> >
> >         private int pk;
> >         private File file;
> >
> >        //setters and getters
> > }
> >
> > In my action class:-
> >
> > public class MyAction{
> >
> >            private List<Pojo> pojos;
> >            //setter getter
> > }
> >
> > from my jsp when i select a file and say upload it has to set to the Pojo
> > "file" property. how do i do that? I have complete idea of how to upload
> > directly to the action class but now it is different. the file has to go
> > and sit in the Pojo class file property. How can i do this? Please help
> me?
> >
> >
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> >
> > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> >
>

Reply via email to