Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to use applet with portlet in liferay?

Hello Guys Below code will help you to build java applet in liferay portlet. Write below code in view.jsp : <applet name="Demo" id="Demo" code="com.AppletDemo" codebase='<%= themeDisplay.getCDNBaseURL()+"/PortletName" %>' width="450" heig

How to print a java array using Arrays.toString

An Array is a collection of data of similar data type. We can use Arrays.toString(array_name) to print a java array. Arrays.toString() return a String for a given set of elements specified in brackets([]) and, the elements are separated with comma(

How to resolve permissions issue in Portlet ajax request

In Liferay when we try to do portlet ajax call from view.jsp, we get the issues like permission required or not able to pass the values when trying to pass parameters in ajax call. To resolve this issue we need to provide permissions. So for this w

How to swap two variables in one line in C?

How to swap two variables in one line in C? C program to swap two variables in single line #include <stdio.h> void main() { int a = 5; int b = 10; (a ^= b), (b ^= a), (a ^= b); printf("Swapped values of a and b are %d %d",a,

Program in C to print your message without using semicolon

Program: You can print your message in C with using a semicolon. Let see how? e.g. Let us print the message Welcome in C. There is three ways: 1. Using switch: #include<stdio.h> void main(){ switch(printf("Welcome"))

How to create Geo Location coding in android

Geocoding is the process of finding the geographical coordinates of the given location, So if you looking help to create Geo Location function see code example below. Here I have created edit text using place name for users. When User enters any plac

How to make use of RecyclerView to show the chats between two people in your app?

If your app wants to show the chats between you n your friend then you can make use of RecyclerView. Here in the layout that is being inflated in RecylerView, I have used the visibility concept that the layout consists of two major layouts one layou

How to make Linkify function in android

Using below code i have created Linkify function. Here I have created MainActivity class and In main.xml layout I have added Text View property. Below code will clearly described you how to make Linkify function. Step(1)-Create MainActivity- publi

How To Use ClassPathXmlApplicationContext

ClassPathXmlApplicationContext :- This can load the beans configuration file and To create and initialize all the beans inside the configuration file.you need not to provide the full path of the XML file but you have to set CLASSPATH properly becaus

How to use trim() Function in php ?

Why we use trim() Function in php ? The trim() function mainly use for removes the spaces from the beginning and the end of the string. trim() function will divest and control characters such as : " " an ordinary space. "\t" a tab. "\n"

1 … 111 … 133
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: