In the previous chapter we introduced, from the browser to the server to get resources, you can use gzip to get the browser is compressed resources to reduce network download time, then we can consider from the source, that is, we from the source
Summarize:
When we add a folder to the control Panel, we actually insert a row of records in the Dlfolder table of the database: The record information contains the information entered by the user and the user's Id,repositoryid. The most subtle
1. Use redirection with Java code
Direct call
Result. jsp is the address of the page to be switched.
String portletName = (String)actionRequest.getAttribute(WebKeys.PORTLET_ID); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(
Portal object
1. Request The request types in the portal are action request and render request.
Therefore, the Portlet interface defines two methods to process different requests respectively.
Processaction (actionrequest request, actionresponse
Remove the unused content from the Portal Settings page:In the/portal-master/portal-impl/src/portal.properties file, the following configuration is available:# # Input A list of sections that would be included as part of the company# settings form. #
In order to make the user information closer to the actual needs, modify the following information:1, let the login name can use the number, ".", "_" and so onIn the/portal-master/portal-impl/src/portal.properties file, the following configuration
Demand:
Suppose we have the following requirements:
Assuming access to http://172.29.175.236:8080, the Http://172.29.175.236:8080/web/charles-site page is eventually accessed
Assuming access to Http://172.29.175.236:8080/web, the final access
There is a very interesting feature that is displayed in the text of the portlet added as shown in the following illustration:
When we have the text code for lowercase "add", then the final display is the upper case of "add", and we replace the
Of course, for picture files, we can not use yui-compressor to compress, but we can bar a number of small pictures sprite into a large picture and then give the coordinates of each picture, thereby reducing the number of network IO overhead.
The
Phenomenon:
Today, my colleague asked me a question, that is, he built a portlet for the MAVEN project, named Inter-portlet-communication-test, and then maven packs the $liferay_ There's one more file called
When booting Tomcat, console error:Com.liferay.portal.OldServiceComponentException:Build namespace ievents have Build number 444 which is newer than 438.This is because the Build.number is modified in the Service.properties file each time the
In the/portal-master/portal-impl/src/portal.properties file, the following configuration is available:# Input A list of sections that would be included as part of the form when# updating a site. #sites.
CDN services are generally not available in industry customers, so the CDN Dynamic resource feature is turned off by default:In the/portal-master/portal-impl/src/portal.properties file, the following configuration is available:Truefalse do not
1. Session Description in the Specification
(Portletsession objects must be scoped at the Portlet application context level. each Portlet application has its own distinct portletsession object per user session. the Portlet container must not share
1. Configure Tomcat and enable the SSL protocol.
1. Generate a key for SSL communication for Tomcat on the machine to be installed in CAS (that is, the server): keytool-genkey-alias Tomcat-KeyalgRSA: Enter the key password and the corresponding
For example, in view. jsp, you must pass the parameter value to list. jsp bloodname.
"/>
However, in list. jsp, use string bloodname = request. getparameter ("bloodname ");
The obtained value is garbled. Try to set the passed parameter value for
Code fragment:
As any Web site, the login page is an indispensable part, such as the corresponding map of the following login page:
The corresponding code fragment is in the/html/portlet/login/login.jsp under root application:
" method= "POST"
The project team is now developing with Maven, and the original non-MAVEN project is migrating to the MAVEN project, and for our development, we assume the following directory structure:
One of the items directly below the total project to create
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.