I was trying to understand the usage of jsp tags in struts.
Here are the rules for attribute usage for instance consider the following <jsp:useBean id="mybean" class="com.xxx.yyy.mybeanclass" property="myproperty"
scope="request" > :
1. id is used to define a bean
2. name is used to refer to an existing bean (the value is either the value of an id attribute in a previous tag, or is found in application, session, request, or page scope)
3. property is used to select a property from a bean
4. scope tells which scope to search for the bean. If scope is not specified then the bean is searched for in page, request, session and application order)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment