They do not need to be concrete - the real class is implemented by the Servlet container - each container their own implementation - and hence hidden from you, nonetheless you can call the methods specified my the interface...etc
As regards your non - servlet classes that you wish to pass the servlet context to - well you can pass them by reference in the in the method parameteres... like Non-servlet-class.method(this.getContext()), . ...)... PS ficticious method name & you would like to check that this.getContect method... good luck ;-) Carl On Dec 20, 2007 5:28 PM, Sparky <[EMAIL PROTECTED]> wrote: > > JSP's are essentially servlets, so if you have a JSP, you have a > ServletContext. Any intelligent person is going to create a couple of > java classes to use in their JSP for business logic, etc. > > How do you get the ServletContext from within one of those non-servlet > Java classes that are used by the JSP? > > I see that neither ServletContext, nor ServletConfig are concrete. > > Enlighten me. > > Mark > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~---
