Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying an external html in jsp

 
Srini Nivas
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to display the content of an external html file in my jsp. <jsp:include> takes only the relative path. So is there any other way to do this?
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about jstl? Try <c:import ... />. There is nothing struts specific.
 
Srini Nivas
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes... but that wouldnt help me ....in the uri attribute i need a dynamic link. which i am not able to give. i.e for example i need either url1 or url2 or url3. But using c:import i cant choose...i am having to hardcode the url. So is there any way around???

Thanks.
 
alan wamser
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about using iframe?
 
Srini Nivas
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iframe?? can you tell me how to use that. thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic