How do I write out 'username' in JSP within the Struts framework?
[ December 08, 2003: Message edited by: JiaPei Jen ][/qb]<hr></blockquote>
JiaPei,
Glad to help you out.
Even in this case also, you can do the same thing ...
<bean:write name="username" />
just remember this.
whenevr you want to write something in JSP
u should use
1) bean:write tag
if u want to display a property from a bean
u should use-> <bean:write name="BEAN NAME" property="PROPERTY NAME" />
2) if u want to write display some string variables or something lik ethat
just <bean:write name="VARIABLE NAME" /> is enough
3) you want to display something from ApplicationResources.properties,
u shld use
<bean:message key="KEY FROM APPRESOURCES.PROPERTIES"/>
Most of the time, genreally we use above three cases..
Hope that helps!!
[ December 08, 2003: Message edited by: manasa teja ]