You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Yasser Zamani (JIRA)" <ji...@apache.org> on 2018/09/21 10:54:00 UTC
[jira] [Commented] (WW-4964) Missing javascript in
form-validate.ftl
[ https://issues.apache.org/jira/browse/WW-4964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16623406#comment-16623406 ]
Yasser Zamani commented on WW-4964:
-----------------------------------
I think Struts head tag should be added to your jsp e.g.
{code:xml}
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<s:head />
</head>
<body>
..{code}
> Missing javascript in form-validate.ftl
> ---------------------------------------
>
> Key: WW-4964
> URL: https://issues.apache.org/jira/browse/WW-4964
> Project: Struts 2
> Issue Type: Bug
> Components: Core Tags
> Affects Versions: 2.5.17
> Reporter: nikos dimitrakas
> Priority: Major
>
> There are two versions of form-validate.ftl, one in xhtml theme and one in css_xhtml theme. The one in css_xhtml is missing the script tag for utils.js (and also some special character cleaning). This causes the following error on the client:
> Uncaught ReferenceError: StrutsUtils is not defined
> at validation.js:161
> (anonymous) @ validation.js:161
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)