wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is there a tag jsp:import ?
 
Similar Threads
Errata in jsp:import ...
Importing problem
jsp:import
Kind of LoginListener
How to run a java class which executes a command from JSP