Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Name on Client Side  RSS feed

 
Ankur Luthra
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a set of JSPs which I want to tag for Coremetrics web analytics.Now one way is to write tagging code on every JSP.
I have around 100 pages to tag.
I was thinking somehow if I know the name of JSP that is rendering I can use Javascript to know if this JSP need Coremetrics analytics or nOT.

Any way I can achieve that.
I am using Struts framework .It would be great if anyone can provide a pointer as to how to approach this.

Regards,
Ankur
 
Palak Mathur
Ranch Hand
Posts: 342
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a JSP page with those tags and include that jsp in other jsps.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!