google-code-export / openesignforms

Automatically exported from code.google.com/p/openesignforms
1 stars 0 forks source link

Entering a field spec in JSP code inside a document is being converted to a field #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a document with JSP code that extracts a field, such as:

<% if ( "VALUE".equals(esf.getFieldSpecValue("${firstName}")) ) { %>

2. Test it and you will get a JSP compiler error.

When reviewing the generated JSP file, we find it has been compiled to:

<% if ( "VALUE".equals(esf.getFieldSpecValue("<esf:fieldlabel name="firstName" 
source="document" fieldSpec="${firstName}"/>")) ) { %>

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

Note that the esf.getFieldSpecValue() method's parameter is "${firstName}" and 
the generator is converting it to an INPUT field (esf:fieldlabel) when it 
should be left alone as a literal string.

Original issue reported on code.google.com by yoz...@gmail.com on 18 Jun 2013 at 11:01

GoogleCodeExporter commented 9 years ago
It appears that our code is finding the field specification even though it's 
inside JSP code markers <% %>.  Need to change the code to ignore field 
specifications that are within the JSP tags.

Patch release created to test: 13.7.13_p0618

Original comment by yoz...@gmail.com on 19 Jun 2013 at 12:42

GoogleCodeExporter commented 9 years ago
Fixed in 13.7.13.

Original comment by yoz...@gmail.com on 27 Jun 2013 at 7:18