Categories
How-To Java Reporting

Jasper Report: Print Column Footer only at the last page

Report designer mostly said it’s depended on the way you design the report, of course, it does but for some new or even some years report designers still need example, tips to help too. Here, I take this kind of issue/solution that finally I could make it: “printing a signature footnote to the last table…

Categories
Java Reporting

Jasper Report: Total Pages

To have total pages, you can do two options: On view using $V{PAGE_NUMER} flexible using evaluation time: current page with “Now”, total page with “Report” Create a variable for total page Name: TOTAL_PAGES (or any other) Variable class: Integer Calculation: highest Reset type: report Increment type: page Variable expression: ${PAGE_NUMBER} Then you can use on…

Categories
Java

របៀបបង្កើត Project Spring Boot ជាមួយ JSP

១.​សេចក្តីផ្តើម Spring Boot មានលក្ខណៈងាយស្រួលសម្រាប់កាត់បន្ថយក្នុងការសរសេរកូដបានច្រើន ដោយវារួមមាននូវ Features ដូចតទៅៈ Create stand-alone Spring applications Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files) Provide opinionated ‘starter’ POMs to simplify your Maven configuration Automatically configure Spring whenever possible Provide production-ready features such as metrics, health checks and externalized configuration Absolutely no code generation and no requirement…

Categories
Java

How to create project with MAVEN

I. How to create project in MAVEN There are two ways for create project in MAVEN 1. Normal Java Project Step 1: cmd past below code to command prompt mvn archetype:generate -DgroupId=com.javacambodia -DartifactId=NumberGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Note: DgroupId : name of your package (whatever you want) DartifactId : name of your project Press enter Step 2:…

Categories
Khmer Unicode Reporting

Jasper Report is now Supported Khmer Unicode to Pdf

Thanks for another question on StackOverflow and the answer of user dada67, told us that Jasper added Khmer Unicode supports since version 6.2. I tested now on JasperReport 6.3 library with its existing sample in folder: jasperreports-6.3.0\demo\samples\unicode And now I could see it’s working good enough for Khmer rendering, just still one issue: When we…

Categories
Java NodeJS

Execute NodeJS npm via maven pom.xml [Links]

It might be you are trying to search for “execute command npm.cmd windows via maven pom.xml”, likely you are from Java development environment that mostly love to do with maven. Here, following 3 articles would help, I don’t pick one to showup but there are some options available: 1. Building Frontend as a Part of…

Categories
Java

Solving the recursive Json data generation in Java Spring

Let me presume a quick remark or note on the use of jsonManagedReference, jsonBackReference or JsonIdentityInfo annotation when you will manage to display json data from the entity while working on Spring 3 and Jackson. The work likely in case you need to exchange the data via Json such as developing application with AngularJS and…

Categories
Apache Tomcat

Use Different Server Ports on a Single Tomcat Installation

In some cases, you might want to have only one Tomcat installation but use separate ports to deploy your application. As example case if you want to have the same context name to run on the same server. My solution on this matter, I introduce the port separation on the tomcat server.xml as shown as…

Categories
Java Tools

Update Eclipse failed – Can not remove : eclipse.exe

Use Eclipse Update and got fail An error occurred while uninstalling session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86_64 1.0.0.v20130521-1847 –> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file D:\Apps\eclipse\eclipse.exe failed. Can not remove : D:\Apps\eclipse\eclipse.exe The issue links to permission on file system. According to the post here, two solutions raised but for me, only following solution, the best to…

Categories
Java

Verify Your Java/JDK 1.8 Environment

As developer, sometimes, you need to know quickly if your environment is ready for a JDK after switch or something. Here I take a basic way to check in general, I think most of new developer always want that so I take my Windows environment as example. You need to check your JRE and JAVA_HOME…