Re: Tile Problem
Hi, You need to do the following in the jsp page, tiles:useAttribute name=title/ Then where you want the internationalized text to appear you use, bean:message name=title/ Oh yeah you will need to add your taglib references as follows, %@ taglib uri=/whateverYourPathIs prefix=tiles % %@ taglib uri=/whateverYourPathIs prefix=bean % Hope that helped, Tin Caroline Jen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tile Problem
I followed your suggestion. Now, when I ran my application, I got article.Main.title???en_US.??? displayed in the browser. Still, cannot pick up the article.Menu.title=Registered Members in the application.properties (which is located in the ApplicationRoot/WEB-INF/classes/resources folder). Here is my code: [CODE] . %@ taglib uri=/WEB-INF/lib/struts-bean-el.tld prefix=bean-el % html:html HEAD html:base/ TITLE./TITLE /HEAD BODY c:set var=titleKeytiles:getAsString name=title//c:setbean-el:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] -Caroline --- Jason Lea [EMAIL PROTECTED] wrote: Are you using the struts-el tags. You might have them installed as bean-el in which case you would need to use c:set var=titleKeytiles:getAsString name=title//c:setbean-el:message key=${titleKey}/ I only use the EL tags, so I just use bean as the tag prefix eg %@ taglib uri=/WEB-INF/jsp/tags/struts-bean-el.tld prefix=bean % Caroline Jen wrote: I tried both of your suggestions. For example, I have [code] . BODY c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/code] I got java.lang.IllegalArgumentException: can't parse argument number titleKey --- Jason Lea [EMAIL PROTECTED] wrote: If you are using JSTL you can do this: tile:useAttribute id=titleKey name=titlebean:message key=${titleKey}/ if that doesn't work, try this: c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ Caroline Jen wrote: In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tile Problem
Try the code below. This should work. [CODE] . %@ taglib uri=/WEB-INF/lib/struts-bean.tld prefix=bean % html:html HEAD html:base/ TITLE./TITLE /HEAD BODY tiles:useAttribute name=title/ bean:message name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:52 PM To: Struts Users Mailing List Subject: Re: Tile Problem I followed your suggestion. Now, when I ran my application, I got article.Main.title???en_US.??? displayed in the browser. Still, cannot pick up the article.Menu.title=Registered Members in the application.properties (which is located in the ApplicationRoot/WEB-INF/classes/resources folder). Here is my code: [CODE] . %@ taglib uri=/WEB-INF/lib/struts-bean-el.tld prefix=bean-el % html:html HEAD html:base/ TITLE./TITLE /HEAD BODY c:set var=titleKeytiles:getAsString name=title//c:setbean-el:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] -Caroline --- Jason Lea [EMAIL PROTECTED] wrote: Are you using the struts-el tags. You might have them installed as bean-el in which case you would need to use c:set var=titleKeytiles:getAsString name=title//c:setbean-el:message key=${titleKey}/ I only use the EL tags, so I just use bean as the tag prefix eg %@ taglib uri=/WEB-INF/jsp/tags/struts-bean-el.tld prefix=bean % Caroline Jen wrote: I tried both of your suggestions. For example, I have [code] . BODY c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/code] I got java.lang.IllegalArgumentException: can't parse argument number titleKey --- Jason Lea [EMAIL PROTECTED] wrote: If you are using JSTL you can do this: tile:useAttribute id=titleKey name=titlebean:message key=${titleKey}/ if that doesn't work, try this: c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ Caroline Jen wrote: In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - 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
RE: Tile Problem
Huraah!! tiles:useAttribute name=title/ bean:message name=title/ worked. I have been carrying this problem with me for quite some time. Finally got it. --- Avinash Gangadharan [EMAIL PROTECTED] wrote: Try the code below. This should work. [CODE] . %@ taglib uri=/WEB-INF/lib/struts-bean.tld prefix=bean % html:html HEAD html:base/ TITLE./TITLE /HEAD BODY tiles:useAttribute name=title/ bean:message name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:52 PM To: Struts Users Mailing List Subject: Re: Tile Problem I followed your suggestion. Now, when I ran my application, I got article.Main.title???en_US.??? displayed in the browser. Still, cannot pick up the article.Menu.title=Registered Members in the application.properties (which is located in the ApplicationRoot/WEB-INF/classes/resources folder). Here is my code: [CODE] . %@ taglib uri=/WEB-INF/lib/struts-bean-el.tld prefix=bean-el % html:html HEAD html:base/ TITLE./TITLE /HEAD BODY c:set var=titleKeytiles:getAsString name=title//c:setbean-el:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] -Caroline --- Jason Lea [EMAIL PROTECTED] wrote: Are you using the struts-el tags. You might have them installed as bean-el in which case you would need to use c:set var=titleKeytiles:getAsString name=title//c:setbean-el:message key=${titleKey}/ I only use the EL tags, so I just use bean as the tag prefix eg %@ taglib uri=/WEB-INF/jsp/tags/struts-bean-el.tld prefix=bean % Caroline Jen wrote: I tried both of your suggestions. For example, I have [code] . BODY c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/code] I got java.lang.IllegalArgumentException: can't parse argument number titleKey --- Jason Lea [EMAIL PROTECTED] wrote: If you are using JSTL you can do this: tile:useAttribute id=titleKey name=titlebean:message key=${titleKey}/ if that doesn't work, try this: c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ Caroline Jen wrote: In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html === message truncated === __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tile Problem
In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tile Problem
If you are using JSTL you can do this: tile:useAttribute id=titleKey name=titlebean:message key=${titleKey}/ if that doesn't work, try this: c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ Caroline Jen wrote: In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tile Problem
I tried both of your suggestions. For example, I have [code] . BODY c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/code] I got java.lang.IllegalArgumentException: can't parse argument number titleKey --- Jason Lea [EMAIL PROTECTED] wrote: If you are using JSTL you can do this: tile:useAttribute id=titleKey name=titlebean:message key=${titleKey}/ if that doesn't work, try this: c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ Caroline Jen wrote: In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tile Problem
Are you using the struts-el tags. You might have them installed as bean-el in which case you would need to use c:set var=titleKeytiles:getAsString name=title//c:setbean-el:message key=${titleKey}/ I only use the EL tags, so I just use bean as the tag prefix eg %@ taglib uri=/WEB-INF/jsp/tags/struts-bean-el.tld prefix=bean % Caroline Jen wrote: I tried both of your suggestions. For example, I have [code] . BODY c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/code] I got java.lang.IllegalArgumentException: can't parse argument number titleKey --- Jason Lea [EMAIL PROTECTED] wrote: If you are using JSTL you can do this: tile:useAttribute id=titleKey name=titlebean:message key=${titleKey}/ if that doesn't work, try this: c:set var=titleKeytiles:getAsString name=title//c:setbean:message key=${titleKey}/ Caroline Jen wrote: In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu extends=.article.Base put name=title value=article.Menu.title/ put name=content value=/article/content/menu.jsp/ put name=navbar value=/article/common/navbarMenu.jsp/ /definition [/CODE] The problem is that my application displays article.Menu.title in the browser, instead of going to the application.properties (which is in the ApplicationRoot/WEB-INF/classes/resources folder) to get article.Menu.title=Registered Members What should I do? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]