Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scripting allow in tag file??

 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
accoding to JSP sepc 2.0..

tag_directive_attr_list ::=
{ display-name=”display-name” }
{ body-content=”scriptless|tagdependent|empty” }
{ dynamic-attributes=”name” }
{ small-icon=”small-icon” }
{ large-icon=”large-icon” }
{ description=”description” }
{ example=”example” }
{ language=”scriptingLanguage” }
{ import=”importList” }
{ pageEncoding=”peinfo” }
{ isELIgnored=”true|false” }

I don't under why the language attribute provide here to specify scripting language, when we are not suppose to use scripting.
Is this attribute for the tag file itself.(I guess), because inside the body(used to invoke the tag file) you are not allowed to provide any scripting.

Please help me understand this.

Thnaks
 
Sourin K. Sen
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

According to the JSP spec, the only valid value for this attribute is "java".

Here's a line from the jsp spec for the language attribute of the page directive :
When java is the value of the scripting language, the Java Programming Language source code fragments used within the translation unit are required to conform to the Java Programming Language Specification


I think it means that whatever scripting language we use, for example : EL, it should translate to proper java language construct. So, it doesn't necessarily points out to the scripting elements, but it can be any valid scripting language like EL which, after translation, becomes a proper java code.

However, this is my point of view and I might be wrong. Ranchers, please provide some inputs in this...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic