2 Replies Latest reply: Aug 24, 2013 9:09 AM by dvohra21 RSS

    Upload file in JSP.

    997766

      Hi,

       

      I am using JDEV 11.1.2.1.0

       

      My file upload is working fine in JSPX but not in a JSF page. The command button does not initiate any action.

       

      For JSF it is like

       

      <?xml version='1.0' encoding='UTF-8'?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">

          <af:form id="f1" usesUpload="true">

       

       

      For JSP it is like

       

      <?xml version='1.0' encoding='UTF-8'?>

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"

                xmlns:af="http://xmlns.oracle.com/adf/faces/rich">

          <jsp:directive.page contentType="text/html;charset=UTF-8"/>

          <f:view>

              <af:document title="UploadAttachment.jspx" id="d1">

                  <af:form id="f1" usesUpload="true">

       

       

      thanks,