This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes strutsutils is not defined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "strutsutils is not defined" Watch "strutsutils is not defined" New topic

strutsutils is not defined

Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83

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


SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
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?

Don't get me started about those stupid light bulbs.
subject: strutsutils is not defined
Similar Threads
Struts 1.1 using RAD7
Exception creating bean of class
Struts2: How to use tree tag
Struts2_Ajax tags not working
Help me... Pls