• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2 + AjaxTags JSTL not working

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

thanks,
Cooper
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic