cannot find symbol MESSAGES_KEY

Hello I have an application in struts, but when I try to compile it (in my Linux console using ANT), I get these error messages:

ant deploy

Buildfile: build.xml

init:

compile:

[javac] Compiling 41 source files to /tmp/bog/Horas/WEB-INF/classes

[javac] /tmp/bog/Horas/WEB-INF/src/co/com/he/cliente/gui/form/QuincenaForm.java:78: cannot find symbol

[javac] symbol : variable MESSAGES_KEY

[javac] location:class org.apache.struts.action.Action

[javac](MessageResources)req.getAttribute( Action.MESSAGES_KEY);

[javac]^

[javac] /tmp/bog/Horas/WEB-INF/src/co/com/he/cliente/gui/form/RegistroForm.java:54: cannot find symbol

[javac] symbol : variable MESSAGES_KEY

[javac] location:class org.apache.struts.action.Action

[javac](MessageResources)req.getAttribute( Action.MESSAGES_KEY );

[javac]^

[javac] /tmp/bog/Horas/WEB-INF/src/co/com/he/cliente/gui/form/LoginForm.java:32: cannot find symbol

[javac] symbol : variable MESSAGES_KEY

[javac] location:class org.apache.struts.action.Action

[javac](MessageResources)req.getAttribute( Action.MESSAGES_KEY );

[javac]^

[javac] Note: * uses or overrides a deprecated API.

[javac] Note: Recompile with -Xlint:deprecationfor details.

[javac] 3 errors

BUILD FAILED

/tmp/bog/Horas/WEB-INF/build.xml:30: Compile failed; see the compiler error outputfor details.

Total time: 3 seconds

I was looking for the MESSAGES_KEY variable and it appears in the strtus dtd. I have struts.jar in my classpath.

What could the problem be?

[1808 byte] By [bogotanoa] at [2007-10-2 16:21:09]
# 1
I think it should be Globals.MESSAGES_KEY not Action.MESSAGES_KEY.
Gita_Weinera at 2007-7-13 17:16:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks a lot,The application was developed by another person, so I don't know if it really used to work that way.I made the change and it compiled very fine. I hope that it will run as well :-)Again, Thanks a lot.
bogotanoa at 2007-7-13 17:16:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...