Posts by Celina Shigetomi • 71 points
9 posts
-
0
votes0
answers18
viewsQ: Bean Jsonitemreader, xml configuration
My Reader will read a json that comes from a Rest api. The project is configured in xml, IE, the settings are in an xml file, where are the other Beans. I found in the documentation, a bean that…
-
0
votes3
answers1787
viewsA: How to validate empty html fields
I managed to solve it that way: Through a javascript, placing the validation on the button. When calling it, it validates if the fields are filled in, otherwise it does not go to the next step…
-
0
votes3
answers1787
viewsQ: How to validate empty html fields
I need to validate the inputs of a form. I am working with JSP, javascript and html codes. The system is expected to work like this: The person buys and has the purchase steps. In the 1st stasis,…
-
2
votes3
answers950
viewsQ: How to limit the characters of a label?
I’m in an e-commerce project, and I need to display a product name. I’m thinking of using a label for this. The idea is to leave x characters visible, if the title exceeds this number x of…
-
0
votes1
answer2531
viewsQ: How do I get user id in a session?
I am doing a project using jsp and Servlet, I need that when a user logs in, his id is saved in the session, so that with this id, the system knows that this id user is making changes to his data…
-
0
votes2
answers3743
viewsQ: To set a select field with a preset value
I need to have the select field bring me the information that is in <%=addressable.getState()%> in which it returns "SP". In the input for city, I can get the value of…
-
0
votes2
answers113
viewsA: How to limit the amount of addresses a user may have in the database
public void register(Address, User user) throws Classnotfoundexception, Sqlexception{ Connection con = FabricaConexao.getConexao(); //conexão com o banco de dados PreparedStatement comand =…
-
1
votes2
answers113
viewsQ: How to limit the amount of addresses a user may have in the database
I have a database, and I have the user table and the address table. I need to validate somehow so that a user can have at most 5 addresses in the registry. I use the Postgresql database and it is an…
-
3
votes1
answer259
viewsQ: What algorithm is that?
Knowing that: [] denotes an array [A|B] extracts the first element of the array in A and the rest of the array in B [X, Y] ++ [Z] creates a concatenated array [X, Y, Z] [ X || X <- [1, 2, 3, 4],…