Re: Struts and javascript



If I have understood correctly, you are saying the problem is that the
<html:link/> tags in tree.js file are not being processed? If this is
the case, then I think the following might work:

1) Change the following line in tree.jsp:

<script language="JavaScript" src="/PracaMag/pages/tree.js"></script>
to
<script language="JavaScript"
src="/PracaMag/pages/tree_js.jsp"></script>

2) Rename tree.js to tree_js.jsp

The .jsp extension will trigger the servlet engine to process the
Javascript file as a JSP page, thus rendering the tags.

Does that help?

Regards
Ryan

.