
Search In
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
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(
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?
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:
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"))
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
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
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
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
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"
