use the marketing app for an example
BJ Freeman sent the following on 12/1/2008 4:28 AM: > Ok > you don't use regions for this > <view-map name="error" page="/error/error.jsp"/> > > the error.jsp > would be in the webapps/(componetname)/error/error.jsp > > > BJ Freeman sent the following on 12/1/2008 1:37 AM: >> I have not worked with ver 2.0 ,for a long time, hopefully some one that >> has will be able to respond. >> is there a reason you can not upgrade, besides being difficult. >> http://docs.ofbiz.org/display/OFBTECH/Upgrading+OFBiz+from+earlier+revisions >> >> Subramanya Hegde sent the following on 12/1/2008 1:17 AM: >>> i am using ofbiz 2.0... >>> i want to work in regions framework... plz help me ( to display the error) >>> >>> On Mon, Dec 1, 2008 at 2:20 PM, BJ Freeman <[EMAIL PROTECTED]> wrote: >>> >>>> what version are you using. >>>> regions has been depreciated in the trunk. >>>> my suggestion is the framework/example against what your are doing. >>>> also have you gone through the >>>> >>>> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application >>>> >>>> Subramanya Hegde sent the following on 11/30/2008 11:20 PM: >>>>> i included that messages.ftl in regions.xml, then also its not working. >>>>> what i hav done is it correct??? >>>>> >>>>> On Mon, Dec 1, 2008 at 12:19 PM, Chirag Manocha < >>>>> [EMAIL PROTECTED]> wrote: >>>>> >>>>>> Hello Subramanya, >>>>>> Try including messages.ftl which will show you validation error messages >>>> on >>>>>> your screen. >>>>>> >>>>>> >>>>>> Regards >>>>>> --- >>>>>> Chirag Manocha >>>>>> Enterprise Software Developer >>>>>> HotWax Media Pvt. Ltd. >>>>>> Website :- www.hotwaxmedia.com >>>>>> Contact :- +91.982.631.9099 >>>>>> >>>>>> >>>>>> >>>>>> Subramanya Hegde wrote: >>>>>> >>>>>>> hello chirag, >>>>>>> >>>>>>> i am trying to create employee details by using regions framework. i >>>> am >>>>>>> using same service method (createEmployee) which is already in ofbiz. >>>> The >>>>>>> error message is not being displayed when the mandatory fields are left >>>>>>> blank (field validation error). >>>>>>> here i hav included the part of code from my controller.xml , >>>>>>> >>>>>>> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>> xsi:noNamespaceSchemaLocation=" >>>>>>> http://ofbiz.apache.org/dtds/site-conf.xsd"> >>>>>>> <include >>>>>>> location="component://common/webcommon/WEB-INF/common-controller.xml"/> >>>>>>> <description>Party Manager Module Site Configuration >>>> File</description> >>>>>>> <owner>Copyright 2001-2008 The Apache Software Foundation</owner> >>>>>>> <errorpage>/error/error.jsp</errorpage> >>>>>>> >>>>>>> >>>>>>> <handler name="service-multi" type="request" >>>>>>> class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/> >>>>>>> <handler name="simplecontent" type="view" >>>>>>> class="org.ofbiz.content.view.SimpleContentViewHandler"/> >>>>>>> <handler name="jsonservice" type="request" >>>>>>> class="org.ofbiz.webapp.event.JSONServiceEventHandler"/> >>>>>>> <handler name="region" type="view" >>>>>>> class="org.ofbiz.webapp.view.RegionViewHandler"/> >>>>>>> <handler name="jsp" type="view" >>>>>>> class="org.ofbiz.webapp.view.JspViewHandler"/> >>>>>>> <handler name="jpublish" type="view" >>>>>>> class="org.ofbiz.content.webapp.view.JPublishViewHandler"/> >>>>>>> <handler name="http" type="view" >>>>>>> class="org.ofbiz.webapp.view.HttpViewHandler"/> >>>>>>> <handler name="java" type="request" >>>>>>> class="org.ofbiz.webapp.event.JavaEventHandler"/> >>>>>>> <handler name="dojojsonservice" type="request" >>>>>>> class="org.ofbiz.webapp.event.DojoJSONServiceEventHandler"/> >>>>>>> >>>>>>> <request-map uri="createEmployee"> >>>>>>> <security https="true" auth="true"/> >>>>>>> <event type="simple" path="org/ofbiz/party/user/UserEvents.xml" >>>>>>> invoke="createEmployee"/> >>>>>>> <response name="success" type="request-redirect" >>>>>>> value="viewprofile"/> >>>>>>> <response name="error" type="view" value="MyNewEmployee"/> >>>>>>> </request-map> >>>>>>> >>>>>>> <view-map name="MyNewEmployee" type="region"></view-map> >>>>>>> <view-map name="error" page="/error/error.jsp"/> >>>>>>> </site-conf> >>>>>>> ******************************************************************** >>>>>>> in regions.xml >>>>>>> >>>>>>> <define id='MY_REGION' template='/templates/main_template.jsp'> >>>>>>> <put section='title'>Application Page</put> >>>>>>> <put section='header' type="jpublish" >>>>>>> content="component://common/webcommon/includes/header.ftl"/> >>>>>>> <put section='appbar' type="ftl" >>>>>>> content="component://common/webcommon/includes/appbar.ftl"/> >>>>>>> <put section='appheader' type="ftl" >>>>>>> content="component://party/webapp/partymgr/includes/appheader.ftl"/> >>>>>>> <put section='content' content='/main.jsp'/> >>>>>>> <put section="error" content="/error/error.jsp"></put> >>>>>>> <put section='footer' type="ftl" >>>>>>> content="component://common/webcommon/includes/footer.ftl"/> >>>>>>> </define> >>>>>>> >>>>>>> <define id="MyNewEmployee" region="MY_REGION"> >>>>>>> <put section='title'>Employee Page</put> >>>>>>> <put section="content" content="/party/createEmployee.jsp"></put> >>>>>>> </define> >>>>>>> ************************************************************* >>>>>>> here is the exception >>>>>>> >>>>>>> ---- exception report >>>>>>> ---------------------------------------------------------- >>>>>>> [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; >>>>>>> this >>>>>>> stack trace shows where this is happening: >>>>>>> Exception: java.lang.Exception >>>>>>> Message: Error in simple-method [Create User >>>>>>> >>>>>>> >>>> [file:/C:/Documents%20and%20Settings/Administrator/integrated_ofbiz/ofbiz/applications/party/script/org/ofbiz/party/user/UserEvents.xml#createUser]]: >>>>>>> ; [Your Passwords do not match, Username in use, please choose >>>> another., >>>>>>> Password or verify password missing., Firstname is Missing, Lastname is >>>>>>> Missing, Address Line 1 is missing, City is missing, Zip/Postal Code is >>>>>>> missing, Country is missing, Email Address is missing] >>>>>>> ---- stack trace >>>>>>> --------------------------------------------------------------- >>>>>>> java.lang.Exception: Error in simple-method [Create User >>>>>>> >>>>>>> >>>> [file:/C:/Documents%20and%20Settings/Administrator/integrated_ofbiz/ofbiz/applications/party/script/org/ofbiz/party/user/UserEvents.xml#createUser]]: >>>>>>> ; [Your Passwords do not match, Username in use, please choose >>>> another., >>>>>>> Password or verify password missing., Firstname is Missing, Lastname is >>>>>>> Missing, Address Line 1 is missing, City is missing, Zip/Postal Code is >>>>>>> missing, Country is missing, Email Address is missing] >>>>>>> >>>>>>> >>>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) >>>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) >>>>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:867) >>>>>>> >>>>>>> >>>> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75) >>>>>>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1096) >>>>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:736) >>>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:136) >>>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleEvent(SimpleMethod.java:96) >>>>>>> >>>>>>> >>>> org.ofbiz.webapp.event.SimpleEventHandler.invoke(SimpleEventHandler.java:72) >>>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:444) >>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:276) >>>>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690) >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>>>>>> >>>>>>> >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259) >>>>>>> >>>>>>> >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) >>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) >>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) >>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) >>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) >>>>>>> java.lang.Thread.run(Thread.java:619) >>>>>>> >>>>>>> >>>> -------------------------------------------------------------------------------- >>>>>>> if u require any other information, plz tell me >>>>>>> >>>>>>> >>>>>>> On Mon, Dec 1, 2008 at 11:24 AM, Chirag Manocha < >>>>>>> [EMAIL PROTECTED]> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hello Subramanya, >>>>>>>> Can you exactly tell us what is actually happening?? >>>>>>>> like what are you getting on console and what request you are sending, >>>>>>>> what >>>>>>>> is the entry for request in controller.xml etc. >>>>>>>> >>>>>>>> -- >>>>>>>> Thanks and Regards >>>>>>>> --- >>>>>>>> Chirag Manocha >>>>>>>> Enterprise Software Developer >>>>>>>> HotWax Media Pvt. Ltd. >>>>>>>> Website :- www.hotwaxmedia.com >>>>>>>> Contact :- +91.982.631.9099 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Subramanya Hegde wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> hello amit, >>>>>>>>> >>>>>>>>> thanx for reply,but i hav already tried this, still it is not >>>> working. >>>>>>>>> can >>>>>>>>> u plz give me any other solution. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Dec 1, 2008 at 11:01 AM, Amit Sharma < >>>>>>>>> [EMAIL PROTECTED] >>>>>>>>> >>>>>>>>> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Hi Subramanya, >>>>>>>>>> >>>>>>>>>> put <errorpage>/error/error.jsp</errorpage> code above request-map >>>> tag >>>>>>>>>> in >>>>>>>>>> controller.xml and error.jsp will be in >>>>>>>>>> "webapp/<u r component name>/error" folder , >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> if i put this below code in controller.xml, not working >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> <errorpage>/error/error.jsp</errorpage> >>>>>>>>>>> plz.. anyone help me >>>>>>>>>>> >>>>>>>>>>> On Mon, Dec 1, 2008 at 10:43 AM, Subramanya Hegde < >>>>>>>>>>> [EMAIL PROTECTED]> wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> yes, i hav done that entry in controller.xml >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Mon, Dec 1, 2008 at 10:40 AM, Bharat Soni < >>>>>>>>>>>> [EMAIL PROTECTED]>wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> have you done this entry >>>>>>>>>>>>> <errorpage>/error/error.jsp</errorpage> >>>>>>>>>>>>> in controller.xml in your application >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> ----- Original Message ----- >>>>>>>>>>>>> From: "Subramanya Hegde" <[EMAIL PROTECTED]> >>>>>>>>>>>>> To: [email protected] >>>>>>>>>>>>> Sent: Monday, December 1, 2008 10:27:30 AM GMT +05:30 Chennai, >>>>>>>>>>>>> Kolkata, >>>>>>>>>>>>> Mumbai, New Delhi >>>>>>>>>>>>> Subject: not able to display error message >>>>>>>>>>>>> >>>>>>>>>>>>> hello sir, >>>>>>>>>>>>> >>>>>>>>>>>>> i am using the region framework... i am calling error.jsp in >>>> error >>>>>>>>>>>>> region.. >>>>>>>>>>>>> but i am unable to display the error message.. >>>>>>>>>>>>> what may be the problem??? >>>>>>>>>>>>> >>>>>>>>>>>>> regards >>>>>>>>>>>>> subbu >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> with regards >>>>>>>>>>>> >>>>>>>>>>>> Subramanya Hegde >>>>>>>>>>>> 9886253315 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>> >> > >
