I tried to set my struts 2 theme to simple in "struts.properties" file. But it is not reflecting when the application is deployed. But if i use the theme attribute on my form tag it is working properly. But in that case i am not able to read values from the packages.properties. Are these related issues?
Suggestions for working around this would be highly appreciated.
The "simple" theme form tags render *only* the input elements, not associated labels.
If that's what you mean by not being able to read from package.properties then yes, they're related. If you mean that you can't access *anything* from package.properties, then no, it's not related.
paddy Mahadeva Iyer
Joined: Feb 10, 2007
Its the first one! I am not able to read from it.
But that's ok. I have worked around it using "<s:text>" tag.
But the more important concern right now for me is that. I am not able to set the theme from the "struts.properties" file. When I set "ui.theme" to simple, it does not work. It takes the default theme ( i guess xhtml). How can i work around that?