RE: dynamic form using nested:file?

2002-04-14 Thread Alex Paransky

Your first statement,

"...I have a form that can have N number of images..."

Does not warrant the use of nested tag library.  Simply use the standard
iterator, and indexed properties of the html:file tag, to properly output
your file names as file[1], file[2], file[3].

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-Original Message-
From: Elijah Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 8:49 AM
To: Struts Users Mailing List
Subject: dynamic form using nested:file?


hi all,

I have a form that can have N number of images.  So in essence it's like the
Monkey struts example by Arron Bates except where he has bananas, i have
images.

The problems is that I have to associate a FormFile for each image, since
each image can be updated (hence an image upload is needed for that
particular image).. for example if N=3 then a user can update image 2 to
another image.  A user can also add an image increasing N to 4

I am using the nested tags for struts 1.0 (nested_tags_10.jar). So I have
this set up:

   start of code =
FormBean.java
 pivate ArrayList slideImageList;(with associating set/get methods)  ..
contains a list of ImageItem

ImageItem.java  -- what is contained in the slideImageList
private Image image;   // and image object containing image_name, url,
etc...
private FormFile file;// the FormFile I want to associate to the
image above.

Idealy I would want this on my JSP page:

   
 
   
<%!--  this is where i get in
trouble --%>


===   end of code 
Since the nested tag does not have an associating html:file tag then I'm
stuck.  Does anyone know a way to get around this?

thanks,
- ej

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



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




dynamic form using nested:file?

2002-04-14 Thread Elijah Jacobs

hi all, (forgive me if this is a duplicate... server problems)

I have a form that can have N number of images.  So in essence it's like the
Monkey struts example by Arron Bates except where he has bananas, i have
images.

The problems is that I have to associate a FormFile for each image, since
each image can be updated (hence an image upload is needed for that
particular image).. for example if N=3 then a user can update image 2 to
another image.  A user can also add an image increasing N to 4

I am using the nested tags for struts 1.0 (nested_tags_10.jar). So I have
this set up:

   start of code =
FormBean.java
 pivate ArrayList slideImageList;(with associating set/get methods)  ..
contains a list of ImageItem

ImageItem.java  -- what is contained in the slideImageList
private Image image;   // and image object containing image_name, url,
etc...
private FormFile file;// the FormFile I want to associate to the
image above.

Idealy I would want this on my JSP page:

   
 
   
<%!--  this is where i get in
trouble --%>


===   end of code 
Since the nested tag does not have an associating html:file tag then I'm
stuck.  Does anyone know a way to get around this?

thanks,
- ej


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




dynamic form using nested:file?

2002-04-14 Thread Elijah Jacobs

hi all,

I have a form that can have N number of images.  So in essence it's like the
Monkey struts example by Arron Bates except where he has bananas, i have
images.

The problems is that I have to associate a FormFile for each image, since
each image can be updated (hence an image upload is needed for that
particular image).. for example if N=3 then a user can update image 2 to
another image.  A user can also add an image increasing N to 4

I am using the nested tags for struts 1.0 (nested_tags_10.jar). So I have
this set up:

   start of code =
FormBean.java
 pivate ArrayList slideImageList;(with associating set/get methods)  ..
contains a list of ImageItem

ImageItem.java  -- what is contained in the slideImageList
private Image image;   // and image object containing image_name, url,
etc...
private FormFile file;// the FormFile I want to associate to the
image above.

Idealy I would want this on my JSP page:

   
 
   
<%!--  this is where i get in
trouble --%>


===   end of code 
Since the nested tag does not have an associating html:file tag then I'm
stuck.  Does anyone know a way to get around this?

thanks,
- ej

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: dynamic form using nested:file?

2002-04-12 Thread Elijah Jacobs

No problem ,  Arron

Your nested tags has more than helped my project.

can't wait for the updated version...

- ej
- Original Message -
From: "Arron Bates" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 4:14 AM
Subject: Re: dynamic form using nested:file?


