Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

include files

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have a jsp application which is using an include file to pull in another jsp within the same application.
i have to change it so that it points to an external application but
"urls to the include directive are always relative to the context of the application and
cannot contain
a protocol name, port number or domain name."
is there anyway i can pull an include from another application (regardless of domain name etc) into a jsp file ?
cheers
chris
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aside from writing your own "suck-it-in" servlet (not all that difficult), you might want to investigate using the <c:import> tag from the JSTL.
[ February 02, 2004: Message edited by: Bear Bibeault ]
 
Greg T Robertson
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or if you are not on a server that supports JSTL and don't wish to roll your own try the one from apache (jakarta) Jakarta Apache IO Taglibs
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try the one from apache (jakarta)

Not saying that this is not a valid choice, but how would installing the Jakarta I/O taglib be any different from installing the JSTL?
 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for help, i'll try both out.
 
No, tomorrow we rule the world! With this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!