4 Replies Latest reply: Jun 28, 2011 9:57 AM by 871848 RSS

    URi design

    871848
      hi all,
      this harish i am wandering for hours to create a URi for a page with request something like this in ofbiz,
      book/harrypotter/shop/...

      please anyone be needful....
        • 1. Re: URi design
          gimbal2
          Your question is very vague. Please try to explain yourself in more detail.

          Are you perhaps trying to create a RESTful webservice? Or are you perhaps trying to call one?
          • 2. Re: URi design
            871848
            i am trying to call one here...
            i have home home uri..
            localhost/home-page/ from this when i request for another i should have URL like this,


            localhost/home-page/section-name/


            this is the below URL map which i am using and i am getting error like this
            <request-map uri="home-page/Subection">
            <security https="false" auth="false" />
            <response name="success" type="view" value="Subection1"/>
            <response name="error" type="view" value="error"/>
            </request-map>

            <view-map name="subsection" type="screen" page="component://exmaple/widget/NewScreens.xml#subsection"/>

            Error:
            ERROR rendering error page [error/error.jsp], but here is the error text: org.ofbiz.webapp.control.RequestHandlerException: No definition found for view with name [Securing-a-home-loan-as-a-first-time-buyer]
            • 3. Re: URi design
              gimbal2
              the trouble is that you are apparently searching for technical help with some sort of library or framework. Is it Apache Ofbiz by any chance, judging by the package name?

              http://ofbiz.apache.org/

              If you want help you should try to find it in a forum or mailing list for this specific product; this is a forum for Java programming problems, you will have very little chance getting help for specific products.


              However there is a generic piece of advice I can give you; when you get an exception, post the part of the message that is not specific to you (so no filenames, urls, whatever) into Google and see what you get. You are probably not the first person to have this problem. In this case paste

              "org.ofbiz.webapp.control.RequestHandlerException: No definition found for view with name"

              into Google. Perhaps you'll find the solution that way.
              • 4. Re: URi design
                871848
                thank u friend,
                it was really useful one ll try as u said.. :-)