A quick and practical guide to accessing session attributes in Thymeleaf.
Search Results for: setattr
Reading a JSP Variable From JavaScript
Explore several approaches to accessing a JSP variable from JavaScript.
Calling JMX MBean Method From a Shell Script
Learn how to access MBeans from a shell script.
Map a JSON POST to Multiple Spring MVC Parameters
Learn how to deserialize a JSON POST into multiple strongly-typed parameters.
Pretty-Print XML in Java
Learn two approaches to pretty-print an XML file in Java
Check if a User Is Logged-in With Servlets and JSP
Learn how to use Servlets and JSPs to ensure a user is authenticated and has started a valid session before accessing any resources.
Simulate touch Command in Java
A quick and practical guide to mimicking “touch” behavior in Java.
Introduction to Servlets and Servlet Containers
Learn the concepts around servlets, their containers, and a few essential objects they revolve around.
How To Get Cookies From the Apache HttpClient Response
Learn how to retrieve and set cookies from Apache’s HttpClient response
Difference Between request.getSession() and request.getSession(true)
Understand the difference between calling HttpServletRequest#getSession() and HttpServletRequest#getSession(boolean).
How Can I Resize an Image Using Java?
Learn how to resize (scale) an image using Java.
Spring MVC Data and Thymeleaf
Learn the several ways that Spring MVC and Thymeleaf can work together to render data.
Spring MVC Themes
Learn how to apply and manage themes with Spring MVC
Convert XML to HTML in Java
Learn several ways to convert XML to HTML in Java.
Implementing the Oauth 2.0 Authorization Framework Using Jakarta EE
This article shows an example of implementing the OAuth2 Authorization Framework using Java EE and MicroProfile.
Modifying an XML Attribute in Java
Learn how to modify attributes in an XML document using Java with JAXP, dom4j, and jOOX
Spring Session with MongoDB
Learn how to manage Spring Sessions with MongoDB.
Intro to OData with Olingo
Learn how to implement a simple OData service using the Apache Olingo library.
Introduction to Tensorflow for Java
A quick and practical overview of Tensorflow for Java
A Java Web Application Without a web.xml
Learn how to use the Java Servlet 3.0 annotations instead of a web.xml file