Activity display dynamically depend on the locale on Struts

Activity display dynamically depend on the locale on Struts

i want to display activities dynamically which can be increase or decrease on struts 2 and that depend on the Locale (like English or French) .
dynamically means user can be expend or collapse (add or delete) activity at run time.

I have two properties file:

messages.properties:
activity.name=activity

messages_fr.properties:
activity.name=activity_fr

for dynamic, i am using array list. i have an array list in a Java class. In this list i want to store the values (activities) depending on the locale:
arraylist.add(new ListItem("Activity", "<s:text name="activity.name"/>"));

When I retrieve the value on jsp like this:
<s:text name="activity.name"/>

Am i going to right direction or any suggestion..

Thanks
View Answers

October 12, 2010 at 1:40 PM

i am doing some edit on my question:

i want to display activities dynamically which can be increase or decrease on struts 2 framework and that depend on the Locale (like English or French) .
dynamically means user can be expend or collapse (add or delete) activity at run time.

I have two properties file:

messages.properties:
activity.name=activity

messages_fr.properties:
activity.name=activity_fr

for dynamic, i am using array list. i have an array list in a Java class. In this list i want to store the values (activities) depending on the locale:
arraylist.add(new ListItem("Activity", "<s:text name="activity.name"/>"));

When I retrieve the value on jsp like this:
<s:text name="activity.name"/>

Am i going to right direction or any suggestion..

Thanks

October 12, 2010 at 2:56 PM

Hi,

It seems ok.

<p><font color="#000080"><strong>&lt;s:text name=&quot;activity.name&quot;/&gt;</strong></font></p>

thanks









