Ver Mensaje Individual
  #70 (permalink)  
Antiguo 14/05/2008, 16:06
Avatar de Lino-kun
Lino-kun
 
Fecha de Ingreso: mayo-2008
Ubicación: Cuernavaca Morelos Mexico
Mensajes: 126
Antigüedad: 15 años, 11 meses
Puntos: 2
Re: FAQ's de Java

Por último para acabar con todo este relajo jeje

les pongo dos JSP uno que es el index.jsp y otro que es el resultados.jsp

si despues de esto tienen dudas que yo creo que si pues mandenme un mail y les envio un .doc de unas aplicaciones que hice desde 0 donde espongo desde configurar tu eclipce para programar hasta como ejectuar Struts con tomcat y mysql ademas de que las aplicaciones son 100% probadas y funcionales.

Código PHP:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ 
taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ 
taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<
html:html>
  <
HEAD>
    <%@ 
page language="java" contentType="text/html; charset=ISO-8859-1"
      
pageEncoding="ISO-8859-1"%>
    <
META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <
META name="GENERATOR" content="IBM Software Development Platform">
    <
META http-equiv="Content-Style-Type" content="text/css">
     <
TITLE>Index</TITLE>
  </
HEAD>
   
  <
BODY>
  <
html:form action="/consulta" name="DireccionForm" type="com.lino.prueba.form.DireccionForm">
<
html:hidden property="dispatch" value=" doConsulta"/>

      <
table width="80%" border="0">
          <
tr>
            <
td>Postal Code</td>
            <
td><html:text property="postalCode" maxlength="5"/></td>
            <
td>
              <
html:messages message="true" id="postalcode2">
                   <
bean:write name="postalcode2" />
              </
html:messages>  
              <
html:errors property="postalcode1" /></td>
          </
tr>
              
          <
tr>
            <
td><html:submit>Aceptar</html:submit></td>
          </
tr>
       </
table>   
    </
html:form>  
   </
BODY>
</
html:html
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ 
taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ 
taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<
html:html>
    <
HEAD>
        <%@ 
page language="java" contentType="text/html; charset=ISO-8859-1"    pageEncoding="ISO-8859-1"%>
        <
META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <
META name="GENERATOR" content="IBM Software Development Platform">
        <
META http-equiv="Content-Style-Type" content="text/css">
        <
TITLE></TITLE>
    </
HEAD>

    <
BODY>
      <
bean:define id="ConFrec" name="DireccionForm"/>
      <
table width="80%" border="1"  cellpadding="2" cellspacing="2" class="estilotabla">
     <
tr>
                  <
td class="estilocelda">Codigo Postal</td>
              <
td class="estilocelda">Ciudad</td>
              <
td class="estilocelda">Municipio</td>
          </
tr>
                  <
tr>
              <
td><bean:write name="ConFrec" property="postalCode"/></td>
              <
td><bean:write name="ConFrec" property="direccion.ciudad"/></td>
              <
td><bean:write name="ConFrec" property="direccion.municipio"/></td>
     </
tr>
          </
table>
          <
html:link page="/index.jsp">principal</html:link>
    </
BODY>
</
html:html