aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Classic Tag please help? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Classic Tag please help?" Watch "Classic Tag please help?" New topic
Author

Classic Tag please help?

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i have create 1 Classic Tag Handler EncodeURL1 for encoding urls with session ID and encoding param name/value with URLEncoder.

i am using prop intance varible of type Properties class for storing param name & value.

i am initializing prop in the contructor.

As instance of Classic Tag Handler are reused by the Container.

please tell me where do i clear prop. instance so it does not get accumulate.


SCJP, SCWCD
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

What you wrote should be fine.


A good workman is known by his tools.
hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

will that be fine in Multi-threaded call to the tag ?
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

1) The container won't share a single instance of a tag class at the same time. There's no multithreading issue there.

2) The final event in a tag's lifecycle is the release() method, where the spec guarantees that all properties are reset to an initial value by the container. So if the tag gets reused, you should not have to worry about class-level variables getting carried over or shared.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classic Tag please help?