aspose file tools*
The moose likes Struts and the fly likes bean:message with bean:write Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean:message with bean:write" Watch "bean:message with bean:write" New topic
Author

bean:message with bean:write

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
Hi,
I want to display the bean:write property according to I18N.
So I thought to write:

Will it work?
or what is the way to do it?
(I know which values I can get in subscription name property and declared all of them in I18N file.)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

will it work?

*Did* it work?

I'm guessing no; that's not legal JSP--you can't nest tags like that. You might be able to use JSP 2 EL to do what you want, similar to:


Obviously this would only work in a 2+ container.
Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
What is the JSP 2 EL and what is container 2+?
Will it work with <%=subscription.name %> as well?
[ December 01, 2008: Message edited by: odelya yomtov-glick ]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

JSP 2 EL is the *E*xpression *L*anguage use in JSP 2.

JSP 2 is a JEE standard implemented by some application servers.

I don't know if you could use an rtexpr there; you might need to use the -rt version of the tag libraries. Personally I'd aim for the JSP 2 route first if your app server supports it.
 
 
subject: bean:message with bean:write