dwr 上传图片

 pics = new String[5]; // 五张图片的地址数组
    for (int i = 0; i < 5; i++) {
     if (buildPicList != null && buildPicList.size() > i) { //用数据库中存储的上传图片地址填充数组
      pics[i] = buildPicList.get(i).getVHouseImg();
     } else {
      pics[i] = "images/img.jpg";//剩下的用“临时图片”地址填充
     }
    }

 

===============================

 

<#assign fck=JspTaglibs["http://java.fckeditor.net"]/> 引入FCKeditor 标签













 

    <@s.form name="productForm" id="productForm" action="saveProduct" method="post" theme="simple">
     <@s.hidden id="opType" name="opType" />
     <@s.hidden key="templateId" />
     <@s.hidden key="absId"/>
     <@s.hidden key="templateData.id"/>
 

         

              

              

            

             "/>
            

       

        <@s.iterator var="pic" value="pics" status="status">
             

               clickImgProduct(this)"style="cursor:pointer;"/>
              <@s.hidden id="uploadImg${status.count}" key="pics" value="${pic}"/>
               showUploadFileProduct(${status.count})"/>
             

              <
/@s.iterator>
           

         
         
             

               
  商品简介

               
                 
                 <@s.if test="templateData==null || templateData.getVProductDescrip()==null">
            <@fck.editor instanceName="EditorDefault" inputName="templateData.VProductDescrip" height="400px"
       width="650">
         
     <@s.else>
      <@fck.editor instanceName="EditorDefault" inputName="templateData.VProductDescrip" height="400px"
       width="650" value="${templateData.VProductDescrip} ">
          
                 

             

             

             
同意发布协议
               
               
               
              
              
         

 
 
   
 

  
  

上传层

  
   
   


 



  
 
 

遮罩层



 

 

你可能感兴趣的:(总结)