In common practice, a new AEM website is generated using the AEM Project
Archetype. https://github.com/adobe/aem-project-archetypeIn the example
editable template template. That's right, a template that you can make
templates with. After building your newly project via AEM Project
Archetype, you will find yourself a full width template under
/libs/wcm/core/content/sites/templates.html/conf, for practice, try
creating new templates in this section from the UI, and this does not
require any coding...
It really depends on the JAVA library you are using. Take some time to
Google Java docs that correspond to the Java library you are
using.Assuming that you are using the org.json library, you can call on
the size method, for example: import org.json.simple.JSONArray; import
org.json.simple.JSONObject; ... JSONArray array = new JSONArray();
array.add("e-mail: firstname.lastname@example.org"); array.add("phone:
9848022338"); array.add("city: Hyderabad"); array.add("Area: Madapur");
You might want to set up something called health checks on your website.
Health checks are generally operated with an external monitoring service
or container orchestrator to check the status of an app, such as getting
a 200OK response from a website URL. Check with your dev opts team to
get this setup.
Making sure you are encoding your strings as UTF-8 in Java should solve
the trick. Encoding With Commons-Codec
1.14 String rawString = "Welcome to
Progress - Image Film"; byte bytes =
StringUtils.getBytesUtf8(rawString); String utf8EncodedString =
StringUtils.newStringUtf8(bytes);What is UTF-8? UTF-8 is a
variable-width character encoding used for electronic communication.
Defined by the Unicode Standard, the name is derived from Unicode
Transformation Format – 8-...