• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expression Language usage.

 
Sarat Koduri
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could some body please clarify the following doubts.

suppose the custom tag definition says the body content is scriptless.. can i use EL there . does script less means either jsp expressions and El can be used there?

suppose the custom tag definition says the attribute RTEXPRVALUE is false can i use the EL there.? i guess i can.

suppose in the exam there is no page directive given for a jsp page and just some EL is there.. then this el will be manipulated or it will be shown in the html page. i would like to know wat version of web.xml exam will use since because of this the EL usage may vary..



Thank you in advance.
 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;

If content is scriptless then you can use EL....
SCRIPTLESS means NO jsp expression, scriplet, directive and jsp declaraion...

If custom tag definition says the attribute RTEXPRVALUE is false
then you can not use EL the valu can only be string literal...

If you specify EL in jsp then there should be one tag lib directive to be called with uri..

Hope i cleared doubts..

Please correct me if i'm wrong...

Regards;
Brijesh
SCJP
SCWCD (target)
[ September 09, 2008: Message edited by: Brijesh shah ]
 
Sarat Koduri
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brijesh.. Thanks for the information.. now i am clear about the first two things .. but for the third one, i just wanted to use EL in a jsp page and i do not think i need a taglib for this. do i ?..

i got this doubt just because some where i read like. depending up on the version of DTD you are using for the web.xml .. the ELIgnored default value changes. tats y...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"SARAT",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly (you need to set both first and last names). Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic