File tree Expand file tree Collapse file tree 6 files changed +51
-36
lines changed
java/com/mycompany/DocumentosJSP Expand file tree Collapse file tree 6 files changed +51
-36
lines changed Original file line number Diff line number Diff line change 197
197
/ExpresionesJSP /target /
198
198
/ScriptletsJSP /target /
199
199
/DeclaracionesJSP /target /
200
+ /DocumentosJSP /target /
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <jsp : root xmlns : jsp =" http://java.sun.com/JSP/Page" version =" 2.0" >
4
+
5
+ <jsp : directive .page contentType =" text/html" pageEncoding =" UTF-8" />
6
+
7
+ <!-- Uso de declaraciones-->
8
+ <jsp : declaration >
9
+ private int contadorVisitas = 1;
10
+ </jsp : declaration >
11
+
12
+ <html >
13
+ <body >
14
+ <h1 >Ejemplo de un documento JSPX</h1 >
15
+
16
+ </body >
17
+ <!-- Ejemplo de salida de texto-->
18
+ <jsp : text >Saludos desde un documento JSPX</jsp : text >
19
+ <br /><!-- comment -->
20
+ <!-- Eejmeplo de Expresion con JSPX -->
21
+ Resultado de la Multiplicacion 3 * 3: <jsp : expression > 3*3</jsp : expression >
22
+ <br />
23
+ <jsp : scriptlet >
24
+ String nombreAplicacion = request.getContextPath();
25
+ </jsp : scriptlet >
26
+ Nombre de la aplicacion: <jsp : expression > nombreAplicacion</jsp : expression >
27
+ <br />
28
+ Contador de visistas:
29
+ <jsp : expression >this.contadorVisitas++</jsp : expression >
30
+ </html >
31
+ </jsp : root >
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html >
3
3
< head >
4
- < title > Start Page </ title >
4
+ < title > Ejemplo de documentos JSP </ title >
5
5
< meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 ">
6
6
</ head >
7
7
< body >
8
- < h1 > Hello World!</ h1 >
8
+ < h1 > Ejemplo de documentos JSP</ h1 >
9
+ < a href ="documentosJSP.jspx "> Link al JSPX</ a >
9
10
</ body >
10
11
</ html >
Original file line number Diff line number Diff line change @@ -2994,9 +2994,24 @@ Numeration | File | Link | Folk | Code | Version | S
2994
2994
2995
2995
## Documentos con JPSX
2996
2996
2997
+
2998
+ ```xml
2999
+ <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
3000
+
3001
+ <jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/>
3002
+
3003
+ <!-- any content can be specified here, e.g.: -->
3004
+ <jsp:element name="text">
3005
+ <jsp:attribute name="lang">EN</jsp:attribute>
3006
+ <jsp:body>Hello World!</jsp:body>
3007
+ </jsp:element>
3008
+
3009
+ </jsp:root>
3010
+ ```
3011
+
2997
3012
Numeration | File | Link | Folk | Code | Version | State | Download | Go back |
2998
3013
|:----------:|:------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|
2999
- |F25 | [Documentos con JPSX](https://github.com/BrianMarquez3/Learning-Java/tree/main/DeclaracionesJSP ) | <img src="https://media.giphy.com/media/YIW8ZTQHpcWjaDzyAr/giphy.gif" width="17px"> | ✔️ | yes | yes | ✔️ | 💾 | [⬅️Atras](#Servlets-y-JSP) |
3014
+ |F25 | [Documentos con JPSX](https://github.com/BrianMarquez3/Learning-Java/tree/main/DocumentosJSP ) | <img src="https://media.giphy.com/media/YIW8ZTQHpcWjaDzyAr/giphy.gif" width="17px"> | ✔️ | yes | yes | ✔️ | 💾 | [⬅️Atras](#Servlets-y-JSP) |
3000
3015
3001
3016
3002
3017
You can’t perform that action at this time.
0 commit comments