Importing a Web site into Web Site Designer
To populate Web Site Designer with Web pages and resources you can import an existing Web site. Once you have imported the Web site you can augment it by adding new pages, adding a page template, or adding a CSS.
Prerequisites: Create a Web project.
To import a Web site:
- In the Project Explorer view of the Web perspective, expand your Web project.
- Right-click WebContent and select Import.
- On the Select page of the Import wizard, select the source of the Web site that you want to import, for example FTP or HTTP. Click Next. Follow the instructions in the Import wizard. Click Finish when you have completed the wizard. All of the resources in your Web site are imported into your Web project.
If you receive warning of broken links in the Tasks view, set the context root of the Web project to the correct setting. A context root is the default relative path to the Web content from the server root when a Web project is published. To set the context root of your Web project, do the following:
- In the Project Explorer view of the Web perspective, right-click your Web project and select Properties.
- In the Properties window, click Web. In the Context Root field, enter the correct context root for your Web project. Click OK. Your Web site is updated with the correct context root.
Once you have imported the Web site into Web Site Designer, enable Web Site Designer support for your Web project. Once you have enabled Web Site Designer support, you can populate your Web site with the pages from the site that you imported. For more information, refer to
For more information on Importing a Web site, refer to the tutorial Import and augment an existing Web site.
Related tasks
Creating or importing Web pages and Web resources
Creating a Web page in Web Site Designer
Associating a Web page with a page icon
Adding an existing page to a Web site
Adding an existing Faces JSP page to a Web site
Adding frame pages to a Web site
Enabling Web Site Designer support for a Web project