It works :)<br><br>Thank you !!!<br><br>So, if I want include the form in my own website, i have to create my own template, with my menus... that's the way?<br><br><div><span class="gmail_quote">2008/3/13, Bozidar Ilievski <<a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Header and footer inclusion is also handled by the form.jsp file.<br> <br> Look at the beginning of the file (around line 15), and you will see how<br> the header is included:<br> <br> if(showTemplate) {<br> // get the template to display<br>
template = cms.property("template", "search");<br> // include the template head<br> cms.include(template, "head");<br> }<br> <br> Also look at the end of the file:<br> <br> if(showTemplate) {<br>
// include the template foot<br> cms.include(template, "foot");<br> }<br> <br> You only need to set the "template" property for your Webform file.<br> If you don't have your own template, you can use some of the templates<br>
that sheep with OpenCms (TemplateOne or TemplateTwo for example).<br> <br> You can set this "template" property either to the Webform resource, or<br> to some of its parent folders.<br> <br><br> Regards,<br> Bobi.<br>
<br> Territorio Jordan-V. wrote:<br> <br>> I'm a newbie with opencms. So I try some scenarios.<br> ><br> > I try to make a website with registering module. But to register on the<br> > site, you have to answer to this form. But i'd like to include the form<br>
> in a page, with a header and a footer. When i make the webform using the<br> > opencms interface, the result use the form.jsp, but i don't know how to<br> > proceed to include a header (with links and menus and pictures) and a<br>
> footer.<br> ><br> > I thought that if i just had to included the form in a jsp (with header<br> > and footer) the problem would be resolved, but it wasn't.<br> ><br> > Maybe I don't have the good way of thinking ^^<br>
><br> > Have you an idea about it, Or some HowTos I could use?<br> > (soory for my english, i'm just a poor frenchy boy ^^)<br> ><br> > 2008/3/12, Bozidar Ilievski <<a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a><br>
<br>> <mailto:<a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a>>>:<br> <br>><br> > Hi.<br> ><br> > Why do you need to include this XML file into your JSP page?<br>
><br> > If you only need to display the form,<br> > there is already a JSP file that ships with the module,<br> > and is specially designed for displaying Webforms.<br> ><br> > You can find this file in this folder:<br>
> /system/modules/com.alkacon.opencms.formgenerator/pages/form.jsp<br> ><br> > Regards,<br> > Bobi.<br> ><br> ><br> > Territorio Jordan-V. wrote:<br> > > Hi<br> > ><br>
> > I have created a form using formgenerator module. here is the code<br> > > generated :<br> > ><br> > ><br> > > <?xml version="1.0" encoding="UTF-8"?><br>
> ><br> ><br> > > <AlkaconWebForms<br> > xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br> > <<a href="http://www.w3.org/2001/XMLSchema-instance%22">http://www.w3.org/2001/XMLSchema-instance%22</a>><br>
> xsi:noNamespaceSchemaLocation="opencms://system/modules/com.alkacon.opencms.formgenerator/schemas/form.xsd"><br> ><br> > ><br> > ><br> > > <AlkaconWebForm language="en"><br>
> > <MailFrom/><br> > > <MailTo/><br> > > <MailSubject/><br> > > <MailText name="MailText0"><br> > > <links/><br>
> > <content><![CDATA[<p><b>Mail Text</b></p><br> > ><br> > ><br> > > <p>ldqsfvbgmlsqdbfvuvbzsvbmseuvbpzeuvbpzubzmeujbzev zeujv zep zm<br>
> zuj zpmr zru rziu zrpmu zpmru zrpmubpzutb mrztb rzoub zrpub zmjtb<br> > ztptub zpmb mprzubt zutb mzjubt mqj bcvfb zteub ztujb pmtoubnzmb mtb<br> > mtubzpmb rzmtjb mrzubt t'zmob:ztkb zpmutnbâhgnjhg majngŕâ"(n"ja(<br>
> h'zmounb '-h z'mj hbmozunhzsmhn</p>]]></content><br> > ><br> > ><br> > > </MailText><br> > > <FormText name="FormText0"><br>
> > <links/><br> > > <content><![CDATA[<p><b>Form Text</b></p><br> > > <p>ldqsfvbgmlsqdbfvuvbzsvbmseuvbpzeuvbpzubzmeujbzev zeujv zep zm<br>
> zuj zpmr zru rziu zrpmu zpmru zrpmubpzutb mrztb rzoub zrpub zmjtb<br> > ztptub zpmb mprzubt zutb mzjubt mqj bcvfb zteub ztujb pmtoubnzmb mtb<br> > mtubzpmb rzmtjb mrzubt t'zmob:ztkb zpmutnbâhgnjhg majngŕâ"(n"ja(<br>
> h'zmounb '-h z'mj hbmozunhzsmhn</p>]]></content><br> > ><br> > ><br> > > </FormText><br> > > <FormFooterText name="FormFooterText0"><br>
> > <links/><br> > > <content><![CDATA[<p>Be sure you correctly named<br> > it...</p>]]></content><br> > ><br> > ><br> > > </FormFooterText><br>
> > <InputField><br> > > <FieldType><![CDATA[text]]></FieldType><br> > > <FieldLabel><![CDATA[Name your color]]></FieldLabel><br>
> > <FieldMandatory>true</FieldMandatory><br> > ><br> > ><br> > > <FieldValidation><![CDATA[[a-z]+]]></FieldValidation><br> > > <FieldErrorMessage><![CDATA[I said name it, stupid geek<br>
> !!]]></FieldErrorMessage><br> > > </InputField><br> > ><br> > > <FormConfirmation name="FormConfirmation0"><br> > ><br> > > <links/><br>
> > <content/><br> > > </FormConfirmation><br> > > </AlkaconWebForm><br> > > </AlkaconWebForms><br> > ><br> > ><br> > ><br>
> > But the is a problem when i try to include in a JSP file.<br> > > This is what i try to use these commands in my JSP file but i<br> > > encountered problems :<br> > ><br> > > <%@ include file="coucou.html" %> works but display has problem. The<br>
> > only things that appear on screen are texts. Box and TextArea are not<br> > > displaying and i don't know why. Even the label are not<br> > diplaying. I can<br> > > only see <p></p> balises.<br>
> ><br> > > <jsp:include page="coucou.html" flush="true" /> nullpointer exception<br> > > <cms:include file="coucou.html" element="body" /> sometimes work with<br>
> > diplay problems somentimes don't work<br> > ><br> > > <cms:contentload collector="singleFile" param="coucou.html" /><br> > Problem :<br> > > javax.servlet.jsp.JspException: Error reading resource from path<br>
> > "/coucou.html".<br> > ><br> > > Is there someone to help me?<br> > ><br> > > thank you<br> > ><br> > > --<br> > > TERRITORIO Jordan-Victor<br>
> > Projet Asterisk - Ingénieur d'Intégration<br> > > TEAMLOG – Ingenieurs 2000<br> > ><br> > ><br> ><br> > ><br> > ------------------------------------------------------------------------<br>
> ><br> > ><br> > > _______________________________________________<br> > > This mail is sent to you from the opencms-dev mailing list<br> > > To change your list options, or to unsubscribe from the list,<br>
> please visit<br> > > <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br> ><br> > --<br> > Bozidar Ilievski | <a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a><br>
<br>> <mailto:<a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a>><br> <br>> phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495<br> > Netcetera | 1000 Skopje | Macedonia | <a href="http://netcetera.com.mk">http://netcetera.com.mk</a><br>
><br> > _______________________________________________<br> > This mail is sent to you from the opencms-dev mailing list<br> > To change your list options, or to unsubscribe from the list, please<br>
> visit<br> > <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br> ><br> ><br> ><br> ><br> > --<br> > TERRITORIO Jordan-Victor<br>
> Projet Asterisk - Ingénieur d'Intégration<br> > TEAMLOG – Ingenieurs 2000<br> ><br> > +33 4 76 61 37 77<br> > +33 6 30 66 54 69<br> <br>> <a href="mailto:jot@teamlog.com">jot@teamlog.com</a> <mailto:<a href="mailto:jot@teamlog.com">jot@teamlog.com</a>><br>
<br>><br> ><br> > ------------------------------------------------------------------------<br> ><br> ><br> > _______________________________________________<br> > This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please visit<br> > <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br> <br> --<br>
Bozidar Ilievski | <a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a><br> phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495<br> Netcetera | 1000 Skopje | Macedonia | <a href="http://netcetera.com.mk">http://netcetera.com.mk</a><br>
<br> _______________________________________________<br> This mail is sent to you from the opencms-dev mailing list<br> To change your list options, or to unsubscribe from the list, please visit<br> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>TERRITORIO Jordan-Victor<br>Projet Asterisk - Ingénieur d'Intégration<br>TEAMLOG – Ingenieurs 2000<br><br>+33 4 76 61 37 77<br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com">jot@teamlog.com</a>