Can this be breaking security ?

2009-06-21 Thread Girish Naik
Hi, i was just implementing file upload in struts 2.0. When the form with file is submitted, I can see the full path in the path property of file. Can it be possible for any one to get the path and look for any other file in that location of folder? Regards,

Cannot retrieve mapping for action

2009-06-21 Thread Sam Wun
Dear all, I am a bit confused about generating mapping in the structs-config.xml file (with Xdoclet). Currently, I am getting this error: 15:55:47,890 INFO [PluginPackageUtil:1391] Finished checking for available updates in 2 ms 15:55:54,284 ERROR [PortletRequestDispatcherImpl:316]

Re: Can this be breaking security ?

2009-06-21 Thread Girish Naik
sorry its not possible to pick files from the clients machine as when a file is uploaded it (someone) creates a tmp file in 'work\Catalina\localhost\context\upload__70e25ce7_121fcf971b2__7ff2_0003.tmp' hmm ... super. Regards, - Girish

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

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 avl...@gmail.com wrote: I am using Struts 1.2.7 I wrote a Filter which intercepts all requests and applies response headers (based on some

Re: Return to previous page without javascript

2009-06-21 Thread Girish Naik
Is this issue solved? Can we do something like thishttp://www.velocityreviews.com/forums/t131347-struts-requestprocessor-override.html Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Henny

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

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.portlet;

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 swun2...@gmail.com wrote: Hi, I tried generate a validation.xml file with form name, field property, msg name, and key in the

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

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 the

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

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

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 w...@wantii.com wrote: I'm with dave. Check the logs, in particular, look for messages

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

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

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

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

s:select with multiple

2009-06-21 Thread Bhaarat Sharma
I have the following code for s:select tag s:select label=fmrTenant.terminationReason name=fmrTenant.terminationReason list=rejectionReasons listKey=rejectedReasonCode

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:

Re: s:select with multiple

2009-06-21 Thread Dave Newton
Bhaarat Sharma wrote: select name=fmrTenant.terminationReason size=9 id= DebtActionEditSave1_fmrTenant_terminationReason multiple=multiple option value=1Reason1*/option option value=2Reason2*/option option value=3Reason3*/option option value=4Reason4/option /select When I submit

basic question about s:iterator

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: 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

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

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: 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 newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: select name=fmrTenant.terminationReason size=9 id=

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

redirect action in s:submit

2009-06-21 Thread Bhaarat Sharma
I have a button value like this s:submit value=Cancel name=redirect-action:PHAInformation/ 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: 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 s:submit value=Cancel

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 ?

Re: basic question about s:iterator

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: s:iterator value=#session.users s:property value=firstName/ /s:iterator Struts knows