File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

HFJS Chapter-7 Page 309 Doubt

Peter Piddle
Greenhorn

Joined: Jun 13, 2012
Posts: 26

Hi.
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
declarations.

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?

Thanks,
Peter


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

Joined: Apr 07, 2010
Posts: 1627
    
  23

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:


Regards,
Frits
Peter Piddle
Greenhorn

Joined: Jun 13, 2012
Posts: 26

Hi Frits,

Thanks a ton. I thought of the same thing.

Thanks,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HFJS Chapter-7 Page 309 Doubt
 
Similar Threads
User/Role config in server?
jsp:attibute
Finally Passed SCWCD 72%
Tag files in exam
Which book for SCWCD ?