How to make text in header tags and images responsive for websites

Background: While building the website, the UI developers often face problems while making the hero image/landing page responsive. If there are header tags such as h1, h2 or a combination of text and images, making them scale according to the window can become a challenge. To achieve this, we start writing media queries and endRead More…

Categories: Website Development
Share:

How to find all logged in users in grails application

In this tutorial we assume that we already have grails application with Spring Security core plugin installed. We will explore how to retrieve currently logged-in users using the SessionRegistry. What is SessionRegistry? Maintains a registry of SessionInformation instances. Inject sessionRegistry as a bean in resources.groovy as follows import org.springframework.security.web.authentication.session.ConcurrentSessionControlStrategy import org.springframework.security.web.session.ConcurrentSessionFilter import org.springframework.security.core.session.SessionRegistryImpl beans =Read More…

Categories: Grails
Share:

Preventing a cycle while creating a tree

Background : In our application we are using a tree structure for representing some logic. The tree may contain another tree as a child node. The requirement was to parse the complete tree ┬ástructure by traversing it. While traversing the tree, if a child node refers to another tree, we have to parse this childRead More…

Categories: Grails
Share: