RE: Localization in struts 2

2009-06-21 Thread Johnson nickel
Hi, I have tried the sample project 'Struts2i18n' it's working fine. But, in my application i have different packages like, com.company.model, com.company.pojo etc., I need write properties file for all the packages. In struts.properties,whether, i need to define struts.custom.i18n.resourc

Re: basic question about

2009-06-21 Thread dusty
Perhaps the language is bad, but what I believe that documentation means is that when you are iterating the each object in the iteration is at the top of the stack so that when you do something like this: Struts knows that you mean #session.users[i].firstName. It knows that based on how

Re: drop down list not working after using validation.xml

2009-06-21 Thread Yanto
Hi, After used prepare the method we could see the dropdown values. But s:fielderror tag still displaying error messages even I selected the value from the dropdown. So that its not invoking my action class. Because assuming still one more selection not happened in the form. Why this behavior ? A

Re: redirect action in s:submit

2009-06-21 Thread dusty
That works? What processes that redirect-action:PHAInformation parameter? Struts sees that and just redirects? If I knew how that worked then I could figure out how to add parameters. omnipresent wrote: > > I have a button value like this > > > > but I want to add some parameters along w

redirect action in s:submit

2009-06-21 Thread Bhaarat Sharma
I have a button value like this but I want to add some parameters along with this...is that possible to do in the code above or do I have to make additions to struts.xml for this?

Re: Struts2 and Security

2009-06-21 Thread dusty
Although Spring Security may have some dependencies on the Spring Framework, the inclusion of those libraries should not affect the rest of your application if you do not intend to use Spring for Dependency Injection, etc. In fact, the only trouble would be if you did use Spring and had some req

Re: s:select with multiple

2009-06-21 Thread Bhaarat Sharma
My mistake. Yeah, I knew it was against the convention so I have modified the code to take care of this. Thanks On Sun, Jun 21, 2009 at 8:01 PM, Dave Newton wrote: > Bhaarat Sharma wrote: > >> >> Reason1* >> Reason2* >> Reason3* >> Reason4 >> > > > >> >> When I submit this form I am gett

Re: Struts2 and Security

2009-06-21 Thread aum strut
Hi All, my main point was also this we were about to choose Spring Security but as we are not going to use Spring in our application so we were just a bit confused (:) ) if we can use this frame work even without using Spring?? hope to get some light over this. On Sun, Jun 21, 2009 at 12:37 PM,

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
> > I would recomend upgrading to a later version of struts > Oh Mike, I wish I could do that! :) For the problem at hand, I am better off sub-classing the RequestProcessor. Having said that, would still try and upgrade asap. Cheers Avlesh On Mon, Jun 22, 2009 at 9:30 AM, Mike Dave wrote: > >

Re: RequestProcessor and contentType response header

2009-06-21 Thread Mike Dave
> > Sounds counter-intuitive. Why should the RequestProcessor overwrite? > I am in agreement with you, Avlesh. This behaviour is erratic. I would recomend upgrading to a later version of struts assuming that the behaviour has been fixed. -m- On Sun, Jun 21, 2009 at 8:46 PM, Avlesh Singh wrote: >

basic question about

2009-06-21 Thread jo_atman
Sorry if this is too basic, but i seem to be missing something. The iterator tag documentation says it iterates over the value on top of the stack. I don't understand what this stack is and what is at the top of the stack. Can i use the iterator tag to iterate over an object stored as a session

Re: s:select with multiple

2009-06-21 Thread Dave Newton
Bhaarat Sharma wrote: Reason1* Reason2* Reason3* Reason4 > When I submit this form I am getting the values like 1 2 3 4 back to my action class just fine. What if I want to get the content of the options also? meaning what If I want to get back Reason1*, reason2* etc back to my ac

emptyoption with s:select and Integer values

2009-06-21 Thread Ignacio de Córdoba
Hello, I need to use s:select with emptyoption="true" attribute. it works OK with Strings but can't make it work with Integers. As empty option generates an empty string option parameter value, Struts2 seems unable to convert it to a null value if setter method in the Action is Integer. I get: og

s:select with multiple

