-
1. Re: Portal page URL convention
ivelin.ivanov Jan 22, 2005 7:13 PM (in response to 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 Jan 22, 2005 7:14 PM (in response to ivelin.ivanov)how about mapping /page/* ?
-
3. Re: Portal page URL convention
julien1 Jan 22, 2005 7:17 PM (in response to ivelin.ivanov)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
roy.russo Jan 22, 2005 7:24 PM (in response to ivelin.ivanov)"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
julien1 Jan 22, 2005 7:25 PM (in response to ivelin.ivanov)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
julien1 Jan 22, 2005 7:27 PM (in response to ivelin.ivanov)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
juha Jan 22, 2005 7:49 PM (in response to ivelin.ivanov)"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
julien1 Jan 22, 2005 8:22 PM (in response to ivelin.ivanov)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
julien1 Jan 22, 2005 8:27 PM (in response to ivelin.ivanov)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.