Lines 333-338
Link Here
|
333 |
} |
333 |
} |
334 |
|
334 |
|
335 |
public void visit(Node.CustomTag n) throws JasperException { |
335 |
public void visit(Node.CustomTag n) throws JasperException { |
|
|
336 |
// XXX - Actually there is no need to declare those |
337 |
// "_jspx_" + varName + "_" + nestingLevel variables when we are |
338 |
// inside a JspFragment. |
336 |
|
339 |
|
337 |
if (n.getCustomNestingLevel() > 0) { |
340 |
if (n.getCustomNestingLevel() > 0) { |
338 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
341 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
Lines 2484-2489
Link Here
|
2484 |
} |
2487 |
} |
2485 |
|
2488 |
|
2486 |
private void declareScriptingVars(Node.CustomTag n, int scope) { |
2489 |
private void declareScriptingVars(Node.CustomTag n, int scope) { |
|
|
2490 |
if (isFragment) { |
2491 |
// No need to declare Java variables, if we inside a |
2492 |
// JspFragment, because a fragment is always scriptless. |
2493 |
return; |
2494 |
} |
2487 |
|
2495 |
|
2488 |
Vector vec = n.getScriptingVars(scope); |
2496 |
Vector vec = n.getScriptingVars(scope); |
2489 |
if (vec != null) { |
2497 |
if (vec != null) { |
Lines 2531-2536
Link Here
|
2531 |
if (n.getCustomNestingLevel() == 0) { |
2539 |
if (n.getCustomNestingLevel() == 0) { |
2532 |
return; |
2540 |
return; |
2533 |
} |
2541 |
} |
|
|
2542 |
if (isFragment) { |
2543 |
// No need to declare Java variables, if we inside a |
2544 |
// JspFragment, because a fragment is always scriptless. |
2545 |
// Thus, there is no need to save/ restore/ sync them. |
2546 |
// Note, that JspContextWrapper.syncFoo() methods will take |
2547 |
// care of saving/ restoring/ sync'ing of JspContext attributes. |
2548 |
return; |
2549 |
} |
2534 |
|
2550 |
|
2535 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
2551 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
2536 |
VariableInfo[] varInfos = n.getVariableInfos(); |
2552 |
VariableInfo[] varInfos = n.getVariableInfos(); |
Lines 2591-2596
Link Here
|
2591 |
if (n.getCustomNestingLevel() == 0) { |
2607 |
if (n.getCustomNestingLevel() == 0) { |
2592 |
return; |
2608 |
return; |
2593 |
} |
2609 |
} |
|
|
2610 |
if (isFragment) { |
2611 |
// No need to declare Java variables, if we inside a |
2612 |
// JspFragment, because a fragment is always scriptless. |
2613 |
// Thus, there is no need to save/ restore/ sync them. |
2614 |
// Note, that JspContextWrapper.syncFoo() methods will take |
2615 |
// care of saving/ restoring/ sync'ing of JspContext attributes. |
2616 |
return; |
2617 |
} |
2594 |
|
2618 |
|
2595 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
2619 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
2596 |
VariableInfo[] varInfos = n.getVariableInfos(); |
2620 |
VariableInfo[] varInfos = n.getVariableInfos(); |
Lines 2645-2650
Link Here
|
2645 |
* given scope. |
2669 |
* given scope. |
2646 |
*/ |
2670 |
*/ |
2647 |
private void syncScriptingVars(Node.CustomTag n, int scope) { |
2671 |
private void syncScriptingVars(Node.CustomTag n, int scope) { |
|
|
2672 |
if (isFragment) { |
2673 |
// No need to declare Java variables, if we inside a |
2674 |
// JspFragment, because a fragment is always scriptless. |
2675 |
// Thus, there is no need to save/ restore/ sync them. |
2676 |
// Note, that JspContextWrapper.syncFoo() methods will take |
2677 |
// care of saving/ restoring/ sync'ing of JspContext attributes. |
2678 |
return; |
2679 |
} |
2680 |
|
2648 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
2681 |
TagVariableInfo[] tagVarInfos = n.getTagVariableInfos(); |
2649 |
VariableInfo[] varInfos = n.getVariableInfos(); |
2682 |
VariableInfo[] varInfos = n.getVariableInfos(); |
2650 |
|
2683 |
|