2009-06-21 Thread Bhaarat Sharma
I have the following code for s:select tag Reason1* Reason2* Reason3* Reason4 When I submit this form I am getting the values like 1 2 3 4 back to my action class just fine. What if I want to get the content of the options also? meaning what If I want to get back Reason1

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Dimitrios Christodoulakis
Thanks! Everyone's suggestions are correct. The versions provided by godaddy are: ROOT/usr/java/jdk1.5.0_17, and ROOT/usr/java/tomcat-5.5 Currently in dev I am using later versions for both. Wes, I think you are right, I'd need to at least match at those versions mentioned above on my local develo

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Balwinder Kumar
This is probably due to the fact that the version of Java useed in deployment environment is lower than the version of Java used for compiling Hibernate classes. Dimitrios Christodoulakis wrote: It seems that indeed the filters are not starting properly: The catalina.out log indicates the fol

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Wes Wannemacher
The error indicates that you compiled for a jvm newer than the tomcat runtime. For instance you compiled with 1.6 and you are trying to run on 1.5. Stick to tomcat 5.5 if that is what godaddy provides. The tomcat version doesn't indicate its newness as much as it indicates which servlet / jsp spec

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Dave Newton
Dimitrios Christodoulakis wrote: It seems that indeed the filters are not starting properly: The catalina.out log indicates the following: 00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2 java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.C

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Dimitrios Christodoulakis
It seems that indeed the filters are not starting properly: The catalina.out log indicates the following: 00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2 java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Meth

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Dimitrios Christodoulakis
Thanks for the input. I'll test it locally under 5.5. and will dig deeper in the logs and see what I can find. I will let you know. Appreciate the insight. On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher wrote: > I'm with dave. Check the logs, in particular, look for messages about > whether

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Wes Wannemacher
I'm with dave. Check the logs, in particular, look for messages about whether or not the filter started properly. Also check the httpd configuration. There are a few ways to integrate httpd and tomcat. Many people will use mod_jk but lately I am in favor of having tomcat listen on localhost and hav

Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Dave Newton
Dimitrios Christodoulakis wrote: I am having some issues deploying a struts2 application at godaddy and was wondering if anyone has dealt with something similar in the past. The application runs fine on my local machine with tomcat 6.0. My next step was to upload and deploy at godaddy dedicated s

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
> > It's also the weekend. I truly respect that. It's not a bug, that's just how it works. > Sounds counter-intuitive. Why should the RequestProcessor overwrite? Overriding the request processor is the normal way to add behavior to apps > running that version of Struts. > Thanks for approving th

deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Dimitrios Christodoulakis
Hello everyone, I am having some issues deploying a struts2 application at godaddy and was wondering if anyone has dealt with something similar in the past. The application runs fine on my local machine with tomcat 6.0. My next step was to upload and deploy at godaddy dedicated server which is run

Re: empty validation.xml file - please help.

2009-06-21 Thread Yanto
are you using simple theme and struts 2.1.6 ? if yes you need to use tags s:fielderror and s:actionerror to display error On Sun, Jun 21, 2009 at 8:45 PM, Sam Wun wrote: > Hi, > > I tried generate a validation.xml file with "form name", "field > property", "msg name", and "key" in the file, but

empty validation.xml file - please help.

2009-06-21 Thread Sam Wun
Hi, I tried generate a validation.xml file with "form name", "field property", "msg name", and "key" in the file, but it doesn't generate these information in the file from the struts tags given in my ActionForm java file. Here is the java soruce file I have: package com.XYZ.onlinepayment.portl

Re: RequestProcessor and contentType response header

2009-06-21 Thread Dave Newton
Avlesh Singh wrote: Did not get a response yet :( It's also the weekend. Is this a dev list question No. 1. Shouldn't this method also check if the response already has a contentType header applied or not? Is this a known bug, or am I missing something? It's not a bug, that's j

Re: Return to previous page without javascript

2009-06-21 Thread Girish Naik
Is this issue solved? Can we do something like this Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Henny Youngman

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
Did not get a response yet :( Is this a dev list question or my assumptions are correct? Cheers Avlesh On Sat, Jun 20, 2009 at 8:21 PM, Avlesh Singh wrote: > I am using Struts 1.2.7 > I wrote a Filter which intercepts all requests and applies response headers > (based on some external configura

Re: Struts2 and Security

2009-06-21 Thread dusty
We have used Spring Security in the last 10 struts2 apps. We have some that use a local user store in the database, others that use LDAP to AD and some that use Atlassian's Crowd. Spring Security is very easy to add to your app and gives just about everything you need I have not ventured i