Hi all,
First of all, congratulation for the great job!

Hi would like to know if it is possible to use jstl (fmt) to localize portlet 
content in jsp pages.
My enviroment is jboss-portal 2.2 rc2 on windows 2k/xp.
I did some test... first, i imported jstl.jar and standard.jar from jstl apache 
distribution (version 1.1.2) to my portlet WEB-INF/lib directory. Then i tried 
with some parameter in web.xml:
To setting a resource bundle:

  |  <context-param>
  |   <param-name>
  |     javax.servlet.jsp.jstl.fmt.localizationContext
  |   </param-name>
  | 
<param-value>localizationportlet.nl.LocalizationPortletPortletResource</param-value>
  | </context-param>   
  | 
To set a default locale if nothing found:

  | <context-param>
  | <param-name>
  |   javax.servlet.jsp.jstl.fmt.fallbackLocale
  | </param-name>
  | <param-value>
  |   en
  | </param-value>
  | </context-param>
  | 
But without this, all my test rise a NullPointerException (with a little 
modification to apache code, it works without this... but it uses the fallback 
locale only):

  |   <context-param>
  |     <param-name>javax.servlet.jsp.jstl.fmt.locale</param-name>
  |     <param-value>en</param-value>
  |   </context-param> 
  | 
The problem is that this last parameter will force all to english locale.

I also looked at Kosmos project and i saw that they uses this last parameter to 
force only one locale.

I notice a strange thing: javax.portlet.title (from resource bundle) is 
correctly localized.

Ok that's my problem! So, because localization is very important  in my 
project, what can i do? (Using only standard) 
Can i work with jboss team on this issues? (if it is an issue!)

PS: I have experience with eclipse development, could i help with portal 
development in jboss-ide?

Thanks
Bye

Luca Forni

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920253#3920253

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920253


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to