• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Custom Tag Doubt

 
Ranch Hand
Posts: 47
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

While doing the mocks, I found the following question:

Assume that st:simple is a Simple Tag. In what way can scriptlet code be used in this tag?

The correct answer for this is: Scriptlet code is NOT legal in the body of this tag.

Is it true? The question does not talk about body-content of the tag.
 
Ranch Hand
Posts: 71
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In the question it asks "in what way you can use scriptlet code IN the tag" , in other words it asks what you can write between the opening and closing of that particular tag.[ opening tag ---> <tag:simple> ] [ closing tag ---> </tag:simple>]

Obviously then you have to worry about the body content.

Hope this clarifies your doughs.

Regards,
Ranil
 
Ankit Nagpal
Ranch Hand
Posts: 47
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your quick response.

However, I actually meant that the question does not talk of the <body-content> tag of the TLD.

I thought that JSP is a valid value for this tag in case of Simple Tags, but after searching I found out that JSP is not a valid value in this type of tag. Hence scripting is not allowed.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic