[opencms-dev] Jsp Template import VFS page

Keith Davey keith.davey at gmail.com
Thu May 11 22:07:11 CEST 2006


Hi,

What is the page type? For the one I am trying to import its just text. So
you select 'new' within the
workplace you need to select 'text' as the type.

However, are you sure you should be doing this? If thats navigation you are
building should you not be building it
dynamically with a jsp anyway.

Keith


On 5/11/06, Nick DeSteffen <Nick.DeSteffen at wausaubenefits.com> wrote:
>
>
> Ok, that works, however nothing is being displayed on the screen, when I
> view source I can read this, it looks like it's comming through as XML.  I
> created the page as Page with free text.
>
>  <?xml version="1.0" encoding="UTF-8"?>
>
> <pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd
> ">
>  <page language="en">
>    <element name="NavigationLinks">
>      <links/>
>      <content><![CDATA[<h2>Our Services</h2>Health Plan
> <br />Pharmacy
> <br />Workers Comp
> <br />
> <h2>General Links</h2>News Room
> <br />Careers
> <br />Contact Us]]></content>
>    </element>
>  </page>
> </pages>
>
> Nick DeSteffen
> Fiserv Health - Wausau Benefits
> Web Development Group
> nick.desteffen at wausaubenefits.com
> (715) 841-6036
>
>
>  *"Keith Davey" <keith.davey at gmail.com>*
> Sent by: opencms-dev-bounces at opencms.org
>
> 05/11/2006 02:33 PM
>  Please respond to
> The OpenCms mailing list <opencms-dev at opencms.org>
>
>   To
> "The OpenCms mailing list" <opencms-dev at opencms.org>  cc
>
>  Subject
> Re: [opencms-dev] Jsp Template import VFS page
>
>
>
>
>
>
> Hi Nick,
>
> You are including the file as a url, the /opencms/opencms/ start is for
> http urls.
>
> You need to get the path to the file in the VFS, which would start with
> /sites/default/ if you have
> your workplace set up as per normal.
>
> So I would guess you want something like:
> <%@ include
> file="/sites/default/FiservHealth/FiservHealthNavigationLinks.html" %>
>
> Keith
>
>
> On 5/11/06, *Nick DeSteffen* <*Nick.DeSteffen at wausaubenefits.com*<Nick.DeSteffen at wausaubenefits.com>>
> wrote:
>
> Hi Keith, thanks for the quick response.
>
> In my jsp template I added this line, just like yours.
> <%@ include
> file="/opencms/opencms/FiservHealth/FiservHealthNavigationLinks.html" %>
>
> When I goto a page I created using the template I get this....
> /WEB-INF/jsp/offline/system/modules/com.fiservhealth.contentmanagement.templates/templates/FiservHealthHomePage.jsp(28,3)
> File "/opencms/opencms/FiservHealth/FiservHealthNavigationLinks.html" not
> found
>
> Any more ideas?
>
>
> Nick DeSteffen
> Fiserv Health - Wausau Benefits
> Web Development Group*
> **nick.desteffen at wausaubenefits.com* <nick.desteffen at wausaubenefits.com>
> (715) 841-6036
>
>   *"Keith Davey" <**keith.davey at gmail.com* <keith.davey at gmail.com>*>*
> Sent by: *opencms-dev-bounces at opencms.org*<opencms-dev-bounces at opencms.org>
>
> 05/10/2006 04:45 PM
>   Please respond to
> The OpenCms mailing list <*opencms-dev at opencms.org*<opencms-dev at opencms.org>
> >
>
>
>   To
> "The OpenCms mailing list" <*opencms-dev at opencms.org*<opencms-dev at opencms.org>
> >  cc
>
>  Subject
> Re: [opencms-dev] Jsp Template import VFS page
>
>
>
>
>
>
>
>
> Hi Nick,
>
> There is nothing to stop you using a normal jsp include. We recently built
> *
> **www.shannonairport.com* <http://www.shannonairport.com/>.
>
> The dropdown in the middle of the page is created by:
> <%@ include file="/sites/default/shannonairport/interested.txt" %>
>
> This line is in the jsp template for the site.
>
> Keith
>
> On 5/10/06, Nick DeSteffen <*Nick.DeSteffen at wausaubenefits.com*<Nick.DeSteffen at wausaubenefits.com>>
> wrote:
> >
> > Hi,
> > I want to create a JSP template for our users to use when creating
> pages.  I
> > want this template to always import another page from the VFS that our
> users
> > will also maintain.  Any ideas on how to go about doing this?
> >
> > Your help is greatly appreciated.
> >
> > Nick DeSteffen
> >  Fiserv Health - Wausau Benefits
> >  Web Development Group
> >  *nick.desteffen at wausaubenefits.com* <nick.desteffen at wausaubenefits.com>
> >  (715) 841-6036
> >
> > This communication is intended only for the recipient(s) named above;
> may be
> > confidential and/or legally privileged; and, must be treated as such in
> > accordance with state and federal laws. If you are not the intended
> > recipient, you are hereby notified that any use of this communication,
> or
> > any of its contents, is prohibited. If you have received this
> communication
> > in error, please return it to Nick DeSteffen and delete the message from
> > your computer system.
> >
> >
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> visit
> > *http://lists.opencms.org/mailman/listinfo/opencms-dev*<http://lists.opencms.org/mailman/listinfo/opencms-dev>
> >
> >
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> *
> **http://lists.opencms.org/mailman/listinfo/opencms-dev*<http://lists.opencms.org/mailman/listinfo/opencms-dev>
>
>
>
> This communication is intended only for the recipient(s) named above; may
> be confidential and/or legally privileged; and, must be treated as such in
> accordance with state and federal laws. If you are not the intended
> recipient, you are hereby notified that any use of this communication, or
> any of its contents, is prohibited. If you have received this communication
> in error, please return it to Nick DeSteffen and delete the message from
> your computer system.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> *
> **http://lists.opencms.org/mailman/listinfo/opencms-dev*<http://lists.opencms.org/mailman/listinfo/opencms-dev>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> This communication is intended only for the recipient(s) named above; may
> be confidential and/or legally privileged; and, must be treated as such in
> accordance with state and federal laws. If you are not the intended
> recipient, you are hereby notified that any use of this communication, or
> any of its contents, is prohibited. If you have received this communication
> in error, please return it to Nick DeSteffen and delete the message from
> your computer system.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060511/31a38855/attachment.htm>


More information about the opencms-dev mailing list