This is the original line which works properly. All I'm trying to do is to control the length of the filed, with the charCounter function instead of using the maxlength property. So I used <c:out b/c it was already being used and is working.
I removed the c:out tags and now I do not receive the original Unterminated tag error anymore. This is the part of code which I'm trying to control the Title filed with the charCounter() function. I receive this error:
The function charCounter must be used with a prefix when a default namespace is not specified.
At this point I have no idea what you are really trying to accomplish. Just removing the <c:out> tags isn't what I was talking about. The <c:out> tags were (I assume) there to provide server-side values to be injected into the markup at certain points. If you can just remove them, what was the point of their being there in the first place?
I'm still not convinced that you understand what JSP is and how it works.
So is the problem that:
The JSP isn't compiling because of syntax error in using the <c:out> tags?
Or is it that:
There are client-side errors after the HTML page is delivered to the browser?
Lets call this #1:
This is what Im trying to accomplish:
I need to get rid of this maxlenght html property and instead call the charCounter() function in order to let user know that how many chars he already entered and how many chars left. The charCounter() receives three fields: (field, count, max).
Filed: the Title field
Count: another field which let the user know how many chars left
Max: the max number of chars allowed.
So I tried to modify #1 - as following code - to call the charCounter() function. Also created the $left variable to send to charCounter() as count argument.
And now I receive this error:
The function charCounter must be used with a prefix when a default namespace is not specified