Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts Activity display dynamically depend on the locale on Struts

Have Programming Question? Ask it here!
 
 
 


Vijay
Activity display dynamically depend on the locale on Struts
2 Answer(s)      3 years and 11 months ago
Posted in : 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

Advertisement
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
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
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 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
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
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
Locale class
Locale class  What is the Locale class
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
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
iPhone show activity indicator
iPhone show activity indicator  Hi, How to show activity indicator in iPhone application? Thanks
contact and activity management system
contact and activity management system  how to make a web application on contact and activity management system. can anyone help me
UIWebView Activity indicator
UIWebView Activity indicator  Can anyone please explain, how to implement a Activity Indicator on UIWebView in my iPhone/iPad application. Thanks
activity indicator for uiwebview
activity indicator for uiwebview  In my iPhone application, we required an activity indicator for uiwebview to show the loading time. Can any one please explain how to do that? Thanks in Advance
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
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
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
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
activity indicator for iphone sdk
activity indicator for iphone sdk  Setting the UIActivity indicator in search bar for iPhone SDK.   [NSThread detachNewThreadSelector:@selector(threadStartAnimating:) toTarget:self withObject:nil];   -(void
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 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
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
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
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
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
<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"> <
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
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
Formatting and Parsing a Date for a Locale
Formatting and Parsing a Date for a Locale In this section, you will learn how to format and parse a date for a locale. Java has provide the utility to display the dates in different languages. You can also format and parse those dates
two select queries shouldn't depend on each other
two select queries shouldn't depend on each other   i want to write two select queries such that both queries shouldn't depends on each other .or how can i re-write this query? can i write this without using where
Java Set Default Locale
Java Set Default Locale       Setting Default Locale Example in Java Locale can be set also in our java programs by using the method setDefault() of Locale class
Java get default Locale
Java get default Locale       Locale object is a representation of geographical, political, or cultural region. We can get and set our default locale through the java programs
Setting the default Locale
Setting the default Locale       This section shows you how to set the default locale. Example presented in the section, illustrates you how to get and set the default locale
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 by using
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
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
Formatting and Parsing a Number for a Locale
Formatting and Parsing a Number for a Locale In this section, you will learn how to format and parse a number for a Locale. Formatting converts a date, time... to the specified locale by invoking the methods of these classes. Here we are going
Formatting and Parsing a Time for a Locale
Formatting and Parsing a Time for a Locale In this section, you will learn how to format and parse a time for a locale. Java has provide several classes.... This class formats and parses both date and time for any locale. To format
Hibernate :dynamically choosing server
Hibernate :dynamically choosing server   Is it possible to dynamically choose server name in hibernate
display
display  please tell me how to display the content from database.. if we click on any image using servlets/jsp...please
change xml dynamically
change xml dynamically  How to change an XML dynamically in Java
Formatting number as per specific locale in java
Formatting number as per specific locale in java  Hi, I am trying to print the number as per locale. I tried below, but it still prints in English locale. public class loctest { public static void main(String[] args
Change language according to the locale
Change language according to the locale  ... language according to the locale. In the code given below we have changed language according to the locale. Methods used in this example are described below
Dynamically adding textbox and labels
Dynamically adding textbox and labels  Sir, In my application I want to insert texbox and labels dynamically and want to insert database field value in that generated label. Plz help me, Thanks in advance
Advertisements
 

 

 

DMCA.com