• Post Reply Bookmark Topic Watch Topic
  • New Topic

include jsp file from other webserver application

 
Mohan Er
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a requirement that, i want to include a jsp file in other jsp

I have a file at http://www.xyz.com/data/includefile.jsp

i want to include above file in http://www.abc.com/main/datafile.jsp

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"ejr ejr", please check your private messages for an important administrative matter.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out JSTL's <c:import> action.
 
Mohan Er
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bear Bibeault. I changed my display name.

Regarding my issue, i am not using any tag libs
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use <jsp:include>.
 
Mohan Er
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your replay Mr Ulf Dittmer.
Actually the two jsp files are in different domains. I already specified in my first topic
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then the JSTL c:import is the only option when you want to do it at the JSP side.

If you don't want to use JSTL, then you need to create a custom tag which does the same like the c:import. But why reinventing the wheel? Do you have problems with installing/using JSTL or so?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!