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 site, you have to answer to this form. But i'd like to include the form in a page, with a header and a footer. When i make the webform using the opencms interface, the result use the form.jsp, but i don't know how to proceed to include a header (with links and menus and pictures) and a footer.<br>
<br>I thought that if i just had to included the form in a jsp (with header 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><div><span class="gmail_quote">2008/3/12, 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;">
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 xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" <<a href="http://www.w3.org/2001/XMLSchema-instance%22">http://www.w3.org/2001/XMLSchema-instance%22</a>> 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 zuj zpmr zru rziu zrpmu zpmru zrpmubpzutb mrztb rzoub zrpub zmjtb ztptub zpmb mprzubt zutb mzjubt mqj bcvfb zteub ztujb pmtoubnzmb mtb mtubzpmb rzmtjb mrzubt t'zmob:ztkb zpmutnbâhgnjhg majngŕâ"(n"ja( 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 zuj zpmr zru rziu zrpmu zpmru zrpmubpzutb mrztb rzoub zrpub zmjtb ztptub zpmb mprzubt zutb mzjubt mqj bcvfb zteub ztujb pmtoubnzmb mtb mtubzpmb rzmtjb mrzubt t'zmob:ztkb zpmutnbâhgnjhg majngŕâ"(n"ja( 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 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 !!]]></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 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" /> 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> > 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>