> Elijah,
>
> Sorry about the lack of the tag. It's on its way.
> Pick it up in the next nightly build.
>
> Arron.
>
>
> Elijah Jacobs wrote:
>
> >hi all,
> >
> >I have a form that can have N number of images.  So in essence it's like
the
> >Monkey struts example by Arron Bates except where he has bananas, i have
> >images.
> >
> >The problems is that I have to associate a FormFile for each image, since
> >each image can be updated (hence an image upload is needed for that
> >particular image).. for example if N=3 then a user can update image 2 to
> >another image.  A user can also add an image increasing N to 4
> >
> >I am using the nested tags for struts 1.0 (nested_tags_10.jar). So I have
> >this set up:
> >
> >   start of code =
> >FormBean.java
> > pivate ArrayList slideImageList;(with associating set/get methods)
..
> >contains a list of ImageItem
> >
> >ImageItem.java  -- what is contained in the slideImageList
> >private Image image;   // and image object containing image_name,
url,
> >etc...
> >private FormFile file;// the FormFile I want to associate to the
> >image above.
> >
> >Idealy I would want this on my JSP page:
> >
> >   
> > 
> >   
> ><%!--  this is where i get
in
> >trouble --%>
> >
> >
> >===   end of code 
> >Since the nested tag does not have an associating html:file tag then I'm
> >stuck.  Does anyone know a way to get around this?
> >
> >thanks,
> >- ej
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>

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




Re: dynamic form using nested:file?

2002-04-12 Thread Arron Bates

Elijah,

Sorry about the lack of the tag. It's on its way.
Pick it up in the next nightly build.

Arron.


Elijah Jacobs wrote:

>hi all,
>
>I have a form that can have N number of images.  So in essence it's like the
>Monkey struts example by Arron Bates except where he has bananas, i have
>images.
>
>The problems is that I have to associate a FormFile for each image, since
>each image can be updated (hence an image upload is needed for that
>particular image).. for example if N=3 then a user can update image 2 to
>another image.  A user can also add an image increasing N to 4
>
>I am using the nested tags for struts 1.0 (nested_tags_10.jar). So I have
>this set up:
>
>   start of code =
>FormBean.java
> pivate ArrayList slideImageList;(with associating set/get methods)  ..
>contains a list of ImageItem
>
>ImageItem.java  -- what is contained in the slideImageList
>private Image image;   // and image object containing image_name, url,
>etc...
>private FormFile file;// the FormFile I want to associate to the
>image above.
>
>Idealy I would want this on my JSP page:
>
>   
> 
>   
><%!--  this is where i get in
>trouble --%>
>
>
>===   end of code 
>Since the nested tag does not have an associating html:file tag then I'm
>stuck.  Does anyone know a way to get around this?
>
>thanks,
>- ej
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




dynamic form using nested:file?

2002-04-11 Thread Elijah Jacobs

hi all,

I have a form that can have N number of images.  So in essence it's like the
Monkey struts example by Arron Bates except where he has bananas, i have
images.

The problems is that I have to associate a FormFile for each image, since
each image can be updated (hence an image upload is needed for that
particular image).. for example if N=3 then a user can update image 2 to
another image.  A user can also add an image increasing N to 4

I am using the nested tags for struts 1.0 (nested_tags_10.jar). So I have
this set up:

   start of code =
FormBean.java
 pivate ArrayList slideImageList;(with associating set/get methods)  ..
contains a list of ImageItem

ImageItem.java  -- what is contained in the slideImageList
private Image image;   // and image object containing image_name, url,
etc...
private FormFile file;// the FormFile I want to associate to the
image above.

Idealy I would want this on my JSP page:

   
 
   
<%!--  this is where i get in
trouble --%>


===   end of code 
Since the nested tag does not have an associating html:file tag then I'm
stuck.  Does anyone know a way to get around this?

thanks,
- ej



--
To unsubscribe, e-mail:   
For additional commands, e-mail: