You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Naresh Sharma <Na...@KeaneIndia.Com> on 2004/06/24 15:25:58 UTC
JSP:include page + Resource bundle
HI,
Please suggest, I wish to pass 'header' parameter to
CommandSaveIncludeHeader.jsp, the value inside 'header' parameter is
actually a key in Resource bundle.
See ex.
<jsp:include page="CommandSaveIncludeHeader.jsp">
<jsp:param name="header" value="global.commandinformation.title" />
</jsp:include>
I am not sure if any Struts tag is there for above statement. But this
scheme is also not working, on CommandSaveIncludeHeader.jsp page I am
getting header as
global.commandinformation.title1, not from the resource bundle.
Please suggest.
Regards
Naresh
Re: JSP:include page + Resource bundle
Posted by Kris Schneider <kr...@dotech.com>.
Or do the lookup in CommandSaveIncludeHeader.jsp.
Whatever.jsp:
-------------
<jsp:include page="CommandSaveIncludeHeader.jsp">
<jsp:param name="headerKey" value="global.commandinformation.title"/>
</jsp:include>
CommandSaveIncludeHeader.jsp:
-----------------------------
<bean:parameter id="headerKey" name="headerKey"/>
<bean:message name="headerKey"/>
Quoting Bill Siggelkow <bi...@bellsouth.net>:
> Perhaps this would work:
>
> <bean:define id="title">
> <bean:message key="global.commandinformation.title"/>
> </bean:define>
>
> <jsp:include page="CommandSaveIncludeHeader.jsp">
> <jsp:param name="header" value="<%= title %>" />
> </jsp:include>
>
> Naresh Sharma wrote:
>
> >
> >
> > HI,
> >
> >
> >
> > Please suggest, I wish to pass header parameter to
> > CommandSaveIncludeHeader.jsp, the value inside header parameter is
> > actually a key in Resource bundle.
> >
> > See ex.
> >
> > <jsp:include page="CommandSaveIncludeHeader.jsp">
> > <jsp:param name="header" value="global.commandinformation.title"
> />
> > </jsp:include>
> >
> > I am not sure if any Struts tag is there for above statement. But this
> > scheme is also not working, on CommandSaveIncludeHeader.jsp page I am
> > getting header as
> >
> > global.commandinformation.title1, not from the resource bundle.
> >
> >
> >
> > Please suggest.
> >
> >
> >
> > Regards
> >
> > Naresh
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: JSP:include page + Resource bundle
Posted by Bill Siggelkow <bi...@bellsouth.net>.
Perhaps this would work:
<bean:define id="title">
<bean:message key="global.commandinformation.title"/>
</bean:define>
<jsp:include page="CommandSaveIncludeHeader.jsp">
<jsp:param name="header" value="<%= title %>" />
</jsp:include>
Naresh Sharma wrote:
>
>
> HI,
>
>
>
> Please suggest, I wish to pass ‘header’ parameter to
> CommandSaveIncludeHeader.jsp, the value inside ‘header’ parameter is
> actually a key in Resource bundle.
>
> See ex.
>
> <jsp:include page="CommandSaveIncludeHeader.jsp">
> <jsp:param name="header" value="global.commandinformation.title" />
> </jsp:include>
>
> I am not sure if any Struts tag is there for above statement. But this
> scheme is also not working, on CommandSaveIncludeHeader.jsp page I am
> getting header as
>
> global.commandinformation.title1, not from the resource bundle.
>
>
>
> Please suggest.
>
>
>
> Regards
>
> Naresh
>
>
>
>
> ------------------------------------------------------------------------
>
>
> #######################################################################
> # This message is intended solely for the individual or entity to #
> # which it is addressed.This communication may contain information #
> # that is proprietary,privileged or confidential and otherwise legally#
> # exempt from disclosure. If you are not the named addressee, or have #
> # been inadvertently referenced in the address line, you are not #
> # authorized to read, print, retain, copy or disseminate this message #
> # any part of it. If you have received this message in error , please #
> # notify the sender immediately by e-mail and delete all copies of #
> # the message. #
> #######################################################################
>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org