AW: [opencms-dev] Including part of a jsp

Mark Miller mark.miller at hema.ch
Fri Aug 22 11:16:01 CEST 2003


But you could wrap it in an XML tag, and then just include that part ...

For example ... my main jsp template has a <cms:template
element="head"/>, <cms:template element="body"/> and <cms:template
element="foot"/> areas defined.

I can then include only the header and footer from another JSP using 

<cms:template element="head">
  <cms:include file="hema.jsp" element="head"/>
</cms:template>

<cms:template element="foot">
  <cms:include file="hema.jsp" element="foot"/>
</cms:template>

I have never tried it to see if you can define elements yourself ... but
it should work.



-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Joachim Arrasz
Gesendet: 22 August 2003 10:41
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] Including part of a jsp

This is impossible...

thikn about whar Jasper does with JSP`s ... he makes servlets
(specialized
Java classes) from any jsp. A jsp is from JVM view nothing other as a
servlet...
Kind Regards

Achim

> i have the following problem:
> in a JSP file, i want to include a part of another jsp file.
> for example:
>
> file1.jsp --include--> file2.jsp  (from line 20 to 50)
>
> i tried the <cms:template> tag but i always get included the whole
> page.
>
>
> any ideas ?
>
>
> Mario



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list