|
I can't see that your code in web.xml should cause any
problems, but I've never used myfaces with .shtml .
This is how I defined a file Uploader
------------ jsp
--------------------------------------------------------------
<t:inputFileUpload id="fileUpload" value="#{uploadDocumentBean.uploadedFile}" storage="file" styleClass="standard" required="true" /> < h:commandButton value="#{messages.uploadUpload}" styleClass="button" action="#{uploadDocumentBean.uploadFile}" />-------------------- faces-config.xml-------------------------------------------- : < managed-bean><managed-bean-name>uploadDocumentBean</managed-bean-name> <managed-bean-class> com.faces.handlers.document.UploadDocumentBean </managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean>
-----------------UploadDocumentBean: ------------------ private UploadedFile uploadedFile; public
UploadedFile getUploadedFile() { public
void setUploadedFile(UploadedFile uploadedFile)
{ //Action method
public String uploadFile()
{ log.debug("ID selected is: " + getVersionId()); log.debug("uploaded file: " + uploadedFile.getName() + " size: " + uploadedFile.getSize() + " contentType: " + uploadedFile.getContentType()); if(uploadedFile != null) return "uploadSuccess"; return null; } Is it the bean itself you cannot obtain, or is it the reference to the file you uploaded that is null?
From: Chandra Sekhar [mailto:[EMAIL PROTECTED] Sent: 1. august 2006 15:35 To: MyFaces Discussion Subject: Re: Pleas e respond to my problem of file upload; Hi I am not getting some messages to my mail id. Ok
I saw the messages with the Gmail Account.The reference in the Control Bean I'm
not able toi obtain.
Is this part of Code any problem in the
web.xml
< filter-mapping> <filter-name>extensionsFilter</filter-name> <url-pattern>*.shtml</url-pattern> </filter-mapping>Regds,
Chandru.
|
- RE: Pleas e respond to my problem of file upload; Rønnevik , Eivind
- Re: Pleas e respond to my problem of file upload; Chandra Sekhar
- RE: Pleas e respond to my problem of file upload; Rønnevik , Eivind

