• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

in JSP: include other JSP by URL?

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my JSP/Struts application I need to include few JSP parts by their full URL. They will be located on separated servers, but still I have to use them.
<jsp:include page=... and <jsp:directive.include file=... are using only relative URI's, but I need to use full URL.

Any easy solution?

Thanks!
[ June 03, 2005: Message edited by: Olexiy Prokhorenko ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JSP Spec is quite specific about those paths being relative to the application context.

If you need to use them in your app, why not just put them in your app?
If this is tedious to maintain by hand, consider creating an ANT build script to copy files around before WARing up the various contexts.
 
Olexiy Prokhorenko
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ben Souther:
The JSP Spec is quite specific about those paths being relative to the application context.

If you need to use them in your app, why not just put them in your app?
If this is tedious to maintain by hand, consider creating an ANT build script to copy files around before WARing up the various contexts.



Why not just put? Because this is a requirement. ;-)

However, nevermind. Everything was solved with the help of JSTL.
Thanks.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sure that Olexiy is referring to the <c:import> tag.

Olexiy, when you come up with the answer to a posted question on your own, it is considered good form to post your findings so that other forum members can benefit.
 
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic