[opencms-dev] recomend page from template one doesn't work in 6.0.0 final

Daniel Wiesner daniel.wiesner at av-studio.de
Mon Jul 11 10:57:10 CEST 2005


hello,

I found the solution:

in /system/modules/de.smg.homepage.templateone/pages/recommend.html I 
removed the attribute scope="request"



<jsp:useBean id="cms" 
class="de.smg.homepage.templateoneCmsTemplateFormRecommend" scope="request">
    <jsp:setProperty name="cms" property="*"/>
</jsp:useBean>



<jsp:useBean id="cms" 
class="de.smg.homepage.templateoneCmsTemplateFormRecommend" >
    <jsp:setProperty name="cms" property="*"/>
</jsp:useBean>

now it works as it should.

Daniel




Wiesner, Daniel schrieb:

>The recomend page feature doesn't work in the demo version og osms 6.0
>final. Has anyone get got it working?
>
>java.lang.NullPointerException
>	at org.opencms.jsp.CmsJspBean.getRequestContext(CmsJspBean.java:144)
>	at
>org.opencms.frontend.templateone.CmsTemplateFormRecommend.sendMail(CmsTempla
>teFormRecommend.java:161)
>	at
>org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_t
>emplateone.pages.recommend_html_jsp._jspService(org.apache.jsp.WEB_002dINF.j
>sp.offline.system.modules.org_opencms_frontend_templateone.pages.recommend_h
>tml_jsp:58)
>	at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
>
>regards daniel
>
>
>_______________________________________________
>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