BF [ 2031461 ] Scriptlet not working for context vars that contain "."

This commit is contained in:
teo_sarca 2008-07-29 13:33:32 +00:00
parent 70c84dd787
commit 02b749cd4c
1 changed files with 8 additions and 3 deletions

View File

@ -161,10 +161,15 @@ public class Scriptlet
{
if (m_ctx == null)
return;
Iterator it = m_ctx.keySet().iterator();
Iterator<String> it = m_ctx.keySet().iterator();
while (it.hasNext())
{
String key = (String)it.next();
String key = it.next();
//
// If key contains ".", skip it - teo_sarca BF [ 2031461 ]
if (key.indexOf(".") >= 0)
continue;
//
Object value = m_ctx.get(key);
try
{
@ -240,7 +245,7 @@ public class Scriptlet
m_ctx = new HashMap<String,Object>();
// Convert properties to HashMap
Enumeration en = prop.keys();
Enumeration<?> en = prop.keys();
while (en.hasMoreElements())
{
String key = en.nextElement().toString();