This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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: 2167
57
Android Chrome Eclipse IDE
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic