aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Hi, question on c:import... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Hi, question on c:import..." Watch "Hi, question on c:import..." New topic
Author

Hi, question on c:import...

Carmen Brianick
Ranch Hand

Joined: Feb 23, 2006
Posts: 67
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

Joined: Dec 04, 2004
Posts: 950
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 ]

Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Carmen Brianick
Ranch Hand

Joined: Feb 23, 2006
Posts: 67
Hi Narendra, thanks for your response, I will try the absolute path to see what happens.

Thanks again,
Carmen
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hi, question on c:import...