rahul1671986 / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Uncaught SyntaxError: Unexpected token < xml-validation form client side.. #812

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?

Uncaught SyntaxError: Unexpected token < jquery-1.7.1.min.js:4
f.extend.ajax                             jquery-1.7.1.min.js:4
b.fn.ajaxSubmit
a.struts2_jquery.validateFormjquery.struts2-3.3.0.min.js:18
a.struts2_jquery.formsubmit.f.formidsjquery.struts2-3.3.0.min.js:18
f.event.dispatchjquery-1.7.1.min.js:3
f.event.add.h.handle.ijquery-1.7.1.min.js:3

What is the expected output? What do you see instead?

well, it should validate on client side (java-script) my form.
when i use the simple strut tag submit then that work fine,
but when i put the js:submit, i resive that exception and i dont see 
any clue to find the error.

Which struts2 version?

struts 2.2.3 

Which struts2-jquery plugin version?
3.3.0

Please provide any additional information below.

well, im doing a xml struts validation, and when i implemt js:submit 
and i already put in my jsp the scripts
... 
language="JavaScript" src="${pageContext.request.contextPath}/struts/utils.js" 
type="text/

src="${pageContext.request.contextPath}/struts/xhtml/validation.js" 
type="text/javascript
...

when i click on submit button it hit me with that exception...

so i dont know what is the problem if is a simple form ...

Original issue reported on code.google.com by Djsha...@gmail.com on 27 Apr 2012 at 9:06

GoogleCodeExporter commented 9 years ago
This is a known Bug in latest Struts2.

https://issues.apache.org/jira/browse/WW-3736

Use Struts2 2.3.3 or fix this in your current version.

Original comment by johgep on 3 May 2012 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 3 May 2012 at 10:30

GoogleCodeExporter commented 9 years ago
im using already struts2  v2.3.3 and  still geting this error. so  please tell 
me wich version sould i use, or how to fix it in this current version? 

thx for your time :D

Original comment by Djsha...@gmail.com on 3 May 2012 at 3:01

GoogleCodeExporter commented 9 years ago
I just updated Showcase to Struts2 Version 2.3.3 and the XHTM Validation 
Example is working like expected.

Do you have cleared your caches? Can you prepare an example?

http://code.google.com/p/struts2-jquery/source/detail?r=1648

Original comment by johgep on 4 May 2012 at 3:41