HtmlToXmlEdit Tutorial: > Attributes of Tag group
Previous Page Contents Next Page
OOP-Reserch home page

Contact Us

Attributes of Tag group

Attributes of Tag group...

When you click Open Editor button, another window will be pop up, along with a series of tag groups and values in its main list. As you notice, these tag groups and values are the elements in the XML to be edited.

image of HtmlToXmlEditor

[Figure 3]


In the upper part of this window, you will find the 6 buttons. They are:

ButtonWhat does it mean?
Append the tag to the end...: Open the dialog for tag group, by which you can specify the attributes for the new tag group. The newly created tag group will be appended to the end of the XML.
Append the value to the end...: Open the dialog for value, by which you can specify the attributes for the new value. The newly created value will be appended to the end of the XML.
Insert tag before the selection...: Open the dialog for tag group, by which you can specify the attributes for the new tag group. The newly created tag group will be inserted before the selected item in the list.
Insert value before the selection...: Open the dialog for value, by which you can specify the attributes for the new value. The newly created value will inserted before the selected item in the list.
Edit the selection...: Open the dialog for the selected tag group or value, by which you can edit the attributes for the selected tag group or value.
Delete the selection...: Delete the selected tag group or value from the XML.

The last 4 buttons will be activated only when you select the item in the list, while the first 2 buttons are always activated.

Let's start to walk through the example XML. With the dialog for the existing tag group and value, you can learn the attributes for them. Once you become familiar with these attributes, you can easily add/insert the new tag group or value.

Please click the first row in the list.

image of HtmlToXmlEditor

[Figure 4]


In this example, please click Edit the selection button. The dialog will pop up, along with the attributes of the selected tag group:

image of HtmlToXmlEditor

[Figure 5]


As you see, the attributes of tag groups are: In this example, the first attribute is email. What does this mean? If the request parameter of email is valid, the tags for the valid case will be selected. Otherwise, the tags for the invalid case will be selected. Please compare the tags for the invalid case with the ones for the valid case. They are almost the same set of HTML tags, but you will notice that the tags for the invalid case include the additional messages and HTML tags. These additional messages and HTML tags will be shown, only if the user enters the invalid e-mail address. With this set of tags is selected, your Servlet can show the CGI FORM again. And the CGI FORM at this time indicates the wrong input to the user.
Anyway, please click the Cancel button to close the dialog.

Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.


Previous Page Contents Next Page
OOP-Reserch home page

Contact Us


ALL CONTENTS COPYRIGHT 2002, Jun Inamori. All rights reserved.
Any questions and comments are welcome to Jun Inamori .