Web tools - release notes

1.0 Introduction
2.0 Changes from the previous release
3.0 Limitations
   3.1 Color selection function on GTK window system
   3.2 Cannot input DBCS Kanji by using Candidate Window in Web Site Designer
   3.3 Cases when a page template will not be applied to a Web page
4.0 Known problems
   4.1 JSP Validator does not auto-compile on dependent Java changes
   4.2 Performance Tip: Close inactive projects
   4.3 Performance Tip: Disabling automatic validation
   4.4 Files are not created by the Web Tooling Wizards in read-only folders on Linux
   4.5 Page Designer Toolbar menu customization limitation
   4.6 Broken Link warning on Applets
   4.7 Inserting applets in HTML and JSP files using Page Designer
   4.8 JSPs should use explicit import statements.
   4.9 Migrating relational data in 4.0.3 Web projects
   4.10 JSPs and Java Servlets that are designed in a DBCS environment for a J2EE 1.3 level on the WebSphere 5 server require an extra code snippet
   4.11 Dragging and dropping items onto Quick Edit view
   4.12 Using Snippet view items with simple actions in the Quick Edit view
   4.13 Mobile language support for Page Designer
   4.14 Page template support for Page Designer
   4.15 Notes for using site parts with Web Site Designer
   4.16 Displaying euro signs in Page Designer's Design page on Motif
   4.17 Double-clicking content assist proposals on DBCS locale
   4.18 Search annotations on unsaved files in editors
   4.19 ClearCase restrictions using Web Site Designer or Page templates
   4.20 Javascript Form Submit Problem in JSP's generated by Database Web Pages Wizard

1.0 Introduction

The Web development environment in WebSphere Studio provides the tooling necessary to develop Web applications.  Web applications include static Web pages, JavaServer Pages (JSPs), Java Servlets, an XML deployment descriptor (web.xml), and other Web resources.  This readme file describes the known problems, limitations, and workarounds that are associated with tools used in the Web development environment.

2.0 Changes from the previous release

The Web Content and Java Source folder names within a Web project are now configurable. The default names are WebContent and JavaSource; however, default names for new Web projects can be changed on the Web Tools->New Project Preferences page. Folders for existing projects can be renamed using the Navigator.
NOTE: Folder names other than the defaults are not compatible with WebSphere Studio Version 5.0.0. Do not change the default names if you need to maintain workspace compatability with version 5.0.0.

Two new views have been added to the Web perspective to assist in HTML/JSP page editing. The Palette view contains a set of items which can be dragged and dropped onto a Web page in Page Designer. The Quick Edit view allows users to add/edit scripts and tag events' scripts in Page Designer. For more details, please refer to the Help system.

3.0 Limitations

3.1 Color selection function on GTK window system

You can pick up a color on the screen from the Colors view, Attributes view and Styles view; however, this function does not work on GTK window systems. Please select the Motif window system if you want to use the color selection function.

3.2 Cannot input DBCS Kanji by using Candidate Window in Web Site Designer

In Web Site Designer, when using the candidate window of 'canna' to edit text fields, inputting DBCS KANJI fails.
In order to avoid this problem, use 'Wnn' instead of 'canna'. Refer to an installation manual for the operating system for more information.

3.3 Cases when a page template will not be applied to a Web page

There are several circumstances that can cause a page template to not be applied to a Web page when using any of the page template wizards:

4.0 Known problems

4.1 JSP Validator does not auto-compile on dependent Java changes

The JSP validator will not automatically re-validate a JSP file when a Java class that it references is changed. The JSP validator can be re-run on the file by selecting it in the Project Navigator and selecting Run Validation from the context menu.

4.2 Performance Tip: Close inactive projects

It is recommended that you close any projects that are you are not actively working with to improve performance. Only open projects are rebuilt when a Rebuild All is performed.

4.3 Performance Tip: Disabling automatic validation

By default, validators are automatically run when you save resources in a Web project. If you do not want validators to run automatically when you save these resources, open the Web project Properties dialog from the context menu in the J2EE Navigator view. Then enable the Override validation preferences option and disable the Run validation automatically when you save changes to resources option from the Validation page. You can also disable automatic validation (and builds) for all projects by selecting Window > Preferences and disabling Perform build automatically on resource modification from the Workbench page. If you disable automatic builds, you can manually run a build (and validation) by selecting Project > Rebuild Project.

4.4 Files are not created by the Web Tooling Wizards in read-only folders on Linux

Files are not generated and no error message is given when you try to create files in a read-only folder on Linux.

4.5 Page Designer Toolbar menu customization limitation

After customizing the toolbar using the Customize Perspective dialog (accessed by selecting Window > Customize Perspective), the Page Designer Toolbar menu cannot be used to further customize the toolbar. In this case, you must use the Customize Perspective dialog to customize which toolbar items are displayed.

4.6 Broken Link warning on Applets

LinksBuilder may incorrectly flag the code attribute value of an applet as an invalid link if a fully qualified Java classname is used:

<applet code="aaa.bbb.AnApplet" codebase="MyApplets">
This warning can safely be ignored and does not affect the behavior of the applet when it is run on the server.

This warning can be avoided by using a path separator ('/') instead of the ('.') separator, and ensuring that the .class extension is explicitly stated. For example:

<applet code="aaa/bbb/AnApplet.class" codebase="MyApplets">

4.7 Inserting applets in HTML and JSP files using Page Designer

The Java source folder (by default, JavaSource) of a Web project is for server-side classes, so the source code for applets cannot be placed in this folder. Therefore, the following is recommended when developing applets:

  1. Create a Java project for applets and create the applet classes in the project.
  2. Copy applet class files to the Web content folder (by default, WebContent) of a Web project. Do not copy them to the WEB-INF folder, because the folder is for server-side classes only. (In order to see the class files, you will need to change the Project Navigator view filters by selecting Filters from the view's Menu button drop-down list.
  3. Insert an applet in a Web page by selecting Insert > Others > Java Applet in Page Designer. At that time, you must set appropriate code and codebase attributes.

    For example, if your applet class is aaa.bbb.AnApplet and the file structure is as follows:

     WebContent/index.html
    WebContent/MyApplets/aaa/bbb/AnApplet.class
    code is "aaa.bbb.AnApplet"

    then the applet tag in index.html should contain:

    codebase is "MyApplets"

4.8 JSPs should use explicit import statements.

JSP files should use the 'import' attribute of the page directive to describe the types that are available to the scripting environment in that page. Some types may have been implicitly imported in JSP files contained in J2EE1.2 projects, but will show errors if used in a J2EE1.3 project. To avoid this problem, types should always be explicitly imported in the JSP page (unless the type is included in the default import list: java.lang.*, javax.servlet.*, javax.servlet.jsp.*, and javax.servlet.http.*).

4.9 Migrating relational data in 4.0.3 Web projects

To migrate relational data from WebSphere Studio 4.0.3 projects, you will need to do the following.

  1. From a 4.0.3 workspace, generate DDL files for each available database.
  2. Remove the database from the Web Project source/databases folder (via Data Definition view)
  3. Open the 4.0.3 workspace with WebSphere Studio Version 5.
  4. Migrate the Web projects for which you wish to restore relational data.
  5. Click File > Import > File System, and specify the DDL file(s) from your 4.0.3 workspace.
  6. In the Data Definition view of the Data Perspective, select Run against Local, and specify the target Web project.

The relational data artifacts will be restored.

4.10 JSPs and Java Servlets that are designed in a DBCS environment for a J2EE 1.3 level on the WebSphere 5 server require an extra code snippet

This entry applies to JSPs and Java Servlets that are designed in a DBCS environment for a J2EE 1.3 level on the WebSphere 5 server. The following code snippet has to be included in the source before accessing any request parameters or attributes:

  if(request.getCharacterEncoding() == null){  
request.setCharacterEncoding( <encoding>); // typically this would be the encoding of the JSP or servlet
}
//...normal jsp/servlet code which access request objects like
// <%=request.getParameter("message")%>

If the above is not done, and the request does not include encoding information, then all the request parameters would be parsed in ISO-8859-1 so if any of the input parameters included DBCS characters they would appear incorrectly.

4.11 Dragging and dropping items onto Quick Edit view

Before dragging and dropping items or text from the Snippets or Palette view onto the Quick Edit view, first make sure the Quick Edit view is cleared of the "Insert an action/code snippet" instruction.

4.12 Using Snippet view items with simple actions in the Quick Edit view

For each JavaScript Snippet view item, there is a corresponding simple action available in the Quick Edit view. In the Quick Edit view, it is not recommended to combine the use of simple actions with items from the Snippets view in the same event script. If the items must be combined, be careful of the Snippet item placement. Dragging and dropping items from the Snippets view onto the Quick Edit view when the editor already contains simple actions, may cause the Snippet item to be inserted into the wrong place. If this occurs, delete and reinsert the simple action.

4.13 Mobile language support for Page Designer

Attributes that are unsupported in mobile languages, such as cHTML or WML, can be inserted from the Insert dialog or from the Attributes view.
However, you can check the validity of the code by using Tools > Validate HTML Syntax for a cHTML document, or by Tools > Validate WML Syntax for a WML document.

4.14 Page template support for Page Designer

Page templates are supported only by Page Designer, not Page Designer Classic. You can use Page Designer to edit a HTML/JSP page using a Page template function.

4.15 Notes for using site parts with Web Site Designer

4.16 Displaying euro signs in Page Designer's Design page on Motif

Page Designer can not display euro signs on the Design page when it is running on a Motif system. To display the symbol, a GTK system must be used.

4.17 Double-clicking content assist proposals on DBCS locale

When using Linux (Motif or GTK) and a DBCS locale, double-clicking on the content assist list can sometimes cause the Java VM to terminate. Instead of double-clicking on the list, use the arrows and Enter keys to make the selection from the list.

4.18 Search annotations on unsaved files in editors

In the Source Editor and the Source page of multi-page editors, like the XML Editor, the search function is working from the saved resource on the file system rather than from the contents of the editor. The search annotations in any unsaved editor may be unreliable. To avoid this problem, save the file before doing a search.

4.19 ClearCase restrictions using Web Site Designer or Page templates

If you use Web Site Designer to work on a Web project, you must first ensure that the project files, such as html or jsp files and related files, are checked out of the ClearCase repository.

Also, if you use Page templates in your Web project, you must first check the appropriate files out of ClearCase.

4.20 Javascript Form Submit Problem in JSP's generated by Database Web Pages Wizard

In some JSP's generated by the Database Web Pages Wizard especially one's titled '***MasterView.jsp'

the links in the page titled 'Back', 'Refresh' & others may not work on all browsers. Problems were noticed in some browsers especially like Mozilla & Konqueror.

To fix the problem for most browsers change the Javascript code for the function named 'submitForm' in the JSP.

Change the variable 'document.<formName>.elements.action' in the method to 'document.<formName>.action'.

For example function submitForm(nav){ if(nav == 'SCHEMA_TABLEInputForm'){ document.myForm.elements.action = "/Web3/SCHEMA_TABLEInputForm.html"; } else if(nav == 'SCHEMA_TABLEMasterView'){ document.myForm.elements.action = "/Web3/SCHEMA_TABLEMasterView"; } else{ document.myForm.elements.action = "/Web3/SCHEMA_TABLEDetailsView"; }

becomes

function submitForm(nav){ if(nav == 'SCHEMA_TABLEInputForm'){ document.myForm.action = "/Web3/SCHEMA_TABLEInputForm.html"; } else if(nav == 'SCHEMA_TABLEMasterView'){ document.myForm.action = "/Web3/SCHEMA_TABLEMasterView"; } else{ document.myForm.action = "/Web3/SCHEMA_TABLEDetailsView"; }

Return to the main readme file