Questions tagged as 'java-ee'

1
answer

Multiple projects using a single "properties" file

I have a product that is distributed in several independent MAVEN WEB projects that access a single MYSQL database. I decided to split it into several projects so that each module stays on a different server, dividing the load. And also because...
asked by 15.04.2014 / 16:52
1
answer

How to decrypt encrypted e-mail on SHA-256?

I am encrypting an email and saving it in the database, how do I decrypt the same email that was encrypted. Follow the code I used to encrypt. public String getEmailCriptografado(String email){ email = email.toLowerCase(); email = N...
asked by 02.03.2016 / 19:17
1
answer

Using val () in script causes me to lose line breaks

I have a problem. I'm implementing a chat page using the following script: <script> $(document).ready(function(){ $("#enviar").click(function(){ var mensagem = $("#campodetexto").val();...
asked by 17.11.2014 / 19:01
2
answers

Loop counter is not increasing

I'm having a hard time finding the error in a logic that I use for to traverse an arraylist. List<Caneta> canetas = new ArrayList<>(); canetas.add(c1); canetas.add(c2); System.out.print(Arrays.toString(canetas.toArray()))...
asked by 26.09.2017 / 21:31
1
answer

How to understand the error message?

How do you understand this error message? mai 20, 2015 8:25:59 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute ADVERTÊNCIA: /pages/produtoCadastro.xhtml @80,49 actionListener="#{fileuploadBean.upload}": java.lang.NullPointerException...
asked by 21.05.2015 / 01:27
2
answers

Referencing CSS in jsp through $ pagecontext.request.contextpath in tomcat8 does not work

I'm using tomcat 8. My css and js files do not load into jsp through the $ pagecontext.request.contextpath in tomcat8. I can only load the css if I put the absolute path from the webapp directory. Ex (pages / css / style.css). The project str...
asked by 24.07.2015 / 02:06
1
answer

Refresh page re-inserts

I'm starting web development with java and I'm doing some testing and I came across the following situation, I created a form that loads a list based on every click of the button, however, when I refresh the page I still load the list with the l...
asked by 26.08.2016 / 18:56
1
answer

Vraptor: route conflict

I'm developing a news system for a client, and I'm going through a difficulty, the moment I'm going to record the news in the bank, the following message appears:   POST: [FixedMethodStrategy: / news / {latestListlist} plus [POST]], [FixedMet...
asked by 19.08.2015 / 18:26
1
answer

Search bank using JSF

I'm programming an application in JSF, my application manages to do Record and Change with no problem, however as I'm using Java web technology I'm now finding it rather difficult to perform a search and bring the data to a DataTable , would any...
asked by 30.09.2014 / 12:23
1
answer

For does not scroll through the entire list

I have a problem scrolling through a list. My for looks like this: for (int i = 0; i < listaCaixaAbertos().size(); i++) { listaCaixaAbertos().get(i).setFechado(Boolean.TRUE); salvar(listaCaixaAbert...
asked by 01.02.2018 / 18:48