This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 + AjaxTags JSTL not working  RSS feed

Cooper Blake
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!