File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hi, question on c:import...

 
Carmen Brianick
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering why the .gifs aren't displaying correctly on this site when I do:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<HTML>
<HEAD><TITLE> JSTL Practice </TITLE></HEAD>
<BODY>
Is this a site?
<c:import url="www.1010wins.com"/>
</BODY></HTML>

Thanks so much,
Carmen
 
Narendra Dhande
Ranch Hand
Posts: 951
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

<c:import url="www.1010wins.com"/>


It will not redirect the URL to web site www.1010wins.com. The <c:import> action treate it as reletive URL and not absolute URL. so it search /approot/www.1010wins.com in your servlet Context assumming that Your JSP file is placed at approot.

try using absolute URL as http://www.1010wins.com.

I think the <c:import> is not good for these tasks, as it try to import the full default page of the site. Instead it better to use <c:redirect> to display the full site.


Thanks
[ March 07, 2006: Message edited by: Narendra Dhande ]
 
Carmen Brianick
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Narendra, thanks for your response, I will try the absolute path to see what happens.

Thanks again,
Carmen
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic