I never set a filter (not sure how to either), I just copied what the showcase 
example had.

Here's my JSP:
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>SMIG Import</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<s:form action="SMIGImport" method="POST" enctype="multipart/form-data">
        <s:file name="upload" label="File" />
        <s:submit key="importSMIGButton" method="importSMIGButtonPressed" />
</s:form>
<s:actionerror/>
<s:actionmessage/>
</body>
</html>

My action has a series of getters/setters for the following:
private String fileName;
private String contentType;
private File upload;

My action in struts.xml is configured as follows:
<action name="SMIGImport" 
class="edu.cmu.sei.smart.zen.server.smigimportexport.SMIGImport">
  <result>/pages/smigimportexport/SMIGImport.jsp</result>
  <result name="input">/pages/smigimportexport/SMIGImport.jsp</result>
</action>

I do get a tmp file, but it only has the word "Import" in it, and not the 
content of the file I uploaded from the browser.

Anything I may be missing?

Thanks,
Session


> --- Session A Mwamufiya wrote:
>> Do people need more information in order to answer this thread?  Please
>> let me know.  I've been stuck for 2 days now, trying to upload a file on
>> my server.
> 
> I've had no issues uploading files; it drops it in the temp directory and
> I copy it to where I really want it.
> 
> Are you using the context cleanup filter?
> 
> d.
> 
> 
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: [EMAIL PROTECTED] For additional
> commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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

Reply via email to