Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Not able to use Looping in the form JSP
SPrakash
Hi,
We created one workflow and created one form for a simple activity. We downloaded the JSP form from the Forms Manager and trying to use the java scripting inside that form and uploaded the JSP file back to the WorkRoute Forms Manager.
We are not able to use the looping statements like for and while inside the java script method inside that form.
If i am using these looping statements form itself is not getting displayed in the WorksiteMP Home page.
It is throwing this error in the Tomcat Logs
"The content of elements must consist of well-formed character data or markup."
Sample Code which i am using
var i=0;
while(i<2)
{
alert(i);
i++;
}
Thanks,
Prakash
Find more posts tagged with
Comments
tsconsultant
hi,
workflow forms are JSTL complaints , you need to use the JSTL standard to customize the workflow forms JSP pages, you cannt directly use the normal scripting syntax.
try to use the JSTL scripting elements tag.
wiel
Prakash is referring to javascript, not java scripting (although that is possible as well).
The error he's getting in the tomcat-log refers to the jsp. It is not well-formed xml (the JSP's must be valid XML-documents). Try putting javascript in between the xml-tags wr:script and jsp:text as a CDATA-section.
wiel