Questions tagged as 'jsp'

2
answers

Using JSP and JAVA

I'm starting to mess with JSP. But I've been using JAVA for some time. I have the index.jsp file which is my page and I have my indexJava.java which is the program itself. I would like to know how I can unite the two. For example, when I clic...
asked by 26.06.2014 / 17:16
1
answer

How to make a multilingual website and identify the country of origin?

I am developing a website in JavaEE and would like it to be multilingual (at least English, Portuguese and Spanish). But I would like to know how large websites, such as Facebook, for example, do to identify the country of origin and offer the s...
asked by 31.08.2014 / 06:38
1
answer

Get File Size in Bytes in Java Script

I'm validating the attached file size on my page before upload using the following code: var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size); if(tamanhoArquivo > 2097152){ //MAX_FILE_SIZE = 2097152 Byte...
asked by 26.11.2014 / 15:09
1
answer

Input loading Modal data

Good afternoon! I'm trying to make a modal to fetch the products and assign them to the input. Idea: When I click on the input, it opens the modal. Then I choose the product in the modal and it loads the input with the data of the chosen product...
asked by 11.10.2016 / 18:46
1
answer

Link does not send parameters and redirects to Servlet

I placed in my index page where I have three links one with the name of T-shirts, Bermudas and Pants in which% I put% so that when I clicked the link it was redirected to the servlet and sent the parameters according to the link, but that does n...
asked by 01.11.2017 / 20:48
1
answer

How to use redirect methods with Java Servlets

Hello, I have a server_server.jsp page with a form that when submitted goes to ServletInsertOrderService that inserts the form data into the database. I am trying to cause that when the data is entered, the browser returns to the server_ser...
asked by 09.05.2015 / 17:23
1
answer

dynamic path out of context in servlet

To get the dynamic path within the project is easy, just run the code: String path = this.getServletContext().getRealPath(""); Here it is returned: /home/pedro-pazello/development/servers/apache-tomcat-7.0.42/wtpwebapps/img_uploader/...
asked by 23.02.2014 / 16:45
2
answers

Use Bootstrap for Multiselect Dropdown with Checkbox

I found this site: ( link ) a code that uses Bootstrap to assist in creating a multi-checkable list with checkbox. The problem is that if I open the code directly in the browser it works perfectly, be it in .php, .html, .jsp, whatever. And wh...
asked by 26.06.2017 / 05:39
1
answer

How to pass the value of one variable in the JSP to another in Javascript?

I'm trying to set the value of a variable inside a script tag with JSP expression language. I tried this way to check if the value was not empty: <c:if test="${!empty newsletter.id}"> <script> $(function(){ alert(...
asked by 08.05.2015 / 18:18
1
answer

Error running function for the second time

Inside the controller I have this function: public void salvaEncaminhamento() { Integer qtdEncaminhamento = 0; if (manifestacao.getTbEncaminhamentoCollection() != null) { qtdEncaminhamento = manifestacao.getTbEncaminhamentoCol...
asked by 04.09.2017 / 19:14