[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] aspects in jsp
|
I would think you would have to precompile the jsp with iajc into a servlet.
The reason is because the jsp is compiled when you deploy the app (or access
it), so the aspects are never entered into the compiled classes.
~ Jess
> -----Original Message-----
> From: aspectj-users-admin@xxxxxxxxxxx
> [mailto:aspectj-users-admin@xxxxxxxxxxx]On Behalf Of Hinna Javaid
> Sent: Friday, January 23, 2004 9:10 AM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [aspectj-users] aspects in jsp
>
>
> hi
> I have a db connection aspect defined, that connects to a
> database before any method of that class is called, and
> disconnects after the method's execution. it works fine when
> i test it by invoking the method through my test class.
> however, when i invoke the method from jsps the before and
> after advice are not called.
> I have another aspect defined traceAspect defined for logging
> purposes. it works fine, since it is only printing. Whereas,
> the dbconnect aspect accesses a member and initializes it,
> which is then used by the invoked method.this member is not
> initialized and is null.
> can anybody help me with this?
>
> thanx
> hinna
> j^r왨x%Z;zrX+mz*lzffX)ߣ-
>