• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts and DreamWeaver Mx.

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic