my dog learned polymorphism
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Is there a tag jsp: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 "Is there a tag jsp:import ?" Watch "Is there a tag jsp:import ?" New topic

Is there a tag jsp:import ?

Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264
while i am going thru mikali's notes i just saw the tag jsp:import is being
compared with c:import and i'm flabbergated.I have not seen this tagin spec.
Is this a XML compliant tag.

when you really want something, all the universe always conspires in your favour.<br /> <br />SCJP1.5-77%<br />SCWCD-89%
Daniel Dalton
Ranch Hand

Joined: Mar 20, 2005
Posts: 146
No there's no jsp:import tag. You have 3 ways to import stuff:

1) The page directive: <%@page import file="bhah blah" />
2) The jsp:include element: <jsp:include page="blah blah" />
3) The JSTL c:import tag: <c:import url="blah blah" />

Oh and the RequestDispatcher include method.
Dinuka Arsakularatne
Ranch Hand

Joined: Aug 12, 2006
Posts: 198
hey Daniel i think the first one should be <%@ include file="watever.jsp" %>

if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing
Daniel Dalton
Ranch Hand

Joined: Mar 20, 2005
Posts: 146
Hi Dinuka - you're absolutely right - sorry for causing confusion, too much haste at lunchtime is my only excuse!
I agree. Here's the link:
subject: Is there a tag jsp:import ?
It's not a secret anymore!