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,
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]
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
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
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
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
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
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;
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
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
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
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
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
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
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
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
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
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
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
I have the following code for s:select tag
s:select label=fmrTenant.terminationReason
name=fmrTenant.terminationReason
list=rejectionReasons
listKey=rejectedReasonCode
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:
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
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
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
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
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,
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=
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
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?
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
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 ?
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
32 matches
Mail list logo