InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
4.2.2.3: Overview of JSP file content >
4.2.2.3.5: JSP syntax: useBean tag >
4.2.2.3.5.2a: JSP .91 syntax: Accessing bean properties

4.2.2.3.5.2a: JSP .91 syntax: Accessing bean properties

After specifying the <BEAN> tag, you can access the bean at any point within the JSP file. There are three methods for accessing bean properties:

An example:

<!-- The bean declaration -->

<bean name="foobar" type="FooClass" scope="request" >
<param name="fooProperty" value="fooValue">
</bean>

<!-- Later in the file, some HTML content that includes JSP syntax that calls
a method of the bean -->

<p>The name of the row is <%= foobar.getRowName() %>.</p>

Go to previous article: JSP syntax: Accessing bean properties Go to next article: JSP syntax: Setting useBean properties

 

 
Go to previous article: JSP syntax: Accessing bean properties Go to next article: JSP syntax: Setting useBean properties