• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Where are tlds for struts 2.0.11 ?

 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I couldnt find tlds for Struts2.0.11, which were there in the previous versions. eg. struts-bean.tld ..

Pls let me know if theres any turnaround in new version..
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying internationalisation with Struts 2 using tiles.
Is there any other way to implement internationalisation?
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For i18n look at http://struts.apache.org/2.x/docs/localization.html
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Struts 2, all Struts custom tags are in one TLD. None of the Struts 1 tags will work with Struts 2, nor are they needed.
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the info..

Im trying to use internationalisation using Struts2.

My jsp looks like this:




Im using tiles..
In the output I couldnt get the value of the key "welcome" from the ApplicationResources_en_US.properties .

Instead I get "welcome" printed on the screen.

My console prints the following :

2008-Jan-16 10:16:10,671 - DEBUG com.opensymphony.xwork2.util.InstantiatingNullHandler - Entering nullMethodResult
2008-Jan-16 10:16:10,671 - DEBUG com.opensymphony.xwork2.util.LocalizedTextUtil - Unable to find text for key 'welcome' in class 'com.opensymphony.xwork2.ActionSupport' and locale 'en_US'
2008-Jan-16 10:16:10,671 - DEBUG com.opensymphony.xwork2.util.InstantiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork2.ActionSupport@fa0094, com.opensymphony.xwork2.DefaultTextProvider@4adb34], property=org]
2008-Jan-16 10:16:10,671 - DEBUG com.opensymphony.xwork2.interceptor.I18nInterceptor - after Locale=en_US
2008-Jan-16 10:16:10,671 - DEBUG com.opensymphony.xwork2.interceptor.I18nInterceptor - intercept }





Please help me understand...
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simple hlloworld example used Internalization.Take a look at this below link.and download a sample login,hello world application.
look at here
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the link !!

I tried out the example but it couldnt locate my properties file, there fore displays the strings in my jsp...

Where exactly should I place my properties ?

How does struts know the location of properties file ?
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once again: http://struts.apache.org/2.x/docs/localization.html
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got it working...

Thanks all.

I've learned the following:

Struts2 automatically locates and calls the properties files without configuring anywhere.

Unlike previous versions of Struts, the present version has only one integrated tld which does most of the work done by the bunch of previous tlds.

I can send you the example if anybody needs .

Thanks
 
Ranch Hand
Posts: 57
Eclipse IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can you send the example, I am facing problems as I am using Struts Portal Bridge and my application is in Struts2. So its giving parsing errors for TLD and all.

Any help will be greatly appreciated.

Thanks..
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Ankur Sr", please check your private messages for an important administrative matter.
 
Danger, 10,000 volts, very electic .... tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic