Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error after Struts upgrade

794117Jan 17 2005 — edited Jan 18 2005
Ok, I've been hitting my head against a brick wall all day here.

It has been decided to upgrade the version of struts from 1.1? to 1.2.4

Suddenly one of the pages which I wrote a little while ago is broken.
I have traced it down to this offending line of code:
<bean:write name="calendar" property="calendarId"/>
calendarId is of type int.

The following error message appears:
org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE

Tracing through the code I have figured out the bean:write tag is trying to format the int. Because I haven't specified a format, it is looking up the standard one from the resource bundle stored under the attribute org.apache.struts.action.MESSAGE.

I have tried manually looking up this attribute.
In the previous version of struts, this attribute present in both request and attribute scopes.
In the current version it is not present in any scope.

All the change I make between working/not working is replace the struts.jar file, and restart Tomcat. The old one works, the new one does not.

I'm going to keep struggling on, but if anyone can guide me in what has changed between versions, then I would be grateful. Maybe I have an extra jar file sitting around that shouldn't be there?

Cheers,
evnafets
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2005
Added on Jan 17 2005
4 comments
220 views