Skip to content

Commit 6949a78

Browse files
hphp
hp
authored and
hp
committed
Practica sencilla Integrando Spring MVC y Bootstrap
0 parents  commit 6949a78

File tree

55 files changed

+991
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+991
-0
lines changed

Diff for: .classpath

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.8.0_171">
5+
<attributes>
6+
<attribute name="owner.project.facets" value="java"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v9.0">
10+
<attributes>
11+
<attribute name="owner.project.facets" value="jst.web"/>
12+
</attributes>
13+
</classpathentry>
14+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
15+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
16+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-1.2.jar"/>
17+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aop-5.0.8.RELEASE.jar"/>
18+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aspects-5.0.8.RELEASE.jar"/>
19+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-beans-5.0.8.RELEASE.jar"/>
20+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-5.0.8.RELEASE.jar"/>
21+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-indexer-5.0.8.RELEASE.jar"/>
22+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-support-5.0.8.RELEASE.jar"/>
23+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-core-5.0.8.RELEASE.jar"/>
24+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-expression-5.0.8.RELEASE.jar"/>
25+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-instrument-5.0.8.RELEASE.jar"/>
26+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jcl-5.0.8.RELEASE.jar"/>
27+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jdbc-5.0.8.RELEASE.jar"/>
28+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jms-5.0.8.RELEASE.jar"/>
29+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-messaging-5.0.8.RELEASE.jar"/>
30+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-orm-5.0.8.RELEASE.jar"/>
31+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-oxm-5.0.8.RELEASE.jar"/>
32+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-test-5.0.8.RELEASE.jar"/>
33+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-tx-5.0.8.RELEASE.jar"/>
34+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-web-5.0.8.RELEASE.jar"/>
35+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-webflux-5.0.8.RELEASE.jar"/>
36+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-webmvc-5.0.8.RELEASE.jar"/>
37+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-websocket-5.0.8.RELEASE.jar"/>
38+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/taglibs-standard-impl-1.2.5.jar"/>
39+
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mysql-connector-8.jar"/>
40+
<classpathentry kind="output" path="build/classes"/>
41+
</classpath>

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build/

Diff for: .project

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>PracticasSpringBootstrap</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.validation.validationbuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
26+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
27+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
28+
<nature>org.eclipse.jdt.core.javanature</nature>
29+
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
30+
</natures>
31+
</projectDescription>

Diff for: .settings/.jsdtscope

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/>
4+
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
6+
<attributes>
7+
<attribute name="hide" value="true"/>
8+
</attributes>
9+
</classpathentry>
10+
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
11+
<classpathentry kind="output" path=""/>
12+
</classpath>

Diff for: .settings/org.eclipse.jdt.core.prefs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.compliance=1.8
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.8

Diff for: .settings/org.eclipse.wst.common.component

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
2+
<wb-module deploy-name="PracticasSpringBootstrap">
3+
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
4+
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
5+
<property name="context-root" value="PracticasSpringBootstrap"/>
6+
<property name="java-output-path" value="/PracticasSpringBootstrap/build/classes"/>
7+
</wb-module>
8+
</project-modules>
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<faceted-project>
3+
<runtime name="Apache Tomcat v9.0"/>
4+
<fixed facet="jst.web"/>
5+
<fixed facet="wst.jsdt.web"/>
6+
<fixed facet="java"/>
7+
<installed facet="java" version="1.8"/>
8+
<installed facet="jst.web" version="4.0"/>
9+
<installed facet="wst.jsdt.web" version="1.0"/>
10+
</faceted-project>
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

Diff for: .settings/org.eclipse.wst.jsdt.ui.superType.name

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Window

Diff for: WebContent/META-INF/MANIFEST.MF

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Class-Path:
3+

Diff for: WebContent/WEB-INF/lib/jstl-1.2.jar

405 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/mysql-connector-8.jar

1.94 MB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-aop-5.0.8.RELEASE.jar

358 KB
Binary file not shown.
45.7 KB
Binary file not shown.
645 KB
Binary file not shown.
1.04 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-core-5.0.8.RELEASE.jar

1.17 MB
Binary file not shown.
273 KB
Binary file not shown.
7.09 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-jcl-5.0.8.RELEASE.jar

21.2 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-jdbc-5.0.8.RELEASE.jar

392 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-jms-5.0.8.RELEASE.jar

254 KB
Binary file not shown.
370 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-orm-5.0.8.RELEASE.jar

187 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-oxm-5.0.8.RELEASE.jar

70.3 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-test-5.0.8.RELEASE.jar

592 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-tx-5.0.8.RELEASE.jar

249 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/lib/spring-web-5.0.8.RELEASE.jar

1.2 MB
Binary file not shown.
668 KB
Binary file not shown.
772 KB
Binary file not shown.
410 KB
Binary file not shown.
202 KB
Binary file not shown.

Diff for: WebContent/WEB-INF/springmvc-servlet.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<beans xmlns="http://www.springframework.org/schema/beans"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns:context="http://www.springframework.org/schema/context"
6+
xmlns:mvc="http://www.springframework.org/schema/mvc"
7+
xsi:schemaLocation="http://www.springframework.org/schema/beans
8+
http://www.springframework.org/schema/beans/spring-beans.xsd
9+
http://www.springframework.org/schema/context
10+
http://www.springframework.org/schema/context/spring-context.xsd
11+
http://www.springframework.org/schema/mvc
12+
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">
13+
14+
<context:component-scan base-package="com.practicasspringbootstrap.controller"></context:component-scan>
15+
<context:annotation-config />
16+
17+
<!-- <mvc:resources location="/WebContent/WEB-INF/resources/**" mapping="/WebContent/WEB-INF/resources/**"/> -->
18+
19+
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
20+
<property name="prefix" value="/WEB-INF/views/"></property>
21+
<property name="suffix" value=".jsp"></property>
22+
</bean>
23+
24+
</beans>

Diff for: WebContent/WEB-INF/views/Formulario.jsp

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<%@ page language="java" contentType="text/html; charset=UTF-8"
2+
pageEncoding="UTF-8"%>
3+
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
4+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5+
<html>
6+
<head>
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
9+
<title>${Titulo}</title>
10+
</head>
11+
<body>
12+
<div class="container">
13+
<div class="rows">
14+
<div class="col-lg-6 col-md-6">
15+
<h1>${Titulo}</h1>
16+
<form:form method="POST" action="irFormularioResult">
17+
<div>
18+
<form:label path="nombre">Ingrese el Nombre: </form:label>
19+
<form:input class="form-control" path="nombre" placeholder="First Name"/>
20+
</div>
21+
<div>
22+
<form:label path="apellido">Ingrese el Apellido: </form:label>
23+
<form:input class="form-control" path="apellido" placeholder="Last Name"/>
24+
</div>
25+
<div>
26+
<form:label path="correo">Ingrese el Correo Electronico: </form:label>
27+
<form:input class="form-control" path="correo" placeholder="[email protected]"/>
28+
</div>
29+
<div>
30+
<form:label path="password">Ingrese la Password: </form:label>
31+
<form:password class="form-control" path="password" placeholder="Password"/>
32+
</div>
33+
<div>
34+
<form:label path="direccion">Ingrese la Direccion: </form:label>
35+
<form:input class="form-control" path="direccion" placeholder="Address"/>
36+
</div>
37+
<div>
38+
<form:label path="mensaje">Ingrese algun Comentario: </form:label>
39+
<form:textarea type="textarea" class="form-control" path="mensaje" placeholder="Maximo 400 caracteres"/>
40+
</div>
41+
<p>
42+
<div>
43+
<input class="btn btn-outline-primary" type="submit" value="Enviar Formulario"/>
44+
</div>
45+
</p>
46+
</form:form>
47+
</div>
48+
</div>
49+
</div>
50+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
51+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
52+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
53+
</body>
54+
</html>

Diff for: WebContent/WEB-INF/views/FormularioResult.jsp

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<%@ page language="java" contentType="text/html; charset=UTF-8"
2+
pageEncoding="UTF-8"%>
3+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4+
<html>
5+
<head>
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
8+
<title>Formulario</title>
9+
</head>
10+
<body>
11+
<h1>Formulario</h1>
12+
<div>
13+
Los datos del Formulario fueron:
14+
</div>
15+
<div>
16+
<p>
17+
<ul>
18+
<li>Nombre: ${Nombre}</li>
19+
<li>Apellido: ${Apellido}</li>
20+
<li>Correo: ${Correo}</li>
21+
<li>Password: ${Password}</li>
22+
<li>Direccion: ${Direccion}</li>
23+
<li>Mensaje: ${Mensaje}</li>
24+
</ul>
25+
</p>
26+
</div>
27+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
28+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
29+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
30+
</body>
31+
</html>

