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><s:text name="activity.name"/></strong></font></p>
thanks
Related Tutorials/Questions & Answers:
Advertisements
STRUTS-display search results - StrutsSTRUTS-
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
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 - StrutsDisplay 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 - Strutsdisplay 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 - StrutsDisplay 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 - Strutsiterator
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 Errors using Message Resources - StrutsDisplay 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
Java LocaleJava 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 BeginnersLocale 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
displaydisplay 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">
<
StrutsStruts 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
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 BeginnersWhat 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
Struts Struts How to retrive data from database by using
Struts STRUTSSTRUTS MAIN DIFFERENCES BETWEEN
STRUTS 1 AND
STRUTS 2
STRUTSSTRUTS MAIN DIFFERENCES BETWEEN
STRUTS 1 AND
STRUTS 2
StrutsStruts what is SwitchAction in
struts StrutsStruts how to learn
struts STRUTS STRUTS Request context in
struts?
SendRedirect () and forward how to configure in
struts-config.xml
Struts - StrutsStruts 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 strutsstruts 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
StrutsStruts Tell me good
struts manual
strutsstruts what are the 4 methods of
struts framework
strutsstruts 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 strutsstruts 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