This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes whose internationalization features is good to use JSTL or jakarta tags? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

whose internationalization features is good to use JSTL or jakarta tags?

lokesh pattajoshi
Ranch Hand

Joined: Jul 29, 2009
Posts: 130
Hi Every body,
Can any body tell me which one is good(in the sense easy and flexible) to implement i18n in my normal(because i have not used any framework) web application..?except these do we have any good API to implement internationalization in my web application..?your response is highly appreciable..

Thanks and Regards
Lokesh

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

As you've been told, using the JSTL and format bundles is the easiest way to get I18N in an application that already exists. Do not use Struts 2 just for I18N; you'd need to rewrite your entire application. I simply cannot make this any clearer.
lokesh pattajoshi
Ranch Hand

Joined: Jul 29, 2009
Posts: 130
OK thanks.
Daia Yum
Greenhorn

Joined: Mar 23, 2009
Posts: 19
Use Spring Framework. This would be my best suggesstion.


Daia
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Introduce Spring into an already-existing application just for I18N?!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

Dayasankar Yumkhaibam wrote:Use Spring Framework. This would be my best suggesstion.

Just for internationalization? Surely you jest!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

To answer the question posed in the subject: why would you use a proprietary API when a standard one exists?
damodar kumar
Ranch Hand

Joined: May 19, 2008
Posts: 77

Hi,

There are many frameworks that support internationalization, among which you can adopt struts and spring framework.
struts is used for mostly web layer
where as spring is used for all the layers of application
choose the best framework that supports your application.


<a href="http://stackoverflow.com/users/668970/user668970" rel="nofollow">
<img src="http://stackoverflow.com/users/flair/668970.png" >
</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

I will repeat was has already been said: adopting a huge framework like Struts or Spring just to do i18n when the JSTL provides this capability would be beyond ridiculous!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

damodar kumar wrote:There are many frameworks that support internationalization, among which you can adopt struts and spring framework.

But the application *already exists*. Why promote the adoption of a framework for an existing, working application when all that's needed is I18N?

lokesh pattajoshi
Ranch Hand

Joined: Jul 29, 2009
Posts: 130
Yes i am fully agree with Newton view..Just for internationalization we shouldn't go for a framework better to use JSTL i18n tag library.

Regards,
Lokesh
in Mkumar
Greenhorn

Joined: Sep 08, 2008
Posts: 20
As you mention, you are not using any framework so, it is good to use JSTL to implement internationalization.

Manoj

lokesh pattajoshi
Ranch Hand

Joined: Jul 29, 2009
Posts: 130
yes.can you please tell me how to save locale in session using struts2 so that multiple jsp's can use that ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: whose internationalization features is good to use JSTL or jakarta tags?
 
Similar Threads
Need to implement subdomains for web application using GWT.
Where to start for adding i18n support to existing large J2EE based Web Application ?
Internationalization on J2ME
pagenation using jsp
Is Hibernate supports internalization, if yes then how can implement it?