Hello, can someone advise me what would be the best way to set a default page for the ofbiz server? I want the url http://myofbizserver.example.com:8080/<http://myofbizserver.com:8080/> to serve a static page. I tried to make a new webapp named index and set it's mount-point to "/" in the ofbiz-component.xml file, but i'm not sure what type of entry to put in controller.xml. Any suggestions?
Thank you, David |
the mount point will be what url the index.jsp served up
if you use the script to create a componet the index.jsp will have <%response.sendRedirect("control/main");%> so you need a URI of main in the controller. ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man wdw sent the following on 1/28/2011 5:52 AM: > Hello, can someone advise me what would be the best way to set a default page for the ofbiz server? I want the url http://myofbizserver.example.com:8080/<http://myofbizserver.com:8080/> to serve a static page. I tried to make a new webapp named index and set it's mount-point to "/" in the ofbiz-component.xml file, but i'm not sure what type of entry to put in controller.xml. Any suggestions? > > Thank you, > David > |
if you use the create-componet script then the main is created for you.
========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man BJ Freeman sent the following on 1/28/2011 11:21 AM: > the mount point will be what url the index.jsp served up > > if you use the script to create a componet the index.jsp will have > <%response.sendRedirect("control/main");%> > so you need a URI of main in the controller. > > ========================= > BJ Freeman > Strategic Power Office with Supplier Automation > <http://www.businessesnetwork.com/automation/viewforum.php?f=52> > Specialtymarket.com <http://www.specialtymarket.com/> > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > > > wdw sent the following on 1/28/2011 5:52 AM: >> Hello, can someone advise me what would be the best way to set a >> default page for the ofbiz server? I want the url >> http://myofbizserver.example.com:8080/<http://myofbizserver.com:8080/> >> to serve a static page. I tried to make a new webapp named index and >> set it's mount-point to "/" in the ofbiz-component.xml file, but i'm >> not sure what type of entry to put in controller.xml. Any suggestions? >> >> Thank you, >> David >> > > |
In reply to this post by BJ Freeman
Thanks BJ, that got me going. I didn't create the webapp with a script, i followed instructions from https://cwiki.apache.org/OFBIZ/ofbiz-tutorial-a-beginners-development-guide.html and didn't end up with any index.jsp files. I had tried to make one before but i had them in the wrong directory i think.
What is the script to create a component by the way? Thanks! David ________________________________________ From: BJ Freeman [[hidden email]] Sent: Friday, January 28, 2011 2:21 PM To: [hidden email] Subject: Re: Map a request to / the mount point will be what url the index.jsp served up if you use the script to create a componet the index.jsp will have <%response.sendRedirect("control/main");%> so you need a URI of main in the controller. ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man wdw sent the following on 1/28/2011 5:52 AM: > Hello, can someone advise me what would be the best way to set a default page for the ofbiz server? I want the url http://myofbizserver.example.com:8080/<http://myofbizserver.com:8080/> to serve a static page. I tried to make a new webapp named index and set it's mount-point to "/" in the ofbiz-component.xml file, but i'm not sure what type of entry to put in controller.xml. Any suggestions? > > Thank you, > David > |
./ant or .\ant create-componet
for a description do a ./ant -p or .\ant -p ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man wdw sent the following on 1/28/2011 11:36 AM: > Thanks BJ, that got me going. I didn't create the webapp with a script, i followed instructions from https://cwiki.apache.org/OFBIZ/ofbiz-tutorial-a-beginners-development-guide.html and didn't end up with any index.jsp files. I had tried to make one before but i had them in the wrong directory i think. > > What is the script to create a component by the way? > > Thanks! > > David > ________________________________________ > From: BJ Freeman [[hidden email]] > Sent: Friday, January 28, 2011 2:21 PM > To: [hidden email] > Subject: Re: Map a request to / > > the mount point will be what url the index.jsp served up > > if you use the script to create a componet the index.jsp will have > <%response.sendRedirect("control/main");%> > so you need a URI of main in the controller. > > ========================= > BJ Freeman > Strategic Power Office with Supplier Automation<http://www.businessesnetwork.com/automation/viewforum.php?f=52> > Specialtymarket.com<http://www.specialtymarket.com/> > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > > > wdw sent the following on 1/28/2011 5:52 AM: >> Hello, can someone advise me what would be the best way to set a default page for the ofbiz server? I want the url http://myofbizserver.example.com:8080/<http://myofbizserver.com:8080/> to serve a static page. I tried to make a new webapp named index and set it's mount-point to "/" in the ofbiz-component.xml file, but i'm not sure what type of entry to put in controller.xml. Any suggestions? >> >> Thank you, >> David >> > > |
Free forum by Nabble | Edit this page |