Is this possible? - I've tried Edit | Tag Libraries | JSP | Import from file selected struts-html.tld and can add the tags to my JSP page - the problem is nothing appears in the Design view window & browser preview (viewing source code shows untranslated tags) I'm guessing I need to somehow specify the struts.jar file but can't find anyway how to do it? any ideas thanks harry
I don't think they will appear in the Preview Window. The reason is because the Struts Tags get parsed and compiled and then are sent back to the browser as HTML. There is no way for Dreamweaver to handle the struts tags for displaying purposes. Dreamweaver has no JSP/Servlet Container engine to do this. Unless there is someway to tell Dreamweaver where Tomcat is and to pass information back and forth between the 2. However, i highly doubt this is possible. It would be nice to be wrong though.
Harry, 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: out...) . So I inserted the following lines to configure DW to understand theses tags :