Category "java"

How can I validate two fields like password and confirm password in Struts 2?

I am doing web application in that I want to validate two fields in the JSP form. In registration filed I have so many fields. In that I want to validate passwo

Cordova Android: Can I get any information on underlying Java/HTTP exceptions

I have an Ionic/Cordova Android application that is deployed on various different client internal networks, where the application connects to a http service run

It's seems hibernate ignores allocationSize

I'm trying different hibernate id generation strategies and I've noticed that it seems like hibernate ignores allocationSize. I have the following entity class:

Why casting a very large long number to int gives us a strange output (Java)?

I was practicing some castings in Java and I faced a situation for which I couldn't find any answers, anywhere. There are a lot of similar questions with answer

WebFlux Spring Boot @Transactional with reactive MongoDB

Does WebFlux Spring Boot @Transactional annotation work with reactive MongoDB? I use WebFlux Spring Boot with reactive MongoDB like: id 'org.springframework

Update array object mongoDB

I have an array of objects and would like to update the count of the object where categoryId = "menu2" and subCategoryId = "1". in my mongodb i currently have t

Why one request triggered CORS policy but the other not?

I use the same request func to yield call two api on the server. Model func code: const pomdata = yield call(pullInfo1, payload) const data = yield call(pullinf

Update array object mongoDB

I have an array of objects and would like to update the count of the object where categoryId = "menu2" and subCategoryId = "1". in my mongodb i currently have t

Could not resolve all files for configuration ':app:debugRuntimeClasspath' android studio

I'm new to Android development with Java. I made an app that allows you to log in with Google and Facebook. Everything worked fine until about three days ago wh

Why is JDBC SQLITE TRUNCATE operation throwing an error?

My program throws an error when I try to execute truncate query using JDBC java with sqlite. import java.sql.*; public class sqlTruncate { public static voi

Dynamic heap implementation with insert O(log n)

I'm trying to implement a Min Heap in Java, but between studying the complexity and the actual implementation, I realized that it is not clear to me how O (log

Regular expression to match pattern and text afterwards until that pattern occurs again, then repeat

I'm trying to write a regex for my Kotlin/JVM program that satisfies: Given this line of text {#FF00FF}test1{#112233}{placeholder} test2 It should match: Match

blogger authentication issues in android

I am working on blogger api and i am using this method to request blogger accesstoken, but problem is if user not select Manage your blog option and continue th

why this code isn't working in real-time pleace cheack this code [closed]

this code isn't working in real-time.. it works only whenever I restart/refresh the app. I am using Cloud Firestore. plzz change code am noob

Java Selenium register and handle unexpected notification element

In an effort to make my test project more robust, I'm trying to deal with an issue where an unexpected notification element on the page messes with my interacti

How to wait for the page to load in HtmlUnit not HtmlUnitDriver

I have a selenium code below which wait for the page to load before the action(click button) is performed. How do I do the same thing with HtmlUnit not HtmlUnit

In ASM 9.2 as argument of Inner class constructor, how to differentiate outer class argument (added by compiler) vs written in code?

To access the outer class, if the inner class contains constructors without the outer class reference as an argument, the compiler can add the outer class refer

Convert android.view.Menu to JMenu

I have been using a react-native library react-native-selectable-text that I forked and made small changes to it. Now I want to be able to add some icons to the

UTF-8 encoding java replacement with 3 hex character

My application is receiving data from an endpoint. I do some processing with the received data and insert it into the database. At some point I had a problem wi

Vaadin Grid - specific rows always on top

I have two classes, one named "Folder" and the second one "Item". I'm using an interface to show folders and items together in one Vaadin Grid. I wrote a custom