aspose file tools*
The moose likes Struts and the fly likes Struts 1:in the bean:write tag, can Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1:in the bean:write tag, can "name" even refer to an attribute name, instead of a bean name ?" Watch "Struts 1:in the bean:write tag, can "name" even refer to an attribute name, instead of a bean name ?" New topic
Author

Struts 1:in the bean:write tag, can "name" even refer to an attribute name, instead of a bean name ?

Daud Miyan
Greenhorn

Joined: Jul 07, 2010
Posts: 23
I posted it in the wrong forum, so repeating it here..

Struts 1

In the documentation, the "name" inside a tag is mentioned to be the name of the bean whose property has to be printed. If the property isn't mentioned, the value of the bean itself is printed. But if I set an attribute in the Action class like :

and in the JSP say :

I get "hello" even though "dda" is not the name of any bean. Why does that happen ? And what is meant by "bean itself is printed" ? Is its object's hashcode rendered ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1:in the bean:write tag, can "name" even refer to an attribute name, instead of a bean name ?