• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to include a jsp from another web context

 
KiranKumar Mateti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to include a jsp page which is from another context, how can achieve this?
<jsp:inclue /> <@include %> are loading the jsp's from same context only.

Ex: In my ear i had two ear files like abc.war and xyz.war

My Problem is i want to include a jsp (of abc.war) in a jsp (of xyz.war)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While you can use <c:import> to achieve this, its a poor practice and you should build each application to be independent of the other.
 
KiranKumar Mateti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,


is it possible to achieve this with struts tags except <c: /> JSTL tags?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know of none.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!