Andrey Myatlyuk wrote:

> Hello Bo,
>
> Thank you for very helpful sample.
>
> I decided to use jsp instead of servlets.
>
> Several reasons:
> 1. My ClassCastException situation is eliminated. Although I don't
> understand why.
> 2. I use JSP for presentation("view") layer - so any web-designer can change
> presentation of data.
> 3. I use servlet only as controller.
>
> So far so good. :)
>
> --
> Andrey Myatlyuk - 212.269.6082 - 11 Broadway, Suite 700 - New York, NY 10004
> www.oneworldinc.com

Hello Andrey :-),   I also didn't find the reason for StatesBean, I just have
a guessing:  do you remember that email from Craig about  classloader
(I re-post that email as a reference)?  from the direction of that email, I
guess:
    if  MyHelper class is loadered by classloaderA, and we want to make
    MyHelper "across reloading", then perhaps it is better that:
    - classloaderA is "up than" myapp classloader
    - all the classes which are "nest-referenced" in/by MyHelper are Also loaded

       by classloaderA, or another classloader which is "up than" classloaderA.


have a nice day :-)
Bo
Mar.19, 2001


Reply via email to