Skip to main content

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

The old company comeup with new brand MAXBEN - Logo meaning

I am so happy to design this logo for my friend Suresh Mahalingam to boost his paint business to the next level. The first step in his process is logo design. He had a clear idea about his business, processes, pricing and target audience. I just collect all those information from him and created the logo with some appropriate meanings. Check out the logo here