Hi all,
I tend to think that 
<%@ include file="my_page.jsp" %> is  bad,
<%jsp: include page="my_page.jsp" %> is best.

Any opinions on this?
If you change an included file I assume all the jsp's that access it are recompiled 
next time they
are used (or can be manually recompiled). Which could be very slow.
Included pages get recompiled, but not the page that includes them ie. only the thing 
you change
gets recompiled.
Is this right?

Keith.

--- Arron Bates <[EMAIL PROTECTED]> wrote:
> The type of include you're using here is a dynamic include. Meaning that 
> the page to be included isn't simply added, it's compiled into its own 
> servlet, and the page's context is passed to the included servlet. For 
> the tags to work in the included servlet, they need all the taglib 
> imports like your original JSP would.
> 
> Or you can try the other form of include, which simply takes the file 
> and puts it in the larger file when the JSP is compiled (this is the 
> behavior it seems you are expecting)...
> <%@ include file="my_page.jsp" %>
> 
> 
> Arron.
> 
> Bryan P. Glennon wrote:
> 
> >Hi -
> >    This is really more of a JSP question, but since it involves struts
> >tags I figured I'd give it a shot here. I have a page which contains a
> >form built using the html:form taglib. Based on the users selection from
> >that form, I go off and do some processing and redirect the user back to
> >the same page. During the processing, an attribute gets set to indicate
> >which detail information to include. I try to include this detail page
> >(which is also an html:form form) by doing a jsp:include.  Basically,
> >the page looks like this:
> >
> >     <html:form...>
> >             Navigation form
> >     </html:form>
> >
> >     Static stuff here
> >
> >     <jsp:include page="<%=detailPage%>" />
> >
> >     My problem is that the tags in the included page never get
> >processed. So, is there anyway I can make this work?
> >
> >    Sorry again for the OT post.
> >
> >Cheers,
> >Bryan
> >
> >--
> >Bryan Glennon (mailto:[EMAIL PROTECTED])
> >BPG Consulting, Inc. (http://www.bpgc.com)
> >Tech Question? (mailto:[EMAIL PROTECTED])
> >
> >--
> >To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to