File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sumanta panda
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Please suggest me how i fix this error.

Regards,
Sumanta
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic