Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

including HTML file

 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My JSF screen has to include content of HTML file availabe at specified URL.how it is possible,any suggestions?
Thanks in Advance.
Regards
Venkat.
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Venkat

Could use a normal

<jsp:include page="htmlPage.html" flush="true" />

Let me know if it works.
cheers
Darryl
 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
This will not work.<jsp:include> used only for localmachine.we can not use for external URLs.
Regards
Venkat.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL's <c:import> tag can do this. See http://www.ibm.com/developerworks/java/library/j-jsp06173.html for details.
 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
<c:import> tag is also not working.can you give me any other suggestions.
Thanks
Regards
Venkat.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:import> works fine in general. How is it not working for you - how are you using it, and what is the result?
 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have used in my jsf page like
<c:import url="someurl"/>
but its not displaying any content in my page.
its not giving any Exception also.
can you please check this?
Regards
Venkat.
 
J Haley
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using facelets, c:import is not supported.
 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Haley,
you are exactly correct,I am using Facelets,Ajax4JSF.is there any option to include content of HTML file.
Thank You.
Regards
Venkat.
 
J Haley
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you will have to write your own custom tag that mimics c:import. I like using facelets with jsf, but am very disappointed with the lack of jstl support. If you find a better solution, please post it.
 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thank You for all,if i get any new solution i should discuss with you.
Regards,
Venkat.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic