File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFJS Chapter-7 Page 309 Doubt 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 "HFJS Chapter-7 Page 309 Doubt" Watch "HFJS Chapter-7 Page 309 Doubt" New topic

HFJS Chapter-7 Page 309 Doubt

Peter Piddle

Joined: Jun 13, 2012
Posts: 26

I have started reading chapter-7 from HFJS. There are different questions there. A question is written there which says that.
Suppose you do want ot override the init() method.. how would you do it? I know this part, we can override it by using jsp elements

Onwards it says that, Is there something else you can do that'll give you the same result? I couldn't get it. Can we do it some other way
as well?


Peter Piddle - Skype(peter.piddle)
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper

Joined: Apr 07, 2010
Posts: 2102

Hi Peter,

There are a number of possiblities, but probably they haven't been discussed yet in the book. The one thing that could be used is
- do initialisation in a Servlet, before forwarding to the JSP.

The other thing I can think of when using JSPs only is:

Peter Piddle

Joined: Jun 13, 2012
Posts: 26

Hi Frits,

Thanks a ton. I thought of the same thing.

I agree. Here's the link:
subject: HFJS Chapter-7 Page 309 Doubt
It's not a secret anymore!