Questions tagged as 'servlet'

1
answer

Webservice consumed via servlet error 500 JBoss AS 7

Talk, guys! I have a project, which I decided to split in two: a core and a web. The core uses CDI with all persistence and business rules, exposing its functionality via REST and JSon webservices. Already the web project is just the html, wi...
asked by 23.05.2015 / 03:06
1
answer

AngularJs - Problems with accentuation

I'm getting strings in servlet with accent problems. Like for example: Send $scope.nome = "Pé" to servlet . In servlet line: String nome = request.getParameter("nome"); does not receive Pé and yes PÃc...
asked by 22.07.2016 / 18:57
1
answer

Doubt with JavaEE sessions

Is it possible to get a list of open sessions ? Not the amount (sessionlistener), but the sessions themselves so I can find values in their attributes.     
asked by 28.11.2014 / 20:45
0
answers

Extract the contents of a JSP page to a String in a servlet or Java class

Good afternoon, I would like to check if anyone knows how to extract the contents of a JSP page to a String. Example: I have a JSP page with HTML content, I want to pass this HTML content to a String in the Java language, so I can send thi...
asked by 12.03.2018 / 19:47
0
answers

How to differentiate the sessions in the browser tabs?

In a web application implemented in Java using JSP and Servlets, if I store information in the user session, this information is shared from all the tabs of the same browser. How to differentiate sessions from browser tabs? In this example:...
asked by 08.01.2018 / 18:58
2
answers

Passing AJAX parameters

I'm developing a web application and I'm using AJAX and JSP would like that when I register the client data send by parameter to another page the name and the email of the client plus it sends with an error, it even sends the parameters but with...
asked by 29.10.2017 / 02:40
0
answers

How do I make a download on a web page having the files on my computer, outside of my web project? [closed]

I need to make a web application that the user uploads PDF files and can download them later. The upload part is done, except the files in a folder of my PC /home/william/web . To save the files to my PC, I edited the file server.xml...
asked by 07.11.2015 / 22:14
2
answers

SQL query with error in Java [closed]

I am trying to make a webapp in java, but I am a beginner, in the part of login of the app, I created a routine that receives as parameter an object and performs a search in the database according to the object that contains login = otavio e pas...
asked by 14.11.2014 / 01:20
2
answers

Change class vector size

I have to use the public static String vetor[] = new String [15]; vector in the class ... however this class is used in a servlet. And the size I need the vector is what the user chooses ... how can I pass the parameter that defines the v...
asked by 02.10.2014 / 15:46
3
answers

Determine the page where the * .pdf file will open in the browser

I have a code to display a pdf file: @WebServlet(urlPatterns = {"/teste"}) public class abrirPDF extends HttpServlet { byte[] arquivo = null; File file = new File("C:\testes\teste.pdf"); protected void service(HttpServletRequest...
asked by 19.08.2016 / 20:00