• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:import

 
Akhil Maharaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

When I was playing with c:import context attribute , I was getting the error

Unable to get RequestDispatcher for Context: "/hfsj" and URL: "/html/ch5/cisco/simple1.html". Verify values and/or enable cross context access.

Could anybody share how context attribute works here .

Here is my code present in taglibraries webcontext



Thanks
Akhil
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't forget that it is important to note that importing resources in foreign contexts may not work in all containers. Even if your container supports it, there are chances that you will need to configure it to access a foreign context.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic