• 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

Unable to translate jsp with struts-html taglib

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone!
First I hope that the question is within the standards of the forum.

As for the problem per se,

I'm using Tomcat6.0.18, Eclipse3.4, jdk1.5. It seems tomcat cannot interpret correctly the html struts tag, although it seems that I have set the <taglib-location> pointing to the correct uri.

In my web.xml:

In my whatever.jsp:

And my StackTrace!


In the jsp I tried already moving the taglib to the first line: DID NOT WORK
Changed the uri in the taglib to, http://struts.apache.org/tags-html : DID NOT WORK
Tried pointing the uri directly to the tld file: DID NOT WORK

By the way also <html:radio> tag seems to have problems getting translated, so I suppose that all html:XXXX tags will end up the same. At the moment I haven't tested other struts taglibs (like logic or bean) but I guess the same would happen...

Right now I have no more ideas and any pointer would be deeply appreciated.

Thank you,
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By looking at the error, I think the error is because request.getAttribute return Object while it is expecting a String there. Use a type cast or a toString call like this...

 
Rade Treci
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot to mention that this works using JDeveloper and OC4J app server (need to make it work in Eclipse and Tomcat). I would like to make it work with minimum code changes (hopefully none, because there is a LOT to change). I just hope that this is a config problem.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Rade Treci
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic