Multiple FormFile Uploads in Struts 1

2011-10-28 Thread Sekar, Sowmya
Hi,
Does anyone have a working solution of multiple formfile uploads? I declared 
the formfile as an arraylist and indexed the property in the jsp files. I also 
changed the setter and getter methods to take the index and formfile object. 
However, when I save the form, it throws argument type mismatch error

Any ideas?

Sowmya


Re: Multiple FormFile Uploads in Struts 1

2011-10-28 Thread JOSE L MARTINEZ-AVIAL
This works for me.

private File fileToUpload[];// The actual file
private String fileToUploadContentType[]; // The content type of the
file
private String fileToUploadFileName[]; // The uploaded file name

public void setFiletoUpload(File upload[]) {
this.fileToUpload = upload;
}

public void setFiletoUploadContentType(String uploadContentType[]) {
this.fileToUploadContentType = uploadContentType;
}

public void setFiletoUploadFileName(String uploadFileName[]) {
this.fileToUploadFileName = uploadFileName;
}

2011/10/28 Sekar, Sowmya sse...@ucsd.edu

 Hi,
 Does anyone have a working solution of multiple formfile uploads? I
 declared the formfile as an arraylist and indexed the property in the jsp
 files. I also changed the setter and getter methods to take the index and
 formfile object. However, when I save the form, it throws argument type
 mismatch error

 Any ideas?

 Sowmya



Re: Multiple FormFile Uploads in Struts 1

2011-10-28 Thread JOSE L MARTINEZ-AVIAL
In the JSP

input type=file id=file0 name=filetoUpload /br /
input type=file id=file1 name=filetoUpload /br /
input type=file id=file2 name=filetoUpload /br /
input type=file id=file3 name=filetoUpload /br /


2011/10/28 JOSE L MARTINEZ-AVIAL jlm...@gmail.com

 This works for me.

 private File fileToUpload[];// The actual file
 private String fileToUploadContentType[]; // The content type of the
 file
 private String fileToUploadFileName[]; // The uploaded file name

 public void setFiletoUpload(File upload[]) {
 this.fileToUpload = upload;
 }

 public void setFiletoUploadContentType(String uploadContentType[]) {
 this.fileToUploadContentType = uploadContentType;
 }

 public void setFiletoUploadFileName(String uploadFileName[]) {
 this.fileToUploadFileName = uploadFileName;
 }

 2011/10/28 Sekar, Sowmya sse...@ucsd.edu

 Hi,
 Does anyone have a working solution of multiple formfile uploads? I
 declared the formfile as an arraylist and indexed the property in the jsp
 files. I also changed the setter and getter methods to take the index and
 formfile object. However, when I save the form, it throws argument type
 mismatch error

 Any ideas?

 Sowmya





Struts1 in IDE but S2

2011-10-28 Thread Frans Thamura
hi all

any reason, why S2 is not default feature, but S1 in almost IDE popular

i am in middle of helping IBM partner to develop team technical, and
most of them still using Struts1..

but there is not S2 in their Websphere Studio, i found also in JDeveloepr

is JSF a conspiration project that kick S1 ?
--
Frans Thamura (曽志胜)
Chief of Advisory
Meruvian.
Integrated Hypermedia Java Solution Provider.

Mobile: +628557888699
Blog: http://blogs.mervpolis.com/roller/flatburger (id)

FB: http://www.facebook.com/meruvian
TW: http://www.twitter.com/meruvian / @meruvian
Website: http://www.meruvian.org

We grow because we share the same belief.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts1 in IDE but S2

2011-10-28 Thread Dave Newton
MyEclipse and IntelliJ both support S2, and I've seen at least one
other Eclipse S2 plugin. S2 just isn't that popular.

Dave

On Fri, Oct 28, 2011 at 6:03 PM, Frans Thamura fr...@meruvian.org wrote:
 hi all

 any reason, why S2 is not default feature, but S1 in almost IDE popular

 i am in middle of helping IBM partner to develop team technical, and
 most of them still using Struts1..

 but there is not S2 in their Websphere Studio, i found also in JDeveloepr

 is JSF a conspiration project that kick S1 ?
 --
 Frans Thamura (曽志胜)
 Chief of Advisory
 Meruvian.
 Integrated Hypermedia Java Solution Provider.

 Mobile: +628557888699
 Blog: http://blogs.mervpolis.com/roller/flatburger (id)

 FB: http://www.facebook.com/meruvian
 TW: http://www.twitter.com/meruvian / @meruvian
 Website: http://www.meruvian.org

 We grow because we share the same belief.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Multiple FormFile Uploads in Struts 1

2011-10-28 Thread JOSE L MARTINEZ-AVIAL
Oops, sorry, I didn't see you were asking for Struts1

2011/10/28 JOSE L MARTINEZ-AVIAL jlm...@gmail.com

 In the JSP

 input type=file id=file0 name=filetoUpload /br /
 input type=file id=file1 name=filetoUpload /br /
 input type=file id=file2 name=filetoUpload /br /
 input type=file id=file3 name=filetoUpload /br /



 2011/10/28 JOSE L MARTINEZ-AVIAL jlm...@gmail.com

 This works for me.

 private File fileToUpload[];// The actual file
 private String fileToUploadContentType[]; // The content type of the
 file
 private String fileToUploadFileName[]; // The uploaded file name

 public void setFiletoUpload(File upload[]) {
 this.fileToUpload = upload;
 }

 public void setFiletoUploadContentType(String uploadContentType[]) {
 this.fileToUploadContentType = uploadContentType;
 }

 public void setFiletoUploadFileName(String uploadFileName[]) {
 this.fileToUploadFileName = uploadFileName;
 }

 2011/10/28 Sekar, Sowmya sse...@ucsd.edu

 Hi,
 Does anyone have a working solution of multiple formfile uploads? I
 declared the formfile as an arraylist and indexed the property in the jsp
 files. I also changed the setter and getter methods to take the index and
 formfile object. However, when I save the form, it throws argument type
 mismatch error

 Any ideas?

 Sowmya






Re: Struts1 in IDE but S2

2011-10-28 Thread Mano Pájaro
I finally went for MyEclipse for S2 because I didn't find anything else,
everything else what I found was frustration in form of Eclipse plugins xD
As Dave Newton said, I guess that S2 is not that popular, We have to wait
for it :(

2011/10/28 Dave Newton davelnew...@gmail.com

 MyEclipse and IntelliJ both support S2, and I've seen at least one
 other Eclipse S2 plugin. S2 just isn't that popular.

 Dave

 On Fri, Oct 28, 2011 at 6:03 PM, Frans Thamura fr...@meruvian.org wrote:
  hi all
 
  any reason, why S2 is not default feature, but S1 in almost IDE popular
 
  i am in middle of helping IBM partner to develop team technical, and
  most of them still using Struts1..
 
  but there is not S2 in their Websphere Studio, i found also in JDeveloepr
 
  is JSF a conspiration project that kick S1 ?
  --
  Frans Thamura (曽志胜)
  Chief of Advisory
  Meruvian.
  Integrated Hypermedia Java Solution Provider.
 
  Mobile: +628557888699
  Blog: http://blogs.mervpolis.com/roller/flatburger (id)
 
  FB: http://www.facebook.com/meruvian
  TW: http://www.twitter.com/meruvian / @meruvian
  Website: http://www.meruvian.org
 
  We grow because we share the same belief.
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
Manolo Pájaro Santander
Ingeniero de Sistemas IX Semestre (Actual)
Promoviendo el Software Libre
CUSOL-UAC
Linux Registered User # 522026