Related Tutorials/Questions & Answers:
Activity display dynamically depend on the locale on Struts
Activity display dynamically depend on the locale on Struts  i want to display activities dynamically which can be increase or decrease on struts 2 and that depend on the Locale (like English or French) . dynamically means user
Struts 1.2.9 (NB6.1) ? Problems with depend <html:select> and AJAX - Struts
Struts 1.2.9 (NB6.1) ? Problems with depend and AJAX  Hi I have 2 and one is depend to the other The 1st select I fill it of the DB with the help of the jstl :) but the 2nd will fill of the DB too but taking the 1st
Advertisements
STRUTS-display search results - Struts
STRUTS-display search results  Hii, I am a beginner in struts..I want to retrieve few records from database and display in jsp page.First i tried... them in jsp.. Search Results
getting result in table dynamically - Struts
getting result in table dynamically  How do i get result in tabular format dynamically using our own tags
how to display selected checkboxes dynamically using jsp
how to display selected checkboxes dynamically using jsp  Hi friends i have a requirement that : in my JSP page i have radio buttons followed by the DB fields..when i click SUBMIT button,if the field(or record
How to display gridview details to labels dynamically?
How to display gridview details to labels dynamically?  I am using... from MySQL database based on a selected id(dropdownlist). I need to display... to display however, it always displays the details of the previously selected id
PHOTO UPLOAD AND DISPLAY - Struts
and display photos usin Struts technology. Please give me some suggestion to me..., For solving the problem visit to : http://www.roseindia.net/struts
Display PDF in browser - Struts
Display PDF in browser  Hi, I am trying to display the pdf file in the browser using struts 2. Here i am using iText for pdf generation. After pdf creation i am trying to write the servletoutstream, the code is here
display 1000 of records - Struts
display 1000 of records  how to display 1000 of records using next... that we can display any number of records. Implement a sample   We have pagination concept in Java. Using that we can display any number of records
Display Tag Related - Struts
Display Tag Related  Hi, I am using display:column to display list... the attributes if i specify sortable = "true". but i have to display one column as hyperlink , if i click on this hyperlink it will display corresponding
iterator display problem - Struts
iterator display problem   in action class i store database data in arrraylist but after success how can i display those data in jsp page using iterator tag can i use id atribute or valuethat i not understand  Hi
display the generated image from byte array - Struts
display the generated image from byte array  how to create image from byte array using struts and display it in struts html.please give me the sample code
Display an textbox when user Clicks checbox in struts Tags - Struts
Display an textbox when user Clicks checbox in struts Tags  Hi Friend. I need an code for to Display text box when the user clicks checkbox in struts.Pls hekp me.. Note:,... using this kind of tags alone.. Thanks
How to handle the list dynamically in struts inside logic:iterate tag
How to handle the list dynamically in struts inside logic:iterate tag  I am having following code in JSP <table> <tr> <logic...; </table> my struts config with dyna form is: <form-bean name
How to display data in form using aryylist in struts - Java Beginners
How to display data in form using aryylist in struts  Hi, I want to display data using arraylist in struts pls help me Its urgent
Display Errors using Message Resources - Struts
Display Errors using Message Resources  Hello.. I've a login page where i used applicationresources.properties to display errors for null values... required.. I want to display errors using message resources using
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB   Hello... trying to display multiple selection selected from the list of all the values
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB  The below code was posted in one of your query on (April 28, 2010 at 4:48 PM) when I tried
Locale class
Locale class  What is the Locale class
how to display default radio button in struts2.0 for first time login - Struts
how to display default radio button in struts2.0 for first time login  hi, this is suresh jampala, i have one question regarding struts2.0,how can i display default radio button in struts2.0 when ever i loggedin first time
Java Locale
Java Locale  How will you load a specific locale?   Hi Friend, A locale is the part of a user's environment that brings together.../java/javadate/locale-format.shtml http://www.roseindia.net/tutorial/java
Locale with SimpleDateFormat - Java Beginners
Locale with SimpleDateFormat  What does that mean when instantiating a SimpleDateFormat object,specify a locale? Its just a good programming... are providing you a code that will display the current date in three different locales using
Is session depend on cookie ???
Is session depend on cookie ???  Since I created one session & as we say that session store at server side that means if I clear browser cookie thereafter it should show me my login use as logged in but when i cleared
Java Locale
Java Locale         A locale class in java api represents a specific geographical, political, or cultural region. In java computing, locale defines a set of parameters
Version of com.jillesvangurp>spring-depend dependency
List of Version of com.jillesvangurp>spring-depend dependency
display
display  please tell me how to display the content from database.. if we click on any image using servlets/jsp...please
<html:html locale="true">
  <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <html:html locale="true"> <
Struts
Struts  I want to get the data from database into text box in a jsp page by using struts and javascript If I click on go button it will display all the values and from that i need to select the required value and i should store
What is the Locale class?
What is the Locale class?  What do you understand about locale class in java program. thanks,   Hi, The Locale class in Java is Java... region. IN Java computing, locale describes a set of parameters to classify
Maven Dependency spring-depend >> 0.1
You should include the dependency code given in this page to add Maven Dependency of com.jillesvangurp >> spring-depend version0.1 in your project
Maven Dependency spring-depend >> 0.2
You should include the dependency code given in this page to add Maven Dependency of com.jillesvangurp >> spring-depend version0.2 in your project
JSP Locale
JSP Locale          JSP Locale is used to get the preferred locale of the user. A user can configure their browser with a US language locale ("en
What is Locale - Java Beginners
What is Locale  Hi, What is Locale? Write example to show the use of Locale. Thanks   Hi Friend, A locale is the part... the following links: http://www.roseindia.net/java/javadate/locale-format.shtml http
Java get System Locale
Java get System Locale       In this section, you will learn how to obtain the locale. We are providing you an example which will obtain the locale of the system
dynamically writing text javascript
dynamically writing text javascript  dynamically writing text javascript. Is it possible
dynamically writing text javascript
dynamically writing text javascript  dynamically writing text javascript. Is it possible
Struts
Struts   How to retrive data from database by using Struts
STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2
STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2
Struts
Struts  what is SwitchAction in struts
Struts
Struts  how to learn struts
STRUTS
STRUTS   Request context in struts? SendRedirect () and forward how to configure in struts-config.xml
Struts - Struts
Struts  How to display single validation error message, in stude of ?  Hi friend, I am sending you a link. This link will help you. Please visit for more information. http://www.roseindia.net/struts/struts
struts
struts  in industry, struts 1 and struts 2. which is the best? which is useful as a professuional   Have a look at the following link: Struts Tutorials
Struts
Struts  Tell me good struts manual
struts
struts  what are the 4 methods of struts framework
struts
struts shopping cart project in struts with oracle database connection  shopping cart project in struts with oracle database connection   Have a look at the following link: Struts Shopping Cart using MySQL
Struts
Struts   When Submit a Form and while submit is working ,press the Refresh , what will happen in Struts
iPhone show activity indicator
iPhone show activity indicator  Hi, How to show activity indicator in iPhone application? Thanks
struts
struts  Hi what is struts flow of 1.2 version struts? i have struts applicatin then from jsp page how struts application flows Thanks Kalins Naik   Please visit the following link: Struts Tutorial

Ads