9 Replies Latest reply on Jan 22, 2005 8:27 PM by julien1

    Portal page URL convention

    ivelin.ivanov


      It's not bad. Feel free to ignore my rant.

      Just "index.html?page=wiki" is not a very natural address for HTTP resource.

      I think we discussed once that it could be done with a filter that converts something like /host/portal/page/wiki into
      /host/portal/index.html?page=wiki




      -----Original Message-----
      From: Roy Russo
      Sent: Saturday, January 22, 2005 6:05 PM
      To: JBoss Labs
      Subject: Re: http://alpha.jbosslabs.org

      jbportal.jbosslabs.org/index.html?page=wiki
      jbportal.jbosslabs.org/index.html?page=forums
      jbportal.jbosslabs.org/index.html?page=admin
      jbportal.jbosslabs.org/files/

      Do you not like this?

      Roy Russo
      JBoss Portal Developer
      JBoss, Inc.
      404-noe-fone
      roy@jboss.com

      ----- Original Message -----
      From: "Ivelin Ivanov" <ivelin@jboss.com>
      To: "Roy Russo" <roy@jboss.com>; "Damon Sicore" <damon@sicore.org>
      Cc: "Julien Viet" <julien@jboss.org>; "Thomas Heute"
      <thomas.heute@jboss.com>
      Sent: Saturday, January 22, 2005 7:03 PM
      Subject: RE: http://alpha.jbosslabs.org



      Isn't it possible for consistency to have a naming convention like

      jbportal.jbosslabs.org/wiki
      jbportal.jbosslabs.org/files
      jbportal.jbosslabs.org/forums
      jbportal.jbosslabs.org/admin

        • 1. Re: Portal page URL convention
          ivelin.ivanov

          [from Julien]
          we cannot have /wiki /files, etc...

          because we cannot put a servlet with mapping /*, otherwise it will mask the tomcat DefaultServlet that we need to server content from portlets.

          • 2. Re: Portal page URL convention
            ivelin.ivanov

            how about mapping /page/* ?

            • 3. Re: Portal page URL convention

              it could, but need modifications because a page belong to a unique portal.

              so you need to issue the portal name as well.

              like /pages/myportal/forums

              • 4. Re: Portal page URL convention

                 

                "julien@jboss.com" wrote:
                it could, but need modifications because a page belong to a unique portal.

                so you need to issue the portal name as well.

                like /pages/myportal/forums


                Correct, but I think this is ugly.

                Also remember we are doing subdomain mapping for labs at the tomcat level, I believe.

                Google will still index these pages, and the main pages at least are still able to be bookmarked.

                • 5. Re: Portal page URL convention

                  for those who are interested the classes to look at are org.jboss.portal.core.impl.invocation.CoreInvocation and org.jboss.portal.impl.invocation.Invocation

                  they show how a request is decoded an turned down into an invocation and how an URL is generated.

                  it is really similar to the Invoker design we have in JBoss.

                  • 6. Re: Portal page URL convention

                    the important point at the end, is that it is not hardcoded and can be swapped easily.

                    my guess it is omething that will be tuned over time.

                    "roy.russo@jboss.com" wrote:
                    "julien@jboss.com" wrote:
                    it could, but need modifications because a page belong to a unique portal.

                    so you need to issue the portal name as well.

                    like /pages/myportal/forums


                    Correct, but I think this is ugly.

                    Also remember we are doing subdomain mapping for labs at the tomcat level, I believe.

                    Google will still index these pages, and the main pages at least are still able to be bookmarked.


                    • 7. Re: Portal page URL convention

                       

                      "julien@jboss.com" wrote:

                      it is really similar to the Invoker design we have in JBoss.


                      So what are the differences?


                      • 8. Re: Portal page URL convention

                        an invoker role in AS is to take the invocation and make it travel to the server,
                        it is splitted between the client and the server.

                        In my case, when the portlet creates a portlet URL which targets a portlet, let's
                        say an action. The PortletURL object toString() method is responsible for creating
                        a URL that will invoke the processAction() method on the component. So this
                        represents an invocation. It has a target, the portlet ID, a server to send
                        the invocation to and a bunch of parameters.

                        So there is a need for a mechanism that takes all of these and creates a URL that
                        will invoke the processAction() on the object with the specified parameters.
                        That mechanism is on the PortletURL side responsible for creating the URL and
                        it also sits in the servlet to receive the request/response, decodes the request
                        (id and parameters) and invoke the portlet.

                        • 9. Re: Portal page URL convention

                          I am not sure of that, but the benefits of having that design could be with WSRP which is another way to invoke portlets. It is a protocol based on SOAP which express the same invocation semantics defined on portlets.

                          But I am just speculating here.