Hi.

I'm a beginner in Flex.

I need to do an application very easy but my experience in this is a 
little.

I need a JSP where use a application Flex and I can load a file.
I need select a file in a browse window.

I have this code, please help me is urgent, if you can send me the 
help in spanish would be wonderful. you can see my english is not 
perfect.

<%@ taglib uri="FlexTagLib" prefix="mm" %>
<%@ page contentType="text/html; charset=iso-8859-1" 
    language="java" 
        import="java.util.*" 
        errorPage="" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<title>Subir Archivo al Repositorio</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
1">
<link rel="stylesheet" href="css/estilo.css" type="text/css">
<script language="Javascript" src="js/valida.js"></script>
<script language="Javascript">
  var uploadform;
  
  function validacion() {
    with (window.document.formulario) {
      if (esNulo(file,"Archivo")) return false;
    }
  }

</script>
</head>

<body>
<form action="<%= request.getContextPath() %>/expedienteUpload" 
method="post" enctype="multipart/form-data" name="formulario" 
onSubmit="return validacion();">
  <table width="90%"  border="0" align="center" cellpadding="0" 
cellspacing="0">
    <tr>
      <td>
            <mm:mxml>
                  <mx:Application 
xmlns:mx="http://www.macromedia.com/2003/mxml"; 
backgroundColor="#FFFFFF" height="300" width="100%" 
horizontalAlign="center">
                     <mx:VBox horizontalAlign="center">
                           <mx:Label text="Alta de Archivo" 
fontSize="13"/>  
                           <mx:Link label="Consulta" click="" 
color="#0033FF" fontSize="10"/>
                         <mx:VBox borderStyle="solid" 
marginBottom="10">
                         <mx:HBox backgroundColor="#CCCCCC">
                           <mx:Label text="Datos" width="355"/>
                         </mx:HBox>
                         <mx:HBox>
                           <mx:Label text="Archivo:"/>
                           <mx:TextInput width="214"/>
                   <mx:Button label="Browse" click="getURL
('javascript:browse()')"/>
                 </mx:HBox>
                         <mx:HBox>
                           <mx:Label text="Observación:"/>
                           <mx:TextArea width="261" height="65" 
vScrollPolicy="auto" hScrollPolicy="auto"/>
                         </mx:HBox>
                         <mx:HBox width="348" 
horizontalAlign="right">
                           <mx:Button label="Guardar" 
click="mx.controls.Alert.show('aki se guardará')" height="20"/>
                         </mx:HBox>
                     </mx:VBox>
                    </mx:VBox>
                  </mx:Application>
                </mm:mxml>
          </td>
    </tr>
  </table>
</form>
</body>
</html>

-------------------------------------------------------------------
you can find me in msn [EMAIL PROTECTED]






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to