Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

in JSP: include other JSP by URL?  RSS feed

 
Olexiy Prokhorenko
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!