RE: Localization in struts 2

2009-12-09 Thread Muthu Velappan
=app.username size=15 labelposition=top / In other jsp, I just copied the same code s:textfield name=username key=app.username size=15 labelposition=top / , not getting the actual result. Can you provide some suggestion. Muthu Velappan wrote: I agree with Vishnu if the project

Exception while registering AnnotationValidationInterceptor Class in JBOSS 5.1.0 GA...

2009-12-07 Thread Muthu Velappan
Hi, I got a weird issue in my test environment today. So far, we have been using Tomcat 6.0.14 as our web server and everything works fine. Today, I moved that to JBOSS 5.1.0 GA for testing purpose and I got an exception trace as pasted below. It says that exception in registering

RE: How to get the host name if proxy is configured

2009-11-23 Thread Muthu Velappan
Yes, what Robert said is perfect, you can't get the remote host name. If you so critical about that client information then you can some Geographic location software's like this to find that out http://www.ip2location.com/. In one of our POC, we used this to identify the country where our user

RE: UI Issues in s:doubleselect Double Select control

2009-11-05 Thread Muthu Velappan
I think you are right. Let me try that and get back to you. All I need is to add a new attribute to take the second label name... Thanks, Muthu -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: Friday, November 06, 2009 3:19 AM To: Struts Users Mailing List

RE: Is there any way to apply break from a s:iterator tag.

2009-11-05 Thread Muthu Velappan
Newfield [mailto:d...@newfield.org] Sent: Thursday, November 05, 2009 10:09 PM To: Struts Users Mailing List Subject: Re: Is there any way to apply break from a s:iterator tag. Muthu Velappan wrote: I have a 1000 items in a collection and iterating it through s:iterator tag. At certain point

RE: Struts 2.1 book

2009-11-01 Thread Muthu Velappan
Wes, I tried to get access to the MEAP Version lately but publisher site has mentioned that it has been taken out of print. Can we know the status of this book now, will it be published by some other vendor? Regards, Muthu -Original Message- From: Yanto [mailto:yantob...@gmail.com]

Re: UI Issues in s:doubleselect Double Select control

2009-10-22 Thread Muthu Velappan
Hi, I'm not sure whether it reached the group... Can any one please give your thoughts at least to the 1'st point. I'm stuck with this for about a week and yet to identify a good solution for that Thanks, Muthu Muthu Velappan wrote: Hi, I have used a Double Select control display

UI Issues in s:doubleselect Double Select control

2009-10-15 Thread Muthu Velappan
Hi, I have used a Double Select control display Division Sub-Divisions in my project. Everything works fine except two UI Issues. 1. I’m unable to get separate labels for 2 Select box controls. It uses only single label. Is that a limitation, if so how to work-around it? 2. I want

RE: How to populate drop down from propery file in Struts html

2009-10-15 Thread Muthu Velappan
Try this one.. You can load the properties file in servlet using this line URL url = servletContext.getResource(/WEB-INF/option.properties); Properties props = new Properties().load(url.openStream()); Now you have all the key value pair from properties files into your

Switching Action between different modules...

2009-09-23 Thread Muthu Velappan
Hi, I have 3 different modules in my project and added that into struts.xml like this !-- Membership module actions -- include file=membership.xml / include file=home.xml / include file=admin.xml / I got a feedback.jsp page in admin module. When user hit the

Switching Action between different modules in Struts 2.1.x...

2009-09-23 Thread Muthu Velappan
Hi, I have 3 different modules in my project and added that into struts.xml like this !-- Membership module actions -- include file=membership.xml / include file=home.xml / include file=admin.xml / I got a feedback.jsp page in admin module. When user hit the cancel

RE: Switching Action between different modules...

2009-09-23 Thread Muthu Velappan
to check that the configuration is what you intended. Chris -Original Message- From: Muthu Velappan muthu.velap...@aspiresys.com To: user@struts.apache.org Sent: Wed, Sep 23, 2009 3:10 am Subject: Switching Action between different modules... Hi, I have 3 different

RE: Localization in struts 2

2009-06-22 Thread Muthu Velappan
, If user select hindi index.action?request_locale=hi Hindi i need to change all hindi text in throughout my application all the jsp pages. Can you give me suggestion Muthu Velappan wrote: I think if an app has to support internationalization then all text should be written from

RE: Localization in struts 2

2009-06-18 Thread Muthu Velappan
Try this... Take a copy of ur current properties file and name it as hinditext.txt(save it in UTF-8 format) Now open command prompt and go to your JAVA_HOME/bin folder and run this command native2ascii -encoding UTF-8 full path of hinditext.txt file app_hi.properties Now rename this

RE: Localization in struts 2

2009-06-18 Thread Muthu Velappan
, i can display the text from properties file only. in my application i have some dynamic data to add some data..for that i need to display in hindi only.. Can you me a suggestions it will be helpful for further work. I 'm using struts 2 framework. Muthu Velappan wrote: Try this... Take

RE: Localization in struts 2

2009-06-18 Thread Muthu Velappan
We just now completed working on SWING project which supports 5 Indian Languages along with English (Indic Scripts like Tamil, Malayalam, Telugu, Hindi, Bengali etc..). So, I don't see any problem in getting that to work in Java with any framework. As Dave said, it was a confusion b/w I18N O/P

RE: creating list in dropdown using struts

2009-04-20 Thread Muthu Velappan
I don't think there is any way to get both label and text from select box in request option. You will get only the value specified in option tag. I believe in ur case, ID is the value in option tag and that's the reason u get Id back in action during postback... There is couple of workaround's to

RE: Struts Action Issue

2009-04-09 Thread Muthu Velappan
Out of curiosity, I gave the same value in my application and tested, I got the exact junk back in my action not even a truncated one. So, please check whether ur action bypasses only this kind of string or even valid string like test or sample. If it doesn't show valid string then there is

Re: Freemarker in JSP

2009-04-09 Thread Muthu Velappan
Struts 2's default markup language is Freemarker and all themes are written in this language only. Your view is using this tag s:select name=permissionlevel list=%{permissionlevel} theme=simple/ right, in that look at the theme=simple attribute, these are written in freemarker only. Its shipped

RE: what is the equivalent of method in struts 2 for retrieve data?

2009-04-09 Thread Muthu Velappan
Have u checked this http://struts.apache.org/2.0.14/docs/iterator.html ~Muthu -Original Message- From: john lee [mailto:sh_thorn_b...@yahoo.com] Sent: Thursday, April 09, 2009 1:37 AM To: user@struts.apache.org Subject: what is the equivalent of method in struts 2 for retrieve data?

RE: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Muthu Velappan
Christian, You can create a properties file with display text in required language itself like Newkey.label1 = Gracias ... ... Save it to somefile.txt and then call native2ascii program in JAVA_HOME/bin folder to convert the contents to appropriate Unicode characters and save the file with

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Muthu Velappan
I believe the question is more about whether any tool available to split his current bulk properties into a small package/action specific properties. I think there is no tool to do that, It has to be manually split into different properties file based on either package or action class as

RE: html:base tag doubt

2009-04-07 Thread Muthu Velappan
Hi, html:base tag will always be rendered with href attribute. This will by default add href attribute pointing to the absolute location of the enclosing JSP page. I believe list.jsp is the enclosing page in ur case. If you want to change that then u should use optional ref attribute with

Re: hidden data

2009-04-06 Thread Muthu Velappan
How to send data to action without displaying it in form? Is that your question?If yes, then u can use s:hidden field to hold the data and post it back to the action, right? If this is not what you intent, please explain ur issue a bit detail.. ~Muthu PEGASUS84 wrote: good moorning; i've

RE: checkboxlist

2009-03-26 Thread Muthu Velappan
s:checkboxlist required=true key=permissions list=activePermissions value=permissions name=permissions s:param name=rowstyle value=%{'row31'} / /s:checkboxlist list=activePermissions hold the entire collection holding MapPermission Id, Perimssion Name. value=permissions holds the

RE: Dojo plugin deprecated on Struts 2.1: why ?

2009-03-23 Thread Muthu Velappan
I'm not sure on the reason for deprecation. From the recent post, I understand that JQuery has replaced DOJO... ~Muthu -Original Message- From: cel...@yahoo.com [mailto:cel...@yahoo.com] Sent: Tuesday, March 24, 2009 9:42 AM To: user@struts.apache.org Subject: Dojo plugin deprecated on

Re: org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

2009-03-15 Thread Muthu Velappan
Greg Lindholm wrote: Have you looked at this? http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html Muthu Velappan wrote: Thanks for the reply, Chris.. My problem is that in there is no two separate actions for loading and submitting

Re: org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

2009-03-13 Thread Muthu Velappan
the select. Cheers Chris aka musomesa -Original Message- From: Muthu Velappan muthu.velap...@aspiresys.com To: user@struts.apache.org Sent: Fri, 13 Mar 2009 2:12 pm Subject: org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID' Hi, I have

org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

2009-03-12 Thread Muthu Velappan
Hi, I have a JSP page containing data like this... s:form name=form1 theme=qxhtml s:bean name=java.util.HashMap id=qTableLayout s:param name=tablecolspan value=%{2} / /s:bean s:textfield name=fieldName required=true key=fieldmgmt.fieldname