This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 + AjaxTags JSTL not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 + AjaxTags JSTL not working" Watch "Struts2 + AjaxTags JSTL not working" New topic
Author

Struts2 + AjaxTags JSTL not working

Cooper Blake
Greenhorn

Joined: Feb 10, 2010
Posts: 1
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?

thanks,
Cooper
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 + AjaxTags JSTL not working
 
Similar Threads
jQuery autocomplete problem
How to use tooltip in Struts2
jsp:include/c:import acting like include directive?
datetimepicker + Struts2 + Ajax
trying to get an object from a map in struts2