This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing a Struts2 / JSP / Hibernate web application using Eclipse and Tomcat 6. I am currently experimenting with the use of the AjaxTags sourceforge tag library. The problem is that I cannot get AjaxTags to evaluate a JSTL EL attribute, and I suspect that Struts2 is somehow interfering.
All my HTML code is in JSP files. The AjaxTags example is:
In my code, I am including both the Struts2 tld and the AjaxTags one:
Incidentally, the code works fine if I just use SubSelect as the baseUrl, without fully qualifying it. But in some cases I may need an absolute path.
All I want is to be able to retrieve the current namespace path. In other JSP code I am successfully using the standard Struts2 methodology with <s:url>. My understanding is that while Struts2 does not support JSTL EL within Struts2 tags, it *should* allow third party tag libraries to evaluate JSTL EL where appropriate. Unfortunately, the AjaxTags tag never evaluates the baseUrl attribute, and it ends up in the HTML exactly as in the JSP.
I've tried declaring OGNL variables using <s:set> and accessing that with JSTL EL, but it never even attempts to evaluate. What am I missing?