Since we often encounter situations in our previous projects that have been configured with Portlets but cannot be found in the dialog box, we will be careful to analyze where the text shown here comes from.
For the entire dialog, its code
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
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
For most HTTP requests, if we can get them to provide these resources in the form of compressed files, they can also be enormously efficient. All we need to do is turn on gzip, and then we can reduce the amount of network time it takes to download
(1) For particularly common files, such as the CSS files to be used by the EXT-JS library, you can have 2 choices:
Option 1: Put it in the root/html/common/themes/top_head.jsp:
..
" rel= "stylesheet" type= "Text/css"/> " "rel=" stylesheet
If we write a servlet ourselves, then define this and
Example:
For example, we have 2 servlet, one is called Ecvcheckservlet, one is called Sitespecservlet, we have the following servlet definition in Web.xml:
URL parameters are written in two different ways:
1.
var rank
= document.getElementById ("Rank"). Value;
var Parentcolumnwindow = window.open (' LiferayWindowState.POP_UP.toString ()%> ">
&rank= ' +rank+ '
',
' ParentColumn ', '
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
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.