This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameter() - Incompatible Type

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the request.getParameter(); to get a file. This file is of the org.apache.struts.upload.FormFile type. I got this compilation error:

AddFiles.java:62: incompatible types
found : java.lang.String
required: org.apache.struts.upload.FormFile
FormFile file = request.getParameter( "theFile" );

What should I do if I cannot use the getParameter() method?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have a look here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic