Skip to content
Advertisement

Tag: java

Validating strings with Java and NodeJS

vo.getResultFun() and cod returns ‘G’ Java validation NodeJS isEqual Why NodeJS return the callback and Java don’t throws the exception? Answer The result of this js part : is false as the result of this java part: So there are several options : Validator.isNullUndefinedEmpty doesn’t works cod is not strictly equals to ‘G’ The callback function is not called

JHipster Entities Menu is Empty after succeed import-jdl

I have just installed JHipster (VueJS) thru docker image, and I imported jdl file directly form https://start.jhipster.tech/jdl-studio/. And then I ran ./mvnw -P-webpack and also yarn start on the different terminal. Both are works perfectly and app runs on the localhost:8080 thru ./mvnw and also localhost:9000 from npm start. Here is my currentr schemas (From http://localhost:9000/admin/docs) : And here is

What is a good way to pass many parameters to controller?

I have an application on Java (Spring framework) and Javascript (AngularJs framework). There are list of objects in the table and two text fields for filtering this objects. Filtering happens on the server side so I pass these values from text fields to @RestController’s method as params and then to the repository method. Client side: Server side: It’s pretty easy

Create DataObject to hold different types of data as needed

So i recently went from Javascript to Java codebase for an automation framework, when it comes to data supplied to our page object methods we usually used an object in javascript shown as this: I want create the same effect in Java and my solution was creating a DataObject class that used HashMaps for the various different value Types a

Mixing tweetnacl.js with TweetNaclFast (java) for asymmetric encryption

Our project is using asymmetric encryption with nacl.box and ephemeral keys: We presently have node.js apps that then decrypt these messages. We would like the option to use jvm languages for some features. There does not seem to be the richness of established players for tweet-nacl on the jvm but it seems tweetnacl-java https://github.com/InstantWebP2P/tweetnacl-java and its recommended implementation ° tweetnacl-fast

Post DTO to Spring Controller, parameters are null

I am trying to Post a list of strings from my Javascript front end to a Spring Boot Controller, for some reason the post happens, but my values are null. Is there anything obviously wrong with my code? Front end: Wrapper: Controller: Debug – Breakpoint: Answer Annotation requestbody is used for restful applications & modelattribute for web mvc..you are mixing

Java 8 lambda (from javascript example)

I’m learning java from javascript background, and I wonder is it possible to write similar function in Java. Here is an example in javascript: Where getPrice1 and getPrice2 are previously defined functions. Use of calbacks here helps to keep code short. Im not sure is it possible in Java to pass function as argument without declaring additional interfaces. I asked

Advertisement