Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] RE: how to integrate aspectj with JSPs?

Gilman, Jason A. (JGILMAN) wrote:
 I think this is because you are trying to use a class on the jsp that has
been modified by an aspect.  I had the same problem.  You can't do this
unless your jsp compiler supports aspects and weaves the aspects in.  You
can still use aspects in your J2EE applications but the aspects can't add
any new members to those classes being used in the jsps.  I don't know of
any jsp compilers right now that support aspects but they're coming.
I would be good to hear of any solutions to this problem if any one else
knows any.


??

I've never tried this, but don't see why it should be a problem.

Jsp compilation is a two stage step.

(1) compile Jsp to Java (Jasper uses a class called JspC)
(2) compile Java to Class using javac

I don't see a reason why you shouldn't just replace javac in (2) with the AspectJ compiler...

How exactly you do this will depend on whether you are precompiling or compiling on the fly, and the JSP engine you are using.

Of course, it's possible that your vendor does a direct Jsp->class compilation, in which case I am talking rubbish - but I haven't seen one yet...

Whether you are using 'call' or 'execution' will also impact you (I think) if you are trying to call across mixed compilation modules....


Hope that helps,




Jules


-----Original Message-----
From: Hinna Javaid
To: aspectj-users@xxxxxxxxxxx
Sent: 1/9/04 8:55 AM
Subject: how to integrate aspectj with JSPs?

Hi
I have defined an aspect for logging all method calls. However, when I
integrate my application with JSPs i get an error saying that aspect
signature class not found. Can anybody help me with thay? How can I
resolve this error?
thanks
Hinna
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users


--
/**********************************
 * Jules Gosnell
 * Partner
 * Core Developers Network (Europe)
 **********************************/



Back to the top