You might want to post your JSP code. But I thinks specifying the 'template' and 'theme' attributes of your JSP tag should do the trick. I blogged about this a while back:
http://arsenalist.com/2007/04/11/struts-2-form-control-templates/ Also make sure that when you extract your template/theme folders from the jar file and onto your file system that you give it a different name than what was in the jar. If the classloader sees two identical template/theme folders it will load the first one it sees and if they are named the same it might be loading the one in the jar and not the one on you want (the one on the file system). Does that make sense? Zarar On 6/24/07, Mansour <[EMAIL PROTECTED]> wrote:
I am not sure if that's what I need. As I mentioned in my original post, I have extracted the ajax them to /template/ajax and modified the template submit.ftl. The problem now is how to reference this template from my JSP. I DON'T want to change the theme. I need it to be ajax for this page. Musachy Barroso wrote: > http://cwiki.apache.org/WW/extending-themes.html > > musachy > > On 6/23/07, Mansour <[EMAIL PROTECTED]> wrote: >> >> Hello every one: >> I couldn't find an answer to this simple question on struts doc site. >> I need to modify the template for the submit button and remove the <tr> >> tag surrounding it in ajax theme. >> I extracted submit.ftl from struts jar (I am using 2.0.6). Did the >> modification I need, and now can not refrence it from my JSP. I tried >> using template and templateDir attributes but no luck. >> >> The modified template file is in /template/ajax/submit.ftl of my WEBAPP >> ROOT. Then I moved this directory to WEB-INF and no luck. >> >> I tried this template="/template/ajax/submit.ftl" and tried >> templateDir="/template/ajax" and templateDir="template" but no luck. >> >> can some one point out, how to do this. >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]