Create a portal project in MyEclipse with WebSphere Portal Server (bottom)

Source: Internet
Author: User
Tags websphere application server

In the article Create a portal project with WebSphere Portal Server (above), the small section describes the required WebSphere Portal Server installation information, configures the WebSphere Portal connector, Access the portal Server from MyEclipse and create a portal project for WebSphere Portal, among other things. Next we will introduce the rest of the content, hope to help everyone.

5. Deploying Portlets

When you create portlets, they are ready to deploy to WebSphere Portal. Deploying Portlets is equivalent to deploying a normal JEE Web application in MyEclipse. When you deploy to WebSphere Portal, MyEclipse detects that your project contains a WebSphere portal-specific server auto-deployment portlet, so the project's portlets is registered correctly on Porta.

(1) Right-click the WebSphere Portal Server in the server view and select Debug.

Starting the server in debug mode

If your project is not deployed, right-click the server and select Add/remove deployments. After your Portlet project is deployed, add a new portal page next to the Portlet and test it.

(2) in the MyEclipse Web browser, open the Portal home page http://localhost:/wps/myportal.

(3) Log in to the portal application, and then click Edit Mode with the header.

(4) Click More, then select New Child Page.

Placing portlets on new pages that are added

(5) Set the page name and click Create.

(6) Click the Content tab, enter the name of your portlet in the search bar, and make sure that you are searching for all the content, and the results are displayed in the deployed portlet.

Search for deployed Portlets

(7) Click the Portlet, and then click Add to Page.

Add a portlet to a new page

(8) Click Save. When the portlet is created by the Portlet Wizard, the portlet displays the default message that is added to the. jsp file.

Portlet appears on the portal Server6. Testing and debugging Portlets

Your portlet application can now be tested and debugged just like any other JEE Web application deployed on a WebSphere application server. When you add or view portlet content on a portlet page, you can set breakpoints to debug your application. The MyEclipse Java debugger is shown to be parked on the Portlet class breakpoint.

Debugging Portlet Classes7. Canceling the deployment Portlet

Undeploy is very similar to removing the deployment correctly in the portal application and the server must be running. If you undeploy the portal, the configuration changes first, and then the JEE application (WAR) is undeploy from the server.

To undeploy the portlet, expand WebSphere Portal in the server view, right-click the Portlet application, and then click Add/remove Deployments.

Canceling the deployment Portlet8. Resources

    • How to make developing with WebSphere Portal faster
MyEclipse official Chinese online line, welcome to download Communication!

Create a portal project in MyEclipse with WebSphere Portal Server (bottom)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.