In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1.1 problem description
After successfully logging in to the Portal system, do you want to jump to the default page specified by the system, restore the page where the user last exited, or let the user choose one of the above two ways? This depends on the option when the user logs in.
Let's use the following example to illustrate how to adjust.
Suppose I have two pages in the portal: one is the home page, which can be accessed anonymously, with Login's Portlet; in it, and the other is my Workbench, which needs to be verified.
After the home page login is successful, the system jumps to the home page after login, instead of automatically jumping to my workbench page.
Is it possible to automatically jump to my workbench page after successfully logging in to Portlet from the home page?
1.2 solution
The first method: add parameters to the WAS.
1. Establish URL mapping
After logging in to the Portal system as Super Admin wpsadmin, click "manage" → portal to set "→" URL Mapping to enter the URL mapping management interface, as shown in figure 1-1.
Figure 1-1 Select the "URL Mapping" project in the Portal management interface
Click the New context button to create a new URL map, as shown in figure 1-2. Enter the label signature and click the OK button. Label signatures can be entered freely, but only in English, numbers or their combinations, not in Chinese, such as "MyDefaultLoggedInPage".
Figure 1-2 create a new URL map
Click the OK button to return to the existing URL list, find the new entry in the list, and click the Edit Mapping button to the right of the entry, as shown in figure 1-3.
Figure 1-3 Click the Edit Mapping button to the right of the URL mapping entry to specify the page to which it is mapped
On the next page, select the page to which the mapping points, such as the "my Workbench" page, as shown in figure 1-4.
Figure 1-4 Select the page to map
Select the page to jump to, then click the OK button, and the URL mapping is created successfully, as shown in figure 1-5.
Figure 1-5 URL mapping created successfully
At this point, enter http://ip:port/wps/myportal/MyDefalutLoggedInPage in the address bar to jump to the my Workbench page, as shown in figure 1-6.
Figure 1-6 successful access to my Workbench through URL
2. Configure WP_ConfigService
Log in to the WAS console as WAS Super Admin wpsbind, click "Resources" → "Resource Environment"→" Resource Environment Providers ", as shown in figure 1-7.
Figure 1-7 enter the WAS resource environment provider interface
Select "WP_ConfigService" to enter the Portal configuration service interface, as shown in figure 1-8.
Figure 1-8 enters the Portal configuration service interface
Click the "Custom properties" link on the right and prepare to add parameters in the custom properties interface. Click the "New" button and add two parameters, redirect.login=true and redirect.login.url= http://localhost:port/wps/ myportal/test, as shown in figure 1-9.
Figure 1-9 adds two custom parameters
Restart the Portal server after saving it.
The second method: modify the login page code and redirect it directly.
Found an easy way to add it to LoginView.jsp 's form
In this way, you don't have to restart the server, just refresh the page.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.