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="titleKey"><tiles:getAsString 
name="title"/></c:set><bean-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="titleKey"><tiles:getAsString 
> name="title"/></c:set><bean-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="titleKey"><tiles:getAsString 
> >name="title"/></c:set><bean: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="title"><bean:message 
> >>key="${titleKey}"/>
> >>
> >>if that doesn't work, try this:
> >>
> >><c:set var="titleKey"><tiles:getAsString 
> >>name="title"/></c:set><bean: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]

Reply via email to