- User types http://localhost:8080.
- Browser sends HTTP GET http://localhost:8080.
- Tomcat receives the request.
- Resolves the application (ROOT).
- R - Dispatches a request to Liferay.
- Calls the Invoker Filter REQUEST.
- Calls the VirtualHost filter that figures out the Group (Site).
- R - Generates a new request to the site's friendly URL (/web/guest) that follows the same path.
- This new request is handled by the Friendly URL Servlet:
web.xml#L330-L333
<servlet-mapping> <servlet-name>Friendly URL Servlet - Public</servlet-name> <url-pattern>/web/*</url-pattern> </servlet-mapping>
- R - It redirects to the main layout and triggers another request:
/c/portal/layout?p_l_id=4&p_v_l_s_g_id=0
. - This new request is handled by the Main Servlet:
web.xml#L302-L305
<servlet-mapping> <servlet-name>Main Servlet</servlet-name> <url-pattern>/c/*</url-pattern> </servlet-mapping>
- And it is delegated to the PortalRequestProcessor MainServlet.java#L204.
- The request is mapped to a LayoutAction PortalRequestProcessor.java#L414.
- The action calls layout.includeLayoutContent LayoutAction.java#L413.
- The layout is a content layout therefore the ContentLayoutTypeController handles the rendering modules/apps/layout/layout-type-controller/layout-type-controller-content/src/main/resources/META-INF/resources/layout/edit_layout/content.jsp.
- The rendered result is stored in request[LAYOUT_CONTENT] ContentLayoutTypeController.java#L207.
- The request is forwarded to portal-web/docroot/html/common/themes/portal.jsp.
- This jsp uses the theme taglib that retrieves the theme and calls the portal_normal.jsp template.
- This ends up being rendered by the theme's portal_normal.ftl.
- That calls portal-web/docroot/html/portal/layout.jsp which renders our layout inside the portal (tilesContent).
-
Notifications
You must be signed in to change notification settings - Fork 0
4lejandrito/liferequest
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
From http://localhost:8080 to HTML
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published