wood burning stoves 2.0*
The moose likes JSP and the fly likes c:import problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "c:import problem" Watch "c:import problem" New topic
Author

c:import problem

Raquib Mahmood Shoeb
Greenhorn

Joined: Sep 04, 2005
Posts: 4
hi,
I m using JSTL1.1 and JSP2.0, Tomcat5.5
when i m run this code

<c:forEach items="${reportURL}" var="url1">
<cut value="${url1}"/>
<div id="rpt" style="width:770px;border:1px solid #CCCCCC;">
<c:import url="${url1}"/>
</div>
</c:forEach>



it gives me output

frameset?__report=temp\dashboard_106_5.rptdesign
The requested resource (/art/common/frameset) is not available

i want to import the content of the given URL(frameset?__report=temp\dashboard_106_5.rptdesign)

Thanks
Shoeb
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

Do you have a resource named frameset? If not, the URL is not valid.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Raquib Mahmood Shoeb
Greenhorn

Joined: Sep 04, 2005
Posts: 4
yes i have resource called frameset.its url is /mywebapp/frameset.
but when i am using <c:import> it goes to /mywebapp/common/frameset.common is the first folder of my webapp.

Thanks
Shoeb
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

What do you mean by first folder ? Root folder ? Are you trying to import something outside your web application ?


[My Blog]
All roads lead to JavaRanch
Raquib Mahmood Shoeb
Greenhorn

Joined: Sep 04, 2005
Posts: 4
no i am not trying to import outside of my application.first folder i meant when i view the app in explorer in asc order common is the name of first folder.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I think that you are using a page relative url (frameset) and calling it from the common folder. Maybe you should use the context relative url (/frameset) instead.
[ August 27, 2006: Message edited by: Satou kurinosuke ]
 
Don't get me started about those stupid light bulbs.
 
subject: c:import problem