my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes what is advantage of using scripting variable in custome tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "what is advantage of using scripting variable in custome tag? " Watch "what is advantage of using scripting variable in custome tag? " New topic
Author

what is advantage of using scripting variable in custome tag?

Niiraj Patel
Ranch Hand

Joined: Sep 17, 2011
Posts: 47
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
Bartender

Joined: Apr 07, 2010
Posts: 1700
    
  25

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
 
subject: what is advantage of using scripting variable in custome tag?