• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Overriding J2EE classes

 
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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>
Eg:


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?.


Thanks,
Shivani.
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well.... Any answers to the above query?

Regards,
Shivani.
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Mfg,
Flom
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question 2:
Yes, with getParent, you can try something like this :


[ August 08, 2006: Message edited by: Satou kurinosuke ]
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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

Rahul
 
reply
    Bookmark Topic Watch Topic
  • New Topic