Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

6.4. Setting Bean Properties

If a bean property is writable (write-only or read/write access), you can set the value using another standard action: <jsp:setProperty>. Table 6-2 shows a bean that is similar to the CartoonBean used in the previous example, but that also has a writable property named category.

Table 6-2. Properties for com.ora.jsp.beans.motd.MixedMessageBean
Property name Java type Access Description
category

String

Write The message category, either thoughts or quotes
message

String

Read The current message in the selected category



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial