RE: Localization in struts 2

2009-12-09 Thread Muthu Velappan
de , not getting the actual result. Can you provide some suggestion. Muthu Velappan wrote: > > > I agree with Vishnu if the project is small, say 20-25 Actions spread > around > 3-5 packages for the entire project. If it goes beyond that I would > include >

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 "org.apache.s

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 i

RE: Is there any way to apply break from a 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 tag. Muthu Velappan wrote: > I have a 1000 items in a collection and iterating it through > tag. At certain point of time, I would l

RE: UI Issues in 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 Subjec

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] Sent

Re: UI Issues in 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 u

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 propert

UI Issues in Double Select control

2009-10-14 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 t

RE: Switching Action between different modules...

2009-09-23 Thread Muthu Velappan
he namespace attribute on the package you defined inside of home.xml? I would use the config-browser to check that the configuration is what you intended. Chris -Original Message- From: Muthu Velappan To: user@struts.apache.org Sent: Wed, Sep 23, 2009 3:10 am Subject: Switching

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 I got a feedback.jsp page in admin module. When user hit the cancel button from this form, I want that to submit to home.action available in home module. Since I don’t have the name

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 I got a feedback.jsp page in admin module. When user hit the cancel button from this form, I want that to submit to home.action available in home module. Since I don't h

RE: Localization in struts 2

2009-06-22 Thread Muthu Velappan
And one more thing,for ex, 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

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 and

RE: Localization in struts 2

2009-06-18 Thread Muthu Velappan
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 a copy of ur current prope

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 /bin folder and run this command native2ascii -encoding UTF-8 Now rename this app_hi.properties file with respect to ur application properties fi

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 tag. I believe in ur case, ID is the value in tag and that's the reason u get Id back in action during postback... There is couple of workaround's to overcome thi

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 and then call native2ascii program in /bin folder to convert the contents to appropriate Unicode characters and save the file with appropriate properties fi

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 "" right, in that look at the theme="simple" attribute, these are written in freemarker only. Its shipped as part ur jar. Now, coming to ur error. I think ur "permission

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? in

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 pro

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 specified

RE: html:base tag doubt

2009-04-07 Thread Muthu Velappan
Hi, 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 either "pag

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 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 a que

RE: checkboxlist

2009-03-26 Thread Muthu Velappan
list="activePermissions" hold the entire collection holding Map. value="permissions" holds the Set that are applicable for this user. So, you can assume it like this.. The set you provide in "list" will get rendered as checkboxes and set in "value" will be used to check the rendere

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: Use of JavaScipt in JSP pages using Struts2 tags

2009-03-20 Thread Muthu Velappan
I believe it depends on the nature of the project whether to use custom javascript validations or not. There is no hard and fast rule to avoid javascripts completely. As a standard, most of the struts2 project uses the in-built validation even if some cases are missing in the in-built validations w

Theme Selection Options

2009-03-18 Thread Muthu Velappan
Hi, I have a jsp with a custom theme set on my form tag like this . "myxhtml" is our custom theme extends xhtml theme. I extended the Struts2 basic TextFieldTag to toggle it based on the custom visible property. Everything is working fine but I end up getting a empty row b/w two controls if th

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

2009-03-15 Thread Muthu Velappan
s ~Muthu 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

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

2009-03-13 Thread Muthu Velappan
small action that gives you the Map and use the tag as > you populate the select. > > Cheers > Chris aka musomesa > > > > > -Original Message- > From: Muthu Velappan > To: user@struts.apache.org > Sent: Fri, 13 Mar 2009 2:12 pm > Subject: org.ap

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... this page works fine in first load.. However, I end up getti