Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is advantage of using scripting variable in custome tag?

 
Niiraj Patel
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
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2281
81
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic