NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Question concerning JSTL <fmt:setBundle/> <fmt:Bundle/> tags.

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Zachary1234



Joined: 08 Nov 2008
Posts: 178

PostPosted: Sat Aug 08, 2009 12:45 am    Post subject: Question concerning JSTL <fmt:setBundle/> <fmt:Bundle/> tags. Reply with quote

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

Smile
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Sat Aug 08, 2009 9:13 pm    Post subject: Question concerning JSTL <fmt:setBundle/> <fmt:Bundle/> tags. Reply with quote

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



Smile
Back to top
Zachary1234



Joined: 08 Nov 2008
Posts: 178

PostPosted: Sun Aug 09, 2009 12:42 am    Post subject: Further questioning on Bundle, setBundle Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo