Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jweb-001
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pedro Rolon
jweb-001
Commits
e331f773
Commit
e331f773
authored
Nov 16, 2018
by
Pedro Rolon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se solucionó el problema por el cual no mostraba las imágenes
parent
a539d18a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletions
+36
-1
jweb-e001/WebContent/WEB-INF/web.xml
+35
-0
jweb-e001/src/servlets/Poker.java
+1
-1
No files found.
jweb-e001/WebContent/WEB-INF/web.xml
0 → 100644
View file @
e331f773
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation=
"http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version=
"3.1"
>
<display-name>
jweb-e001
</display-name>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
default.html
</welcome-file>
<welcome-file>
default.htm
</welcome-file>
<welcome-file>
default.jsp
</welcome-file>
</welcome-file-list>
<servlet-mapping>
<servlet-name>
default
</servlet-name>
<url-pattern>
*.html
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
default
</servlet-name>
<url-pattern>
*.jpg
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
default
</servlet-name>
<url-pattern>
*.png
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
default
</servlet-name>
<url-pattern>
*.css
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
default
</servlet-name>
<url-pattern>
*.js
</url-pattern>
</servlet-mapping>
</web-app>
\ No newline at end of file
jweb-e001/src/servlets/Poker.java
View file @
e331f773
...
...
@@ -31,7 +31,7 @@ public class Poker extends HttpServlet {
String
palo
=
request
.
getParameter
(
"palo"
).
toLowerCase
();
String
valor
=
request
.
getParameter
(
"valor"
).
toLowerCase
();
String
rutaImagen
=
this
.
getServletContext
().
getRealPath
(
"/imagenesCartas/"
+
valor
+
palo
+
".png"
)
;
String
rutaImagen
=
"imagenesCartas/"
+
valor
+
palo
+
".png"
;
System
.
out
.
println
(
rutaImagen
);
PrintWriter
respuesta
=
response
.
getWriter
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment