Try to change the extension as .ftl or .jsp and see

-----Original Message-----
From: pardeep.ru...@lntinfotech.com [mailto:pardeep.ru...@lntinfotech.com]
Sent: Wednesday, August 05, 2009 2:08 PM
To: user@ofbiz.apache.org
Subject: RE: Access html page from controller.xml

Hi
Thanks for your reply. But when i followed your second try: I got this
exception:



org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.IllegalArgumentException: Rendering not yet supported for the
template at location: component://drools/webapp/drools/setup/hello.html
(Rendering not yet supported for the template at location:
component://drools/webapp/drools/setup/hello.html)


Thanks & Regards

Pardeep Ruhil
L&T Infotech Ltd
Mumbai
Ph: +919820283884

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech
Internal Use Only   L&T Infotech General Business

This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do
not use or disseminate the information, notify the sender and delete it
from your system.



Hemanth Kumar Kanamarlapudi <hemanth_kanamarlap...@mindtree.com>
08/05/2009 12:38 PM
Please respond to
user@ofbiz.apache.org


To
"user@ofbiz.apache.org" <user@ofbiz.apache.org>
cc
"pardeep.ru...@lntinfotech.com" <pardeep.ru...@lntinfotech.com>
Subject
RE: Access html page from controller.xml






Hi Pradeep,

Try 1:
Include
  <include
location="component://common/webcommon/WEB-INF/common-controller.xml"/>

In your controller.xml

There you have jsp handler

<handler name="jsp" type="view"
class="org.ofbiz.webapp.view.JspViewHandler"/>

So you can write simple html inside jsp itself and use it for html with
out having dynamic content.


Try 2 :

In controller.xml

<request-map uri="login">
  <response name="success" type="view" value="htmlscreen"/>
</request-map>
  <view-map name="htmlpage" type="screen"
page="component://componentname/widget/YourScreens.xml#htmlscreen "/>


In YourScreens.xml
  <screen name="htmlpage">
        <section>
            <widgets>
                    <platform-specific>
                            <html>
                              <html-template
location="component://componentfoldername/webapp/componentname/HtmlPage.html"/>
                          </html>
                      </platform-specific>
            </widgets>
        </section>
    </screen>


Regards
Hemanth

-----Original Message-----
From: pardeep.ru...@lntinfotech.com [mailto:pardeep.ru...@lntinfotech.com]
Sent: Wednesday, August 05, 2009 12:23 PM
To: user@ofbiz.apache.org
Subject: Access html page from controller.xml

Hi,
I want to call a html page from controller.xml. Is there handler for
rendering html pages in OFBiz.
Please help  me how to do this.
Thanks & Regards

Pardeep Ruhil


______________________________________________________________________

http://www.mindtree.com/email/disclaimer.html

______________________________________________________________________



______________________________________________________________________

http://www.mindtree.com/email/disclaimer.html

Reply via email to