Hi,
We are using struts2 latest distribution, where we are using
tokenSession interceptor for duplicate submission. Duplicate request
processing is working fine but its not showing result page for duplicate
form submission which we have defined in strust.xml as below.
global-results
result
Hi Arpan,
We too did a struts1 to strust2 migration in recent past,
its not so easy to migrate as it is. Since Struts2 gives more importance to
security nowadays its always advisable to learn the correct implementation
from struts2 doc and migrate your struts1 actions one by one.
of x already written, I don't want to change so much code for now. Hence
like to use scriplet only.
On Thu, Aug 8, 2013 at 3:04 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Already suggested by Lukasz, i can see thats only possible way if you
don't
want to disturb
Try changing you xxx-validation.xml file dtd url declaration with the
latest available dtd inside xwork-core.jar
--
Thanks Regards
Srikanth
On Wed, Aug 7, 2013 at 10:44 PM, John Boyer j...@rodaxsoft.com wrote:
Hi:
Suddenly, in-production, we're getting file-not-found errors for the
use this
!DOCTYPE validators PUBLIC
-//Apache Struts//XWork Validator 1.0.2//EN
http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd;
--
Regards
Srikanth
On Wed, Aug 7, 2013 at 11:06 PM, John Boyer j...@rodaxsoft.com wrote:
Hi Martin:
Okay, but my
Check this tutorial might help you
http://www.mkyong.com/struts2/how-to-set-default-value-for-multiple-checkboxes-in-struts-2/
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
With all gratitude, I strongly disagree with that idea . That bring more
clumsiness to big strust2 applications. And the idea of taking an array of
Prepare is a good idea but don't you think it consumes a pinch of runtime
performance.
, but an array of strings for which execute
methods the Preaparable callback should be excluded.
On Aug 7, 2013 11:09 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
With all gratitude, I strongly disagree with that idea . That bring more
clumsiness to big strust2 applications
pbened...@apache.org wrote:
I don't see a performance concern here. Checking a few strings isn't going
to slow down anything.
On Aug 8, 2013 12:06 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Guess same performance concern is applicable for that as well. Any ideas
of
making
here the value of why is representing key or value ? The value your are
providing to *value* attribute (value=%{why}), it should always represent
the key (not the display value).
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
Attaching SkippablePrepareInterceptor and SkipPrepare Annotation Code, I
hope it may helpful for other who have similar requirement. Struts2 can
include it, if strust2 developer think its worthy.
--
Thanks Regards
Srikanth
On Sat, Jul 27, 2013 at 12:00 AM, Sreekanth S. Nair
sreekanth.n
Hi,
Sometimes we need to provide an empty select tag which will be
populated later depending on some value in form using ajax. Now its
mandatory to provide at least an empty list to make select to work. Why
can't struts2 select tag can handle this case, where we can render the
select tag even
Any idea?
--
Thanks Regards
Srikanth
On Thu, Aug 1, 2013 at 4:49 PM, Sreekanth S. Nairwrote:
Hi,
Is there any security issue or any side effect if we don't use
conversionError interceptor apart from it wont report the conversion errors?
--
Thanks Regards
Srikanth
Yup ;) and thanks.
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Fri, Aug 2, 2013 at 1:19 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/8/2 Sreekanth S
...@gmail.com wrote:
It can, just use a regular select, instead of the s:select
(*Chris*)
On Fri, Aug 2, 2013 at 12:36 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Hi,
Sometimes we need to provide an empty select tag which will be
populated later depending on some value
is an error use
case.
-Original Message-
From: Sreekanth S. Nair [mailto:sreekanth.n...@egovernments.org]
Sent: Friday, August 02, 2013 11:56 AM
To: Struts Users Mailing List
Subject: Re: How to initiate the select tag with empty list
That i know Chris. are you getting away from
is an empty select tag with a name that matches a mutator in
your action. Struts (and your jQuery) will do the rest.
(*Chris*)
On Fri, Aug 2, 2013 at 9:55 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
That i know Chris. are you getting away from the question, i was talking
about
it an empty list, you just can't give it null.
You may be able to specify list=%{{}} which should be OGNL syntax for an
empty list.
(*Chris*)
On Fri, Aug 2, 2013 at 11:06 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
I understood your point chris
Hi,
Is there any security issue or any side effect if we don't use
conversionError interceptor apart from it wont report the conversion errors?
--
Thanks Regards
Srikanth
Can anyone give us a tutorial link or some sample app about using WildCard
fully using annoation.?
--
Thanks Regards
Srikanth
:
Define fully; are you having a specific issue?
Dave
On Tue, Jul 30, 2013 at 3:32 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Can anyone give us a tutorial link or some sample app about using
WildCard
fully using annoation.?
--
Thanks Regards
Srikanth
Hi,
I'm using eclipse + jboss 7 to deploy my struts2 latest distro app...
gettng this following deployment exception on alternate deployment.
ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/pgr]]
(ServerService Thread Pool -- 56) JBWEB000284: Exception starting
Hi,
conversionError interceptor in the interceptor stack breaking the
ModelDriven, can't able to bind Model which have custom object association
Lenart lukaszlen...@apache.orgwrote:
Do you put framework's lib in JBoss shared library folder? I mean all
the app instances use the same libs?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/7/26 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Hi,
I'm using
is broken ? or dont know.
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Fri, Jul 26, 2013 at 1:09 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/7/26 Sreekanth
lukaszlen...@apache.orgwrote:
So you have many war archives in one ear archive?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/7/26 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Yes, its an ear deployment and all my struts libs are in .ear/lib/ folder
to
https://issues.apache.org/jira/browse/WW-4152
2013/7/26 Sreekanth S. Nair sreekanth.n...@egovernments.org:
yes thats right and my local wars/lib don't have any lib of struts2.
--
Thanks Regards
Srikanth
Software Developer
eGovernments
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Fri, Jul 26, 2013 at 1:15 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Cool... :). There is no stacktrace i can provide you apart from some OGNL
obvious dirty WARNINGS. I debugged
Is there any annotation available to bypass prepare method while invoking
certain methods, just like @skipvalidation
--
Thanks Regards
Srikanth
: 9980078913
On Fri, Jul 26, 2013 at 4:40 PM, Paul Benedict pbened...@apache.org wrote:
Why would you want to bypass it?
On Jul 26, 2013 3:47 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Is there any annotation available to bypass prepare method
from your action?
That will do it.
On Jul 26, 2013 6:12 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Suppose i need to call any ajax validation on the same Action, it
unnecessarily run in to prepare. Where that ajax validation doesn't
required to call prepare
wrote:
Did you try `prepareWhateverMethodThatNeedsPrepare`? I don't recall if that
works or not.
On Fri, Jul 26, 2013 at 7:24 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
No i can't do that, because that Action contains other method which needs
Prepare, the only option i
the interceptor package-wide, or change the prepare
interceptor to always skip preparation for methods annotated with
@DoNotPrepare, etc.
Dave
On Fri, Jul 26, 2013 at 9:19 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Too many methods :( needs its own prepare then.
--
Thanks
, either.
Dave
On Fri, Jul 26, 2013 at 2:07 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
The idea is precisely good, thats what i wanted but do you think it will
be
a good addition to strust2 framework by any chance then i hope the same
could be a part of struts2
support? Seems a lot easier than creating more infrastructure.
(*Chris*)
On Fri, Jul 26, 2013 at 11:22 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Okay, i can create one for mine, leaving to struts2 framework developer
whether strust2 need an annotation like
back regarding the performance tuning part, but the answer i got
doesn't cover from which all jars and what are the files have to be
extracted.
--
Thanks Regards
Srikanth
On Mon, Jul 15, 2013 at 12:28 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/7/13 Sreekanth S. Nair sreekanth.n
http://struts.apache.org/development/2.x/docs/static-content.html
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/7/15 Sreekanth S. Nair sreekanth.n...@egovernments.org:
/* basically works but i felt its unnecessary to map filter with /* url
pattern. As you said extracting
Hi,
getting the following exeception while using executeAndWait filter
@ line Number 186 i have the following line of code, which causing the
NPE,
without executeAndWait this Action works pretty much fine.
final HttpServletRequest req = ServletActionContext.getRequest();
[0m[33m13:03:43,031
Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Mon, Jul 15, 2013 at 1:10 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/7/15 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Struts2-core dojo
* or
*struts*directory ?
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Mon, Jul 15, 2013 at 1:27 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/7/15 Sreekanth S
/static/ to where ?
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Mon, Jul 15, 2013 at 1:43 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/7/15 Sreekanth S
15, 2013 at 1:51 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Sorry i didn get you.
You mean directly under WebContant folder? Is like this the following
struts2-core.jar/ template to WebContent/template
struts2-jquery-plugin/template to WebContent/template
What are feature supported by struts2 wrt servlet3.0 (specifically anything
from async)
--
Thanks Regards
Srikanth
Hi,
I'm getting the following exception when i try to use
strust2-jquery-plugin, My web.xml fragment for struts2 as follows.
filter-mapping
filter-namestruts2Prepare/filter-name
url-pattern*.action/url-pattern
/filter-mapping
filter-mapping
filter-namesitemesh/filter-name
How to make interceptor to be invoked only for HTTP Request not for Response
On Tue, Jul 9, 2013 at 5:41 PM, umeshawas...@gmail.com wrote:
Any specific reason to do that?
--Original Message--
From: Sreekanth S. Nair
To: Struts Users Mailing List
ReplyTo: Struts Users Mailing List
Subject: How to make interceptor to be invoked only
, Sreekanth S. Nair escreveu:
Yes, i have an Interceptor basically to Trimming of input values, i don't
want to do this to be happened while request coming back with response.
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
action.invoke, and before rendering with PreResultListeners.
I don't understand the specific issue(s) you think you're having. What
problem are you having that you're trying to solve?
Dave
On Jul 9, 2013 9:54 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
I doubt struts2
On Tue, Jul 9, 2013 at 8:39 PM, Paul Benedict pbened...@apache.org wrote:
Agreed. What you want is a Servlet filter, not a Struts interceptor.
On Tue, Jul 9, 2013 at 9:54 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
I doubt struts2 interceptor work like
, Dave Newton davelnew...@gmail.com wrote:
What do you mean by called while response? Interceptors aren't called
twice, they wrap action invocation.
Dave
On Jul 9, 2013 10:07 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
I have a custom interceptor for trimming whitespaces
Don't know whats the reason i'm getting this following WARNIng in latest
struts distro.
WARN [com.opensymphony.xwork2.ognl.OgnlValueStack]
(http-localhost/127.0.0.1:8080-1) Error setting expression
'action:documentManager!updateDocument' with value
'[Ljava.lang.String;@1c1abc1':
the colon char is not an expected input parameter.
You talk about latest distro, did it works before with other distros?
On 28 June 2013 09:43, Sreekanth S. Nair sreekanth.n...@egovernments.org
wrote:
action:documentManager!updateDocument
Twitter :http://www.twitter.com/m_cucchiara
G
:http://www.linkedin.com/in/mauriziocucchiara
VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
Maurizio Cucchiara
On 28 June 2013 10:10, Sreekanth S. Nair sreekanth.n...@egovernments.org
wrote:
Yes it was working
--
Thanks Regards
Srikanth
Software
As i replied in the jira, we are heavily depends on bang syntax, how can
we fix this... changing all ! is literally impossible now, since we have
hundreds of action urls are in bang style.
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
Hi,
Now the struts2 distribution is a single zip file which includes all
optional and required jars together which is making life very difficult to
understand, which are the jars required for struts2 to make up and running
and what are the other optional and dependency jar for plugin and
this is clearly mentioned in the Project dependencies page what all
is required
for details refer
http://struts.apache.org/release/2.3.x/struts2-core/dependencies.html
On Wed, Jun 26, 2013 at 2:00 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Hi,
Now the struts2
is not optional
On Wed, Jun 26, 2013 at 2:32 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
I dont think this is correct, we are not using velocity then how come
struts2 depends on velocity, same for junit. These all are not required
dependency for strust2 to up and running
.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/6/26 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Thanks for clarifying all these but don't you think its better to make
the
same thing in distribution itself, which will help developer to make
strust2 project
On Mon, Jun 24, 2013 at 1:53 PM, umeshawas...@gmail.com wrote:
I believe that all those steps are equally applicable and to all version
of struts2
Underlying working of Struts2 is more or less and same.
Sent from BlackBerry® on Airtel
-Original Message-
From: Sreekanth S. Nair
in FreeMarker; if you're using the S2 UI
tags, you're using FM.
Other items related to interceptor stacks, dev mode, and so on. Consider
reading the whole page, as it covers the first line of defense.
Dave
On Tue, Jun 25, 2013 at 6:43 AM, Sreekanth S. Nair
sreekanth.n...@egovernments.org
Is this link (
http://struts.apache.org/release/2.3.x/docs/performance-tuning.html) points
to the latest performance tuning for strust2 ?
freemarker template caching is confusing whether we need to locally copy
those template files or not?
Can any one please provide some good resources for step
Hi,
Can anyone point me a tutorial or reference for how to handle exception
(uncaught or all exception). There are so many tutorial available online
but all are different.
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/6/21 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Hi,
Can anyone point me
at 12:02 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Hi Lukasz,
Thanks for your replay, i did the same way only, but there
are some exception still going uncaught and showing the stacktrace to view.
There was something called CatchAll, can you please tell me
: s:property value=exceptionStack //h4
so maybe remove that line and your are done.
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
2013/6/21 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Hi Lukasz,
Thanks for your replay, i did the same way only
Sreekanth S. Nair sreekanth.n...@egovernments.org:
Okay, but the error page i'm getting is default error page not the custom
error page (more over i'm not using exceptionStack in my custom error
page)
--
Thanks Regards
Srikanth
Software Developer
, 2013 at 12:36 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Yeah lukasz, you are correct i was working with devMode set to true, when
i made it to false the custom exception page is coming.. Thanks a lot for
reminding me this simple mistake.
--
Thanks Regards
Srikanth
Can anyone suggest a best advanced Struts2 book available now (with all
recent updates of struts2)
And any link pointing to Best Practices and Performance tuning for latest
struts2
Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*
On Fri, Jun 21, 2013 at 7:01 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Can anyone suggest a best advanced Struts2 book available now (with all
recent updates of struts2)
And any link pointing to Best Practices
Hi,
Does Struts2 have any way to redirect from one action to another action
which exist in a different Web Context.
ServletRedirectResult and ServletActionRedirectResult doesn't seems to be
work for Cross Context Action redirection.
--
Thanks Regards
Srikanth
Software Developer
Hi,
Does Struts2 have any way to redirect from one action to another action
which exist in a different Web Context.
ServletRedirectResult and ServletActionRedirectResult doesn't seems to be
work for Cross Context Action redirection.
--
Thanks Regards
Srikanth
or
result name=success type=redirectAction
or
result name=success type=chain
2013/5/8 Sreekanth S. Nair sreekanth.n...@egovernments.org
Hi,
Does Struts2 have any way to redirect from one action to another
action
which exist in a different Web Context.
ServletRedirectResult
form having s:token name=xyz/ and second one
having s:token name=xyztyy/ and that did the trick.
On Thu, Mar 7, 2013 at 1:10 PM, Sreekanth S. Nair
sreekanth.n...@egovernments.org wrote:
Hi,
I have a web app where its having a couple of operations say for
example Create User and Create Role
Hi,
I have a web app where its having a couple of operations say for
example Create User and Create Role. Both these forms are having struts2
token for handling duplicate submit. Its working as expected.
Now the problem is when try to open both of it and try to save both of it.
The window
Hi Eric,
We can not do it, since we are not using struts xml to map
action rather codebehind plugin.
--
Thanks Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On
what my question :)
--
Thanks Regards
Srikanth
On Tue, Feb 19, 2013 at 6:27 PM, Dave Newton davelnew...@gmail.com wrote:
On Tue, Feb 19, 2013 at 1:05 AM, Sreekanth S. Nair wrote:
is there any way to make it as default behaviour of struts2 to trim ?
AFAIK, no. I've solved this the same way
Hi,
Its common that user sometimes will enter string field values with
spaces or just by mistake value as empty space, is there any way to make it
as default behaviour of struts2 to trim ?
Right now we are depending on an Interceptor which will take care of
trimming value but this is making
Thanks Lukasz, appreciate your suggestion but our application is so huge to
make an sudden upgrade to latest version.
On Tue, Feb 12, 2013 at 3:51 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/2/12 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Which is the safest (required
the ognl
release note but i'm not quite sure about whether i can use it with struts-
2.1.2.
Thanks
On Mon, Feb 11, 2013 at 1:43 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:
2013/2/11 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Hi,
Does OGNL 3.0.6 jar work with Struts2 -core-2.1.2
Hi,
Does OGNL 3.0.6 jar work with Struts2 -core-2.1.2 without any issues?
according to http://struts.apache.org/2.3.4.1/docs/Performance%20Tuning.html
its
says struts 2.3 have to use ognl-3.0.3
but i can see some more performance improvement fixes at ognl 3.0.6.
regards
Hi,
how can i pass an arraylist from jsp to action class with out the help
of session or application variable Am not able to use
request.setAtrribute in jsp to do this why??
101 - 181 of 181 matches
Mail list logo