• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ - Page No 322

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I find the contents in page number:322 confusing. Can anybody help me out on this?

With regards,
Padma priya N.G.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Priya,

change the "ignored" column title to "error". It is an errata. Instead of ignored it is error. EL is evaluated or error is generated.

Page 322 is all about what happens when <el-ignored> is unspecified,
configured to true, or configured to false in the DD.

AND

page directive is unspecified for isELIgnored attribute, specified with
false or true value.

Suppose in DD, <el-ignored> is set to false but in your specific jsp,
property isELIgnored of page directive is set to true, then it generates
error. <el-ignored>false</el-ignored> and not specified has same effect.


Note: You have to take care that for page specific there is
no any method to set scripting invalid. It can be configured in the DD
only with <scripting-invalid> element. By default scripting is evaluated
in the page. You see unspecified and configuration with false has same
effect.

Does this help you?

Thanks,
[ July 21, 2007: Message edited by: Chandra Bhatt ]
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In other way to remember:

1- If DD says, EL is not ignored(set to false), page tries to set EL ignored
(set to true), it causes error.
2-If DD says, EL is ignored (set to true), but page says it should not
(setting it to false), page's suggestion is obeyed.
3- By Default EL is evaluated.
4- <el-ignored>false</el-ignored> has the same meaning of default.
5- If DD says <el-ignored>true</el-ignored> and page doesn't set it to
false, error is generated if you use EL in the page.

I hope this helps you.

Thanks,
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandra,
Thanks for the brief explanation.
With regards,
Padma priya N.G.
 
Amit Goyal
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandra Bhatt,

I would like to make some correction in your statments, tell me if i am wrong:

According to me rules should be:

1- If DD says, EL is not ignored(set to false), page tries to set EL ignored
(set to true), It will not causes any error, the only thing is that the container will treat the EL statement as simple text and will not be evaluated by the container and hence it will go on response as simple text.


2-If DD says, EL is ignored (set to true), but page says it should not
(setting it to false), page's suggestion is obeyed.

3- By Default EL is evaluated.

4- <el-ignored>false</el-ignored> has the same meaning of default.

5- If DD says <el-ignored>true</el-ignored> and page doesn't set it to
false, no error is generated if you use EL in the page the only thing EL will not be evaluated it will go on response as a simple text..


So the rule of thumb is:

"Always page directive's attrubute isELIgnored get priority over the one which is configured in DD"


Regards,

Amit Goyal
[ July 23, 2007: Message edited by: Amit Goyal ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic