Questions tagged as 'servlets'

0
answers

How to send 2 send to a servlet by the post method

I wish I could get your help! I'm wanting to load a grid and a drop-down list on my HTML page, I'm doing it from javascript but having a servlet as a controller since it's a didactic project, the problem arises when I have a switch with the flag...
asked by 05.11.2018 / 03:51
0
answers

Avoid double logging on my website with session in java

I have a web page that manages logeo and full CRUD of the users satisfactorily, all managed with java session. As a new requirement I have been told that users can only have a single session started. I have been looking at possible solutions,...
asked by 04.10.2018 / 16:13
0
answers

Why add servlet to web.xml?

Friends I'm working with java netbeans, I have a doubt because when creating a servlet, it has to be added to the web.xml? What happens if I do not add it? I'm working on a local machine with my own local bd.     
asked by 18.09.2018 / 21:36
0
answers

How can I predefine a data in a form (java Web)?

Hello, I have a problem when making a form to insert a user, as this one is related to a user type table, which user type has a description which are (Administrator and User) and I do not want to show it when filling the view and I want the user...
asked by 09.09.2018 / 06:28
0
answers

How can I pass a controller variable to a jsp?

I have the following method in which I recover values, and I do an operation with these values, what I want to do is send my variable total to jsp, 'because I want to validate with that value, and for example, if my variable total...
asked by 10.09.2018 / 22:15
0
answers

Servlet and XSSF workbook

I have a problem writing in the return flow of the servlet, it reads the file and I can modify it, but at the time of returning it shows me in my browser that if I want to save a binary file and it does not give me a name, On the other hand, if...
asked by 25.07.2018 / 02:08
1
answer

Get value of an attribute of an object and put it in a variable in jsp

I need to get the value of an attribute of an object (user.estado) and put it inside a variable (state) of JSP and then make if statements depending on that variable. Here the code. <tbody> <tr>...
asked by 20.07.2018 / 18:36
0
answers

Servlet: request.getReader () null in the GET method

I have a Servlet that reads the Form with getReader () but for some reason it returns null. HTML: body> <form action="Controlador"> Hotel: <!--<input type = "submit" value = "Submit" />-->...
asked by 21.07.2018 / 19:10
0
answers

Error with FacesContext.getCurrentInstance (). getExternalContext (). getSessionMap ()

Hello friends of the community. I am very new and I have a doubt. Inside a Servlet I have a message that I have to receive in a Java Class Controller to display it visually. From the servlet I send it with the following code: FacesContex...
asked by 06.07.2018 / 23:41
1
answer

Form info to Servlet and JSP - java

I've been stuck for a few days and I can not move forward. I collect data from a form in SERVLET . I create a ArrayList where I will save the objects that will be created with the fields received through the form I pass the...
asked by 29.06.2018 / 19:32