*Hi all,
we are novice for ofbiz.* yesterday when we are trying to create the "Practice Application", noticed that on hitting the address in address bar of browser *http://localhost:8080/practice/control/person/main *or* http://localhost:8080/practice/control/main*, we got the same output of main page *http://localhost:8080/practice/control/main/person * or* http://localhost:8080/practice/main/person*, we got the same output of Person page. After a hrs of struggling found that it is also happens on the following links of demo site. *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/main/contactus http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus* out put are same. again it repeated with this also. *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main* * *Are we doing something wrong or silly mistakes? or it is a kind of bug "some redirection problem" or something else. Please guide us, your great help will be appreciated whole heartedly. Kashi, Himanshu & Santosh Singh. |
We generally use URLs of this type
http://localhost:8080/practice/control/* So, the correct URL for main page would be http://localhost:8080/practice/control/main And for person page it would be http://localhost:8080/practice/control/person -- Thanks & Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Santosh Singh wrote: > *Hi all, > we are novice for ofbiz.* > yesterday when we are trying to create the "Practice Application", noticed > that > on hitting the address in address bar of browser > *http://localhost:8080/practice/control/person/main > *or* http://localhost:8080/practice/control/main*, we got the same output of > main page > > *http://localhost:8080/practice/control/main/person > * or* http://localhost:8080/practice/main/person*, we got the same output of > Person page. > > > After a hrs of struggling found that it is also happens on the following > links of demo site. > > *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/main/contactus > http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus* > out put are same. > again it repeated with this also. > > *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main > http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main* > * > *Are we doing something wrong or silly mistakes? or it is a kind of bug > "some redirection problem" or something else. > > Please guide us, your great help will be appreciated whole heartedly. > > Kashi, Himanshu & Santosh Singh. > |
We just need to write URL
http://localhost:8080/practice/ then it internally append control/main to it. It is defined in indes.jsp : <%response.sendRedirect("control/main");%>. -- Thanks & Regards, Pankaj Savita Mob: +91 9890262476 Mail to: [hidden email] On Mon, Oct 18, 2010 at 9:34 AM, Atul Vani <[hidden email]>wrote: > We generally use URLs of this type > > http://localhost:8080/practice/control/* > > > So, the correct URL for main page would be > > > http://localhost:8080/practice/control/main > > > And for person page it would be > > > http://localhost:8080/practice/control/person > > > -- > Thanks & Regards > Atul Vani > Enterprise Software Developer > HotWax Media Pvt. Ltd. > http://www.hotwaxmedia.com/ > We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for > yourself. > > > Santosh Singh wrote: > >> *Hi all, >> we are novice for ofbiz.* >> yesterday when we are trying to create the "Practice Application", >> noticed >> that >> on hitting the address in address bar of browser >> *http://localhost:8080/practice/control/person/main >> *or* http://localhost:8080/practice/control/main*, we got the same output >> of >> main page >> >> *http://localhost:8080/practice/control/main/person >> * or* http://localhost:8080/practice/main/person*, we got the same output >> of >> Person page. >> >> >> After a hrs of struggling found that it is also happens on the following >> links of demo site. >> >> *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/main/contactus >> http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus* >> out put are same. >> again it repeated with this also. >> >> *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main >> http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main* >> * >> *Are we doing something wrong or silly mistakes? or it is a kind of bug >> "some redirection problem" or something else. >> >> Please guide us, your great help will be appreciated whole heartedly. >> >> Kashi, Himanshu & Santosh Singh. >> >> > |
In reply to this post by Santosh Singh
Hi Kashi, Himanshu, Santosh,
Check the parameters in web.xml and check the ControlServlet. This will help you how this is happening. After you are done on this then also check web.xml of ecommerce and CatalogServlet for http://demo-stable.ofbiz.apache.org/ecommerce/products/100/100. This will help you learn the request formation. Regards -- Chirag Manocha Emforium Software Pvt. Ltd. | ALL-IN Software +91-98735-47457 | +91-98263-19099 Please don't print this Email unless you really need to - this will preserve trees on planet earth. From: "Santosh Singh" <[hidden email]> To: [hidden email] Sent: Thursday, October 7, 2010 8:33:46 AM Subject: web path address problem, Is it a bug? *Hi all, we are novice for ofbiz.* yesterday when we are trying to create the "Practice Application", noticed that on hitting the address in address bar of browser *http://localhost:8080/practice/control/person/main *or* http://localhost:8080/practice/control/main*, we got the same output of main page *http://localhost:8080/practice/control/main/person * or* http://localhost:8080/practice/main/person*, we got the same output of Person page. After a hrs of struggling found that it is also happens on the following links of demo site. *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/main/contactus http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus* out put are same. again it repeated with this also. *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main* * *Are we doing something wrong or silly mistakes? or it is a kind of bug "some redirection problem" or something else. Please guide us, your great help will be appreciated whole heartedly. Kashi, Himanshu & Santosh Singh. |
Free forum by Nabble | Edit this page |