Diff for: WebContent/WEB-INF/views/MostrarProductos.jsp

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<%@ page language="java" contentType="text/html; charset=UTF-8"
2+
pageEncoding="UTF-8"%>
3+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
4+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5+
<html>
6+
<head>
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
9+
<title>Mostrar Productos</title>
10+
</head>
11+
<body>
12+
<h2>Lista de Productos</h2>
13+
<div class="container">
14+
<div class="rows">
15+
<div class="col-lg-6 col-md-6">
16+
<table class="table table-bordered table-striped table-hover">
17+
<thead>
18+
<tr>
19+
<th>ID: </th>
20+
<th>Nombre: </th>
21+
<th>Marca: </th>
22+
<th>Precio: </th>
23+
</tr>
24+
</thead>
25+
<tbody>
26+
<c:forEach items="${datos}" var="dato">
27+
<tr>
28+
<td>${dato.idProducto}</td>
29+
<td>${dato.nombreProducto}</td>
30+
<td>${dato.marcaProducto}</td>
31+
<td>${dato.precioProducto}</td>
32+
</tr>
33+
</c:forEach>
34+
</tbody>
35+
</table>
36+
</div>
37+
</div>
38+
</div>
39+
40+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
41+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
42+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
43+
</body>
44+
</html>

Diff for: WebContent/WEB-INF/views/OperacionesResult.jsp

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<%@ page language="java" contentType="text/html; charset=UTF-8"
2+
pageEncoding="UTF-8"%>
3+
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
4+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5+
<html>
6+
<head>
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
9+
10+
<title>${Titulo}</title>
11+
</head>
12+
<body>
13+
<div class="container">
14+
<div class="rows">
15+
<div class="col-lg-6 col-md-6">
16+
<h1>${Titulo}</h1>
17+
<form:form action="irResultado${Titulo2}" method="POST">
18+
<div>
19+
<form:label path="numero1">Ingrese el Numero 1: </form:label>
20+
<form:input class="form-control" path="numero1"/>
21+
</div>
22+
<div>
23+
<form:label path="numero2">Ingrese el Numero 2: </form:label>
24+
<form:input class="form-control" path="numero2"/>
25+
</div>
26+
<div>
27+
<input class="btn btn-outline-success" type="submit" value="${Titulo2}"/>
28+
</div>
29+
</form:form>
30+
</div>
31+
</div>
32+
</div>
33+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
34+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
35+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
36+
</body>
37+
</html>
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<%@ page language="java" contentType="text/html; charset=UTF-8"
2+
pageEncoding="UTF-8"%>
3+
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
4+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5+
<html>
6+
<head>
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
9+
<title>${Titulo}</title>
10+
</head>
11+
<body>
12+
<div class="container">
13+
<div class="rows">
14+
<div class="col-lg-6 col-md-6">
15+
<h2>${Texto}</h2>
16+
<form:form method="POST" action="${Texto}">
17+
<div>
18+
<form:label path="idProducto">ID del Producto </form:label>
19+
<form:input cssClass="form-control" path="idProducto" readonly="true"/>
20+
</div>
21+
<div>
22+
<form:label path="nombreProducto">Ingrese el Nombre del Producto </form:label>
23+
<form:input cssClass="form-control" path="nombreProducto" />
24+
</div>
25+
<div>
26+
<form:label path="marcaProducto">Ingrese la Marca del Producto</form:label>
27+
<form:input cssClass="form-control" path="marcaProducto"/>
28+
</div>
29+
<div>
30+
<form:label path="precioProducto">Ingrese el Precio del Producto</form:label>
31+
<form:input cssClass="form-control" path="precioProducto"/>
32+
</div>
33+
<p>
34+
<div>
35+
<input class="btn btn-outline-success btn-block" type="submit" value="${Texto}"/>
36+
</div>
37+
</p>
38+
</form:form>
39+
</div>
40+
</div>
41+
</div>
42+
43+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
44+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
45+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
46+
</body>
47+
</html>

0 commit comments

Comments
 (0)