Foros del Web » Programación para mayores de 30 ;) » Java »

Validacion jquery y JSP

Estas en el tema de Validacion jquery y JSP en el foro de Java en Foros del Web. Hola alguien podria decirme porque la validacion no aparece en mi jsp he realizado otros validaciones con solo el <input> pero de la esta forma ...
  #1 (permalink)  
Antiguo 25/10/2013, 11:49
Avatar de BlinDer  
Fecha de Ingreso: julio-2013
Mensajes: 52
Antigüedad: 10 años, 9 meses
Puntos: 0
Validacion jquery y JSP

Hola alguien podria decirme porque la validacion no aparece en mi jsp he realizado otros validaciones con solo el <input> pero de la esta forma el jsp no me muestra nada alguien sabe como hacerlo??????, en primera se que se necesita un name ya lo habia puesto pero me manda error que solo debe tener un name la jsp bueno lo quite pero no me anda mi validacion dejo mis datos de jsp para que me dijan que esta mal.

Código PHP:

<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@
taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@
taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

        <
script type="text/javascript" src="jsgrid/jqgrid/jquery-2.0.3.min.js"></script>
        <script type="text/javascript" src="jsgrid/jqgrid/jquery-validate.min.js"></script>

<div style="width: auto; height: auto;" id ="FormOrdenCompraP">
            <html:form action="OrdenCompra.do?do=init" styleId="OrdenCoForm" method="post" onsubmit="return false">
                <div id="fondow" style="width: 810px; height: 90px; text-align: center; margin-top: 20px;">
                    <fieldset style="alignment-adjust: central; width: 780px; height: 60px;">
                        <legend>Lista Orden de Compra</legend>
                        <div style="width: 780px; height: 50px;">
                            <div style="width: 190px; position: relative; float: left; height: 35px; margin-top: 10px; display: none;"><label for="id">Codigo :</label>
                                <html:text name="OrdenCompraForm" property="idOCF"  styleId="idOCF" readonly="readonly" styleClass="textbox" size="15" maxlength="20" tabindex="1"/>
                            </div>
                            <div style="width: 190px; position: relative; float: left; height: 35px; margin-top: 10px;"><label for="id">Codigo :</label>
                                <html:text name="OrdenCompraForm" property="codigoOCF" styleId="codigooOCF" styleClass="textbox" size="15" maxlength="20" tabindex="1" />
                            </div>
                            <div style="width: 200px; position: relative; float: left; height: 35px; margin-left: 10px; margin-top: 10px;"><label for="id">Producto :</label>
                                <html:text name="OrdenCompraForm" property="productoOCF" styleId="productooOCF" styleClass="textbox" size="15" maxlength="20" tabindex="2"/>
                            </div>
                            <div style="width: 160px; position: relative; float: left; height: 35px; margin-left: 10px; margin-top: 10px; "><label for="id">Cantidad :</label>
                                <html:text name="OrdenCompraForm" property="cantidadOCF" styleId="cantidadoOCF" styleClass="textbox" size="8" maxlength="20" tabindex="3" />
                            </div>
                            <div style="width: 200px; position: relative; float: left; height: 35px; margin-left: 10px; margin-top: 10px;"><label for="id">Precio Compra :</label>
                                <html:text name="OrdenCompraForm" property="preciocompraOCF" styleId="preciocompraoOCF" styleClass="textbox" size="10" maxlength="20" tabindex="4" />
                            </div>
                        </div>
                        </center>
                        <div style="height: 40px; margin-left: 230px; margin-top: 5px;">
                            <div style="float: left; height: 4px; width: 45px; margin-left: 15px; cursor: pointer;"><img alt="salva" style="height: 25px; width: 65px;" id="agregar" name="salva" src="/DatosProducto/botonesimg/botonagregar.gif"/></div>
                            <div style="float: left; height: 4px; width: 50px; margin-left: 30px; cursor: pointer;"><img alt="salva" style="height: 25px; width: 65px;" id="editar" name="salva" src="/DatosProducto/botonesimg/botoneditar.png"/></div>
                            <div style="float: left; height: 4px; width: 70px; margin-left: 25px; cursor: pointer;"><img alt="salva" style="height: 25px; width: 65px;" id="elimina" name="salva" src="/DatosProducto/botonesimg/botoneliminar.gif"/></div>
                            <div style="float: left; height: 4px; width: 40px; margin-left: 10px; cursor: pointer;"><img alt="salva" style="height: 25px; width: 65px;" id="cancela" name="salva" src="/DatosProducto/botonesimg/botoncancelar.gif"/></div>
                        </div>
                    </fieldset>
                </div>
            </html:form>
        </div> 

Alguien tiene una idea de esto!!!!!!!! Gracias
  #2 (permalink)  
Antiguo 25/10/2013, 11:55
 
Fecha de Ingreso: agosto-2013
Mensajes: 103
Antigüedad: 10 años, 8 meses
Puntos: 1
Respuesta: Validacion jquery y JSP

hombre, lo has puesto en la ventana de php, y encima lo posteas en el foro de java cuando es javascript, html y css.
Primero lee, luego pregunta y despues programa.
Se nota que hiciste copiar y pegar de una pagina web random...
  #3 (permalink)  
Antiguo 29/10/2013, 09:14
 
Fecha de Ingreso: febrero-2011
Mensajes: 672
Antigüedad: 13 años, 2 meses
Puntos: 78
Respuesta: Validacion jquery y JSP

Mechabits, tu respuesta me parece fuera de lugar. Ha confundido JavaScript con Java (algo frecuente), nada más.

BlinDer, aunque tu página sea JSP, el problema que tienes no tiene que ver con JAVA. Te podrán ayudar más en el apartado de JavaScript/Jquery.

Saludos.

Etiquetas: html, jquery, jsp, validacion
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:59.