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



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Vijay
Activity display dynamically depend on the locale on Struts
2 Answer(s)      4 years and a month 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
Locale class
Locale class  What is the Locale class
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
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
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
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
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
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
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 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
Advertisements
 

 

 

DMCA.com