Sami, this little �recipe� is for any
JSP tag.. I used it for JSTL... but as long it�s the generic way, you can do the same for the struts tags...
You can import a JSP tag library into Dreamweaver from a variety of file types.
To import a JSP tag library into Dreamweaver:
1. Open a JSP page in Dreamweaver.
2. Open the Tag Library Editor (Edit > Tag Libraries).
3. Click the plus (+) button and choose JSP > Import From File (*.tld, *.jar, *.zip).
4. Specify the .tld, .jar, or .zip file containing the tag library.
5. Enter a URI to identify the tag library.
The URI (Uniform Resource Identifier) often consists of the URL of the organization maintaining the tag library. The URL is not used to access the organization; it is used to uniquely identify the tag library.
6. Enter the prefix to be used with the tags.
The prefix is used to identify a tag on a page as part of a particular tag library.
7. Click OK.
In order to config DreamWeaver to recognize these tags among html tags, you must edit the Tags.xml file in C:\Program
Files\Macromedia\Dreamweaver #\Configuration\ThirdPartyTags
As I could not find a way to configure DW to understand a set of functions, I had to configure a behaviour for each one of them... like for JSTL the CORE taglibs (c:if... c
ut...) . So I inserted the following lines to configure DW to understand theses tags :
<tagspec tag_name="c:if" tag_type="nonempty" render_contents="false" content_model="script_model" icon="command.gif" icon_width="17" icon_height="15" parse_attributes="false" detect_in_attribute="true"></tagspec>
<tagspec tag_name="c
ut" tag_type="empty" render_contents="false" content_model="script_model" icon="command.gif" icon_width="17" icon_height="15" parse_attributes="false" detect_in_attribute="true"></tagspec>
That�s it !
Good luck !
F�bio