NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Zachary1234
Joined: 08 Nov 2008 Posts: 178
|
Posted: Sat Aug 08, 2009 12:45 am Post subject: Question concerning JSTL <fmt:setBundle/> <fmt:Bundle/> tags. |
|
|
How may I use the setBundle tag to specify a code context in one
JSP, and use the Bundle tag with that setBundle's basename
to load that bundle in a second, separate JSP?
Windows XP SP2, Netbeans 6.7
 |
|
| Back to top |
|
 |
Melongo Annabel Posted via mailing list.
|
Posted: Sat Aug 08, 2009 9:13 pm Post subject: Question concerning JSTL <fmt:setBundle/> <fmt:Bundle/> tags. |
|
|
Hopefully this helps: http://www.coderanch.com/t/291216/JSP/java/JSTL-setBundle-Tag-reload-resource
From: Zachary1234 <address-removed>
To: address-removed
Sent: Friday, August 7, 2009 7:45:44 PM
Subject: [nbj2ee] Question concerning JSTL <fmt:setBundle/> <fmt:Bundle/> tags.
How may I use the setBundle tag to specify a code context in one
JSP, and use the Bundle tag with that setBundle's basename
to load that bundle in a second, separate JSP?
Windows XP SP2, Netbeans 6.7
 |
|
| Back to top |
|
 |
Zachary1234
Joined: 08 Nov 2008 Posts: 178
|
Posted: Sun Aug 09, 2009 12:42 am Post subject: Further questioning on Bundle, setBundle |
|
|
Thanks for the example! I have reviewed it, however
it still doesn't really make sense to me in my situation.
I have programmed according to my text's example, which
increases my Angst somewhat.
I have the following on a page [b]second.jsp[/b]:
<fmt:setBundle basename="resources.bundle1" scope="application" var="contents"/>
The tag must be self closing, by the tag's own tld rules.
So from what I guess, it establishes the page namespace it is in
as a bundle. Correct?
I have this on my page [b]index.jsp[/b]:
<fmt:bundle basename="bundle1"/>
So how do I get bundle to see my referenced localisation context
in the other jsp file setBundle? Does bundle operate on any scope? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|