Questions tagged as 'jsp'

1
answer

Why do I get error with glassfish and netbeans?

And I really do not know what's wrong. This is the code: index.html <!DOCTYPE html> <html> <head> <title>Todo supply a tittle</title> <meta charset="UTF-8"> <met...
asked by 20.08.2018 / 06:39
1
answer

java.lang.UnsupportedOperationException: Not supported yet

When trying to run a web application in java I get that error, what is the reason? Servlet (Comics): package controller; import java.io.IOException; import java.io.PrintWriter; import javax.ejb.EJB; import javax.servlet.ServletException; i...
asked by 09.07.2018 / 04:24
2
answers

Session variables only work in the development environment (JSP)

I am developing a website with JavaServer Pages and I am facing the following problem: The page works correctly where I am developing (use NETBEANS for it). At the moment of giving " Run Project '" the page receives the session variables very...
asked by 11.07.2018 / 02:16
3
answers

I need to list an arrayList in java, but only list the first element of my array

I need to list an array to show it in a table (specifically the user table with its attributes), I'm using JSTL to show the data in the JSP, the only problem is that it only lists the first object of my ArrayList, here I leave the code of the fu...
asked by 18.07.2018 / 18:18
1
answer

How can I make it so that sesion.setAttribute ("Surnames", dbapellidos); take me two last names

I have a class in which I get two surnames from a database; dbapellidos=rs.getString("Apellidos"); but I want to pass it to a jsp page through session sesion.setAttribute("Apellidos", dbapellidos); and when I get it on the page, I only...
asked by 24.05.2018 / 10:41
2
answers

pass value from a java class to a jsp

I would like to know how I can pass the value of a variable from a java class to a jsp. public void ValidateUser (String user, String password, HttpServletRequest request) { try { Connection conexion=null; PreparedStatem...
asked by 21.05.2018 / 13:43
1
answer

Get file names in a directory with JSP

I have a Web system in which I have a folder with files and what I'm trying to do is bring the names of the files into that folder. Command to call a JSP from JS : getUrlJsonObject({ href:pathcamp+'getNamesDocs.jsp', method:"GET",...
asked by 26.04.2018 / 01:03
1
answer

I need to make a user validation in a JSP Login with Servlet

if(bte.equals("ENVIAR")){ if(g.alta(p)){ validar="Error al registar"; }else{ validar = "Registro Insertado"; } }//registrar By pressing the blank send button without fie...
asked by 16.04.2018 / 03:55
1
answer

Increase JSTL value

I have a table that shows the values of a select. Each field is accompanied by a numerical value that refers to each of the lines that the table has. But I'm not able to make them grow. <tbody> <c:set var = "contador" value = "1" s...
asked by 19.03.2018 / 09:20
1
answer

Access external image RichFaces

I have a giant problem at work, hehe. It turns out that we work with RichFaces, JSP, Java. I must access and show in JSP an image that is hosted in the root of the hard drive, but I can not find the way to place the correct route and it does...
asked by 05.04.2018 / 17:56