Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the use of <bean:message/> tag defined by Bean tag library in Struts framework?
The <bean:message/> tag is a very useful tag that we can employ to retrieve keyed values from a previously defined resource bundle. It also supports the ability to include parameters that can be substituted for defined placeholders in the retrieved string. The <bean:message/> tag has no body and supports 11 attributes:
arg0, arg1, arg2, arg3, arg4, bundle, key, locale, name, property, scope.

Example:
<html>
  <head>
    <title><bean:message key="app.title"/><title>
  <head>
  <body>
  
  </body>
</html>