aspose file tools*
The moose likes Struts and the fly likes Struts and DreamWeaver Mx. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and DreamWeaver Mx." Watch "Struts and DreamWeaver Mx." New topic
Author

Struts and DreamWeaver Mx.

Sami Casab
Greenhorn

Joined: Nov 28, 2001
Posts: 26
Hi EveryBody:
I want to modify struts tags inside dreamweaver mx, if found this for ultradev http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html and i want to know if exist an equivalent for dreamweaver mx (the new version of macromedia ultradev)
Thanks in advance.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts and DreamWeaver Mx.
 
Similar Threads
requirements to use JSTL
Doubt in question 10 of chapter 9 in SCWCD Study Guide - by David Bridgewater
Regarding c:forEach jstl tag.
Dynamic Content
Where to find jstl examples ?