• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:import problem

 
Raquib Mahmood Shoeb
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a resource named frameset? If not, the URL is not valid.
 
Raquib Mahmood Shoeb
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by first folder ? Root folder ? Are you trying to import something outside your web application ?
 
Raquib Mahmood Shoeb
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic