Well i won't be answering your question to begin with but would (hopefully)
provide you enough food for thought to have a rethink of your design
strategy.
As others on this list would agree that the best way to use JSP's is in
conjunction with Servlets and Java Beans, in short "The MVC Architecture
Model".
In the above mentioned model JSP's are used for display purposes and the
logic is placed in Beans whereas the Servlet acts as a Controller. In case
you need more information on MVC check out any good JSP Book and even the
archives of this list is a wonderful resource.
Now lets get back to your question, the answer to it is you can use the
super keyword for what you intend to do.
But "BEWARE" that doing so will surely make your JSP's messy as well as
unmaintainable in the long run, could be in the short run as well :-).
Assume this helps.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: Rajinder Sandhu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 3:46 PM
Subject: using super in Jsp


> Hi all,
>
> In my JSP file i am initiating a transaction (any of the action in between
> can throw an exception), and including/calling other jsp's as well. So for
> catching exception and to track where the exception exactly has occured. I
> want define a Basic exception class and have other exception classes
> extending this class for catching a particular exception.
>
> Now my Question is :
> Can we use super to call base class method/constructor in a JSP file ? So
> that i can pass the Ex to the base class.
> If yes, A little idea How to implement it.
>
> If my solution is wrong or if the problem can be solved in a better
manner,
> please guide me.
>
> Thanks in advance.
>
> Cheers!!
> raj
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to