Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Catching a Class not Found Exception in Resin

 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im having a problem with typical morons on a web site clicking on the icons for AIM chat, beeper etc. when they dont have AIM installed on their machine. Because they dont have it installed the command aim?gochat is misinterpretted by the system as a call to a servlet (even though it has no /servlet/ in front of it). Since this isnt happening within in a servlet's code but is actually coming in as a HttpRequest Im not sure how to catch it. Is there some way to set up a default "catch???" somewhere in the system so I can show the user a page saying they have to first install the program before clicking on that link......Im stumpted, anybody got a great idea.........thanks much
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hum... I think I might create a servlet aim that's out put would be something like
"You don't have AIM installed click here to download"
 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought of that BUT, then I re-thought it. The system commands that are embedded & hence being called are this aim:addbuddy?screenname=, aim:goim?screenname= & aim:gochat?roomname=. So that will be the classes the servlet container will be looking for (prior to the ?, that is).one major problem here the : is an illegal character for a class name so that kind of puts a damper on that. I am going to try to set up a servlet mapping in the resin.conf but I dont think that is going to work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic