• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

what is advantage of using scripting variable in custome tag?  RSS feed

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
howdy all,

what is advantage of using scripting variable in custom tag?.

In which scenario it serves its best ? In which type of situation it is really required ?

You can also avail of page scoped variable using <jsp:useBean standard action.

Can anyone please clear the doubt ?

Regards,
Niraj Patel
 
Creator of Enthuware JWS+ V6
Posts: 3273
296
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Niiraj,

what is advantage of using scripting variable in custom tag?.



Do you mean creating a (page-scoped) variable to be used in scriptlets? like this:

There is no advantage at all! JSP2.0 was creating to get rid of all the java-code in the jsp's. It is possible but more or less for backward compatiblity: so don't start using it in real life (unless you are being threatened by your boss )


Regards,
Frits
 
machines help you to do more, but experience less. Experience this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!