• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp.exists()

 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a reliable way to tell if a named JSP exists? I'd like to provide a default page for a missing JSP in one particular spot in an application. This is in a legacy jsp now:

I could see Class.forName() working if I could build up the compiled jsp name, but that sounds pretty yucky.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps something like:


[ February 27, 2006: Message edited by: Bear Bibeault ]
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! I have no idea what that is. But it's something I can Google and learn!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are examples of the JSTL (JSP Standard Tag Library).
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gotcha. I had never seen the import into a var syntax. Slick. Thanks again!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very powerful mechanism, that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic