77. What are differences between <bean:message> and <bean:write>

<bean:message>: This tag is used to output locale-specific text (from the properties files) from a MessageResources bundle. 

<bean:message key=”label.search.name”/>

<bean:write>: This tag is used to output property values from a bean. <bean:write> is a commonly used tag which enables the programmers to easily present the data.

<bean:write name=”student” property=”age”/>


11 Responses

  1. Thanks

  2. Examples:
    1.Message tag allows externalzed messages from the ApplicationResources.properties file and to be inserted into the JSP at run time.

    2.Write tag is used to render the value of an object to JSP’s output stream

    It returns the getMarks() value of the Student object.

  3. […] programmers to easily present the data.<bean:write name=”student” property=”age”/> 3 comments September 9th, […]

  4. Fine

  5. […] https://sharat.wordpress.com/2006/09/09/77-what-are-differences-between-beanmessage-and-beanwrite/ Possibly related posts: (automatically generated)Some important links for my referenceGraphics programming using JavaA First Look at Eclipse Plug-In ProgrammingHow-to Change HTTP Respose Header in Sun Java System Web Server […]

  6. name=”student” , student is what?? a jsp file or a java file??

  7. I have noticed you don’t monetize your page, don’t waste your traffic, you can earn extra bucks every month because you’ve got hi quality content.
    If you want to know how to make extra bucks, search for: best adsense
    alternative Wrastain’s tools

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: