• 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

Value is not reflected in the language drop down while calling the ejb bean in the modify user

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

I am facing a issue while calling a ejb method in my jsp file.

I have a create/Modify user form.In the form i have select drop down called language.
LOCALE_CODE LOCALE_LANGUAGE_DESCRIPTION
en_US English
fr_CA French Canadian


In the language drop down the "LOCALE_LANGUAGE_DESCRIPTION" displayed is { English,French Canadian}

But while creating user/modify user its code is updated in LOGIN_USER i.e either en_US(if you have select English) else fr_CA(if selected French Canadian)

Properly the language value is updated in the database while creating/updating user.

The problem i am facing is in the edit screen while edit the user details bydefault "English" is comming first value in the dropdown.But it should be happen like if
login name belongs en_US then first value of the drop down English.Else login name belongs fr_CA then first value in the drop down should be French Canadian.
But it is not happening.Always English IS comming first value while the modify user. But database level the value is properly updated.

I tried to print the system.out.println.SOP's comming properly upto java level.

Lets my flow like for edit the user "updateuser.jsp->CrudUserAction.java(populateMasterData())->UserManagerBean.java(getUserMasterByLogin())"
Letus consider for the loginname i am chosing its value is fr_CA in the database.See my system.out.println comment in the below program marked as red.

I am getting proper value in my action and ejb class.

But while call same thing in my jsp it is bydefault changing English file.

Please suggest me how i fix this issue.

updateuser.jsp


The language in updateen_US
The language in labelen_US
The language in label valueEnglish
The language in labelfr_CA
The language in label valueFrench Canadian



CrudUserAction.java


/*Hello the langugae is ABC USER LANGUAGE populateMasterData()fr_CA*/


UserManagerBean.java


/*The language is getUserMasterByLogin()fr_CA*/



Thanks for your time.

Regards,
Sumanta


 
sumanta panda
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

Please suggest me the needful.

Thanks a lot in advance.

Regards,
Sumanta
 
sumanta panda
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

Please suggest me how i fix this error.

Regards,
Sumanta
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
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