Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strutsutils is not defined

 
Ramkumar Subburaj
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using Struts 2.1.8 and using "css_xhtml" theme.

I am getting "StrutsUtils is not defined" in all the jsp pages because of which my validations are getting failed in IE.

I tried putting struts head tag like



But still I.m getting the error.

Can any one suggest how to solve this

Thanks

 
Ramkumar Subburaj
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it working. It was a typo error.

But I am facing another error in IE.

I am getting the following error - An exception occurred: Error. Error message: Invalid argument.

I tried out to figured out the cause and found out the following

My generated javascript code is



I tried to mock up by putting the same code in a function and calling it in onclick event

the method "addError()" throws the exception and the reason is "field" variable.

if i change it to field[0] , it is working fine.

How to fix this error?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic