DSP Import bean - ATG

Student_01.properties

$class=<student class path>
name="Name of the student"

Display.jsp

<dsp:importbean bean="/samples/Student_01" var="student"/>
My name is <c:out value="${student.name}"/>

Output is:

My name is Name of the student

Explanation

We can call the name parameter from properties file "name" parameter. To import all the bean values, use <dsp:importbean> tag, then store the bean to the local variable "student". Now we can access all the values through the local variable "student". Example: ${student.name}

Popular posts from this blog

What are EAR, JAR and WAR files in J2EE?

ATG Issue - ConcurrentUpdateException - on BCC Deployment

How the competition helps to reduce the price of TEA?