1.Printing array in java using toString() method: We can use the Arrays.toString() static helper method as follows: St...
Using bootstrap in Liferay 6.2
How to use bootstrap in your webcontent in Liferay6.2 : By default Liferay6.2 the bootsrap is available, if you want to use bootstra...
show Caps Lock message when you enter password field
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <%@ taglib uri="http://alloy....
Updating the webcontent URLS with SQL Query in Liferay
UPDATE lportal.JournalArticle SET content = REPLACE ( content, 'URL', 'Existing URL') where groupid=93620 and articleId=9...
Finding the length of the String in multiple ways
package com.examples.string; public class FindLength { public static void main(String[] args) { // TODO Auto-generated method stub...
Steps To create a fresh Service Builder or rebuild service builder:
1. Delete the “xxx-portlet-service.jar” from docroot/WEB-INF/lib folder 2. Delete all the files and folders inside WEB-INF/classes. 3. ...
Eclipse shortcuts for java developer
generate code: CTRL + SPACE Open list of files: ...