This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Overriding J2EE classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Overriding J2EE classes" Watch "Overriding J2EE classes" New topic

Overriding J2EE classes

Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
(Question 1).
In the chapter related to web application deployment there is a point made in the question in the end - which states that :

J2EE classes should not be overriden.

Is not overriding classes same as extending classes?. What is the difference. (Is it something as registering your own defined classes for the a given behaviour - like in struts - but I dont see any kind of registration of class names in any config file?)

For JSTL - we have classes defined for <c:forEach> action - . It is written in the specs that we can define our own classes and use them for such actions. Given that JSTL is part of J2EE framework - would not the above statement be wrong in that case?

Question 2
I had read that we can define our tags within <c:forEach> or <c:forToken>

What I wish to know is : can the class which is responsible for simpleTag be able to access the currentVar ? - How does it access it?.


/** Code speaks louder than words */
Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
Well.... Any answers to the above query?

Flom Xanther
Ranch Hand

Joined: May 26, 2006
Posts: 48
well I don't know in detail,
but your second question sounds like you want to use getParent() on the simpletag.

Look at the api for more info.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Question 2:
Yes, with getParent, you can try something like this :

[ August 08, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1868

Unless you post the link to the reference we will not be able to get the context within which the statement was made

I agree. Here's the link:
subject: Overriding J2EE classes
It's not a secret anymore!