• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where are tlds for struts 2.0.11 ?

 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I was trying internationalisation with Struts 2 using tiles.
Is there any other way to implement internationalisation?
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For i18n look at http://struts.apache.org/2.x/docs/localization.html
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
selvaraju sellamuthu
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • 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
 
Ankur Srivastav
Ranch Hand
Posts: 57
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • 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..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ankur Sr", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic