Emi Lu wrote:
I got why: I have to name the same property file name as the action
class. Rename "package.properties" to ProcessInfo.properties, I got
correct result.
I just wonder isn't "package.properties" is recognized automatically?
May I know how to use "package.properties" to display getText() in jsp
please?
More testing results are:
(1) Action class can recognize both "ProcessInfo.properties" and
"package.properties"
(2) JSP recognized "ProcessInfo.properties"
(3) but I do not know how jsp can recognize "package.properties"?
You're mis-understanding how the text is retrieved from the JSP: the JSP
is calling the action's getText(...) method.
Are you accessing the JSP directly, or through an action?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org