Dear All,
I am a part of an IVR project which uses Struts architecture.
I am facing a typical scenario in the Production.
When I forward the Action Forward object(using mapping.findForward(String
str) ) then the object instead of taking me to that particular place takes me
to a jsp(a
Dear All,
Elaborating my question :
Action Class : return mappin.findforward(abc);
Struts Config : forward name=abc path=abc.jsp /
It takes me to xyz.jsp.But user specific data is never
swapped with any other user data.Only the actionForward object jumps to a
Am Dienstag, 28. Oktober 2008 04:46:49 schrieb Ronaldo Rigoni ...:
Yes, I need that the container injected the instance of EJB in
Action automatically. Sorry for my english.
Tanks.
You may try the ejb struts plugin from googlecode /struts2 plugin page) - not
the solution you wan't, but you
Hi,
inside the execute method of an action i'm retrieving an Object. I want
the ModelDriven-Interceptor, to put it on the Stack when execute is done.
One solution would be to put the execute code into prepare and use the
paramsprepareparams-stack instead of the default-stack.
Is there a
Hi
I'm using URL rewriting (I can't use session cookies for certain
reasons). In my code, I have this:
s:url id=url value=%{#session['currentTransaction'].url}/
Locally, this generates my URL perfectly - preserving the jsessionid -
like this:
Here is a simple example showing this is broken!
Take the Struts2 blank app for 2.0.11.1. Now add a simple Model Driven Action
with a model that has an Integer property testNumber. Now add a jsp with a
field testNumber. Now put fred in testNumber and submit.
You get Invalid field value for
Hi,
on your production environment, how do you balance your request between
your tomcat servers? Do you use apache with mod_proxy, or mod_jk maybe
or anything else?
I had problems while using such architecture because of the way that
tomcat build url from values present in the http header.
Hi,
currently i'm trying to use my own Class to store configuration data for
my application.
To access the options from within the jsp page i want to use the struts
2 value stack. I somehow like the stack more than i like the session.
My problem is the following:
i can put objects in the
Hi,
reading your mail, it seems to me that you want te redevelop what Struts
2 can already do. When you put a getter in your action, you can access
to your attribute in the jsp like you seems to want to. I can't
understand why you want to put another Interceptor. If it is to set
always the
Since upgrading to struts 2.0.12 from 2.0.11.1 all conversion errors are being
lost.
Here is a simple example showing this is broken!
Take the Struts2 blank app for 2.0.11.1. Now add a simple Action with an
Integer property testNumber. Now add a jsp with a field testNumber. Now put
fred in
Hi!
If you have found a bug, please register an issue in JIRA and include
as much relevant information as possible.
http://struts.apache.org/helping.html#issues
Thanks.
Nils-H
On Tue, Oct 28, 2008 at 11:34 AM, David Harland [EMAIL PROTECTED] wrote:
Since upgrading to struts 2.0.12 from
Hello all,
It looks like the latest production quality release of Struts 2 is 2.0.12. I
would like to use it in a new Maven project but I can't find what I need in
my default repository. Could anyone please tell me in which Maven repository
i can find :
- Struts 2.0.12
- Struts-Spring plugin for
Done.
Thanks
--- On Tue, 10/28/08, Nils-Helge Garli Hegvik [EMAIL PROTECTED] wrote:
From: Nils-Helge Garli Hegvik [EMAIL PROTECTED]
Subject: Re: Struts 2.0.12 has broken Conversion Errors!!!
To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED]
Date: Tuesday, October 28,
call the setModel at the end of your action?
On Tue, Oct 28, 2008 at 4:33 AM, Alexander Baetz
[EMAIL PROTECTED]wrote:
Hi,
inside the execute method of an action i'm retrieving an Object. I want the
ModelDriven-Interceptor, to put it on the Stack when execute is done.
One solution would be
Thanks for your reply Sébastien
I got it working in the end - I used the 'action' attribute, rather than the
'value' attribute. Makes sense I guess - I thought I had been using 'value' in
other places with success, but I did a quick search of all my JSPs and no, I
use action everywhere. So,
Hi,
Everything is on the Maven central repository:
http://repo2.maven.org/maven2/org/apache/struts/struts2-core/2.0.12/
So you don't need any special configuration in Maven (Maven will automatically
search dependencies in the central).
Regards,
Julien
- Message d'origine
De :
I am using 2.0.11.2. When I am inheriting action, the codebehind
plugin is not overriding the definition for the supertype.
Example:
@Result(value=foo.jsp)
public class FooAction ...
@Result(value=bar.jsp)
public class BarAction extends FooAction
Then exeuting bar.action renders foo.jsp
Jon,
May I suggest that you try a simple app (Shouldn't take you more than 5
minutes to setup in Eclipse using WTP) where you examine how filters
behave. This is how I caught my problem. I basically created a simple
app (two jsp pages, one posting to the other one using a form) with
three
DI by default doesn't work, because POJOs (S2 actions) are not
container-managed resources.
You may use JNDI look
Annotate EJB @Stateless(mappedName=ejb/MyEJB) and in client(S2 action):
InitialContext c = new InitialContext();
MyEJBInterface o = (MyEJBInterface) c.lookup(ejb/MyEJB);
I have no
Thank you.
I'm surprised, that such the fundamental security issue isn't handled in
struts. When I was learning php, turning the reqister_globals directive off
was strongly recommended.
Mead Lai wrote:
url=action?username=adminpassword=blah
you means the GET way is too weakness and
hi,
my app has three packages public, sucurity (login,register,...) and private.
These packages correspond in that all actions within this package should be
displayed with the same menus. Therefore (i guess) i have (not yet, but
this is my idea) three base layouts from which to extend:
Definitely a wrong mailing list. Please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio
2008/10/28 Stephan Schröder [EMAIL PROTECTED]:
hi,
my app has three packages public, sucurity (login,register,...) and private.
These packages correspond in that all actions
Thanks for reporting, I will look into it.
musachy
On Tue, Oct 28, 2008 at 6:55 AM, David Harland [EMAIL PROTECTED]wrote:
Done.
Thanks
--- On Tue, 10/28/08, Nils-Helge Garli Hegvik [EMAIL PROTECTED] wrote:
From: Nils-Helge Garli Hegvik [EMAIL PROTECTED]
Subject: Re: Struts 2.0.12 has
PHP's register_globals really has nothing to do with GET vs POST but
rather with how it could be possible to inject variables into a script
to compromise later evaulation. Since Java doesn't allow such dynamic
variables, there is no equivalent.
In addition, whether your action is executed via
I'd go with bug. Please file a JIRA ticket at http://issues.apache.org/struts
Thanks,
Don
On Tue, Oct 28, 2008 at 11:16 PM, Leonard Broman [EMAIL PROTECTED] wrote:
I am using 2.0.11.2. When I am inheriting action, the codebehind
plugin is not overriding the definition for the supertype.
Hi,
Can someone please help me out with the problem I mentioned below? I am
using Struts 2.0.11.2.
Any help will be greatly appreciated!!
Thanks!
Regards,
Sayali.
-Original Message-
From: Kanade, Sayali
Sent: Monday, October 27, 2008 2:47 PM
To: user@struts.apache.org
Subject: SPAM
Should I assue that it is not possible?
On Mon, Oct 27, 2008 at 11:27 AM, Arash Bizhan zadeh [EMAIL PROTECTED]wrote:
Hi,
I have struts 2 application in which I use a modular design and each jar
file includes its own set of freemarker files for GUI.
I would like to put some common freemarker
Are you sure abut this? I am running 2.0.11.1 on the test case that you
mentioned, and the conversion errors are added to the fieldErrors map on
the action. Please note that the action must implement ValidationAware,
otherwise the errors will do get lost.
musachy
On Tue, Oct 28, 2008 at 9:27 AM,
2.0.11.1 works. 2.0.12 does not.
Regards
Dave
--- On Tue, 10/28/08, Musachy Barroso [EMAIL PROTECTED] wrote:
From: Musachy Barroso [EMAIL PROTECTED]
Subject: Re: Struts 2.0.12 has broken Conversion Errors!!!
To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED]
Date:
Attention Deficit Disorder + Multi-tasking = bad emails
:)
musachy
On Tue, Oct 28, 2008 at 10:35 AM, David Harland [EMAIL PROTECTED]wrote:
2.0.11.1 works. 2.0.12 does not.
Regards
Dave
--- On Tue, 10/28/08, Musachy Barroso [EMAIL PROTECTED] wrote:
From: Musachy Barroso [EMAIL
I know the feeling ;0)
Dave.
--- On Tue, 10/28/08, Musachy Barroso [EMAIL PROTECTED] wrote:
From: Musachy Barroso [EMAIL PROTECTED]
Subject: Re: Struts 2.0.12 has broken Conversion Errors!!!
To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED]
Date: Tuesday, October 28,
Indeed. The conversion errors are set on the fake stack, and are never
copied back to the original stack.
musachy
On Tue, Oct 28, 2008 at 10:46 AM, David Harland [EMAIL PROTECTED]wrote:
I know the feeling ;0)
Dave.
--- On Tue, 10/28/08, Musachy Barroso [EMAIL PROTECTED] wrote:
From:
Hi,
I dont' know if I get the idea about what do u want to do, but I will try
to copy some codes about how I resolve something similar, using AjaxTags
ajax:htmlContent target=tabContent source=sendAfs doPost=true
baseUrl=${pageContext.request.contextPath}/relatie/tabAfspraken.do
(Just to record it)
It can actually. I have made a mistake
On Tue, Oct 28, 2008 at 10:25 AM, Arash Bizhan zadeh [EMAIL PROTECTED]wrote:
Should I assue that it is not possible?
On Mon, Oct 27, 2008 at 11:27 AM, Arash Bizhan zadeh [EMAIL PROTECTED]wrote:
Hi,
I have struts 2 application in
Torsten - That is what I ended up doing as I could not get the Struts 2
JasperReports plug-in to work with the XML data source.
Bruce
-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 4:53 PM
To: Struts Users Mailing List
Subject: Re: Struts
I am using Struts 2.0.11, Sitemesh 2.3, Displaytag 1.1.1, and Spring 2.5.
Here is the problem. I have 6 levels of drill down on a ProductContainer
object. I am currently keeping these ProductContainer drill down objects in
the session as the user drills down into the product detail. Storing and
Hi,
I am using the following form/Struts 1.1 Action class for File Upload and I
am getting the fileitems as 0. Using Apache Commons File Upload to parse the
request in the Dispatch Action.
JSP:
form name=merlinUpdatePkgForm action=/admin/Pkg.do?method=fileupload
method=post
Fixed on trunk and 2.0 branch of XWork.
musachy
On Tue, Oct 28, 2008 at 10:55 AM, Musachy Barroso [EMAIL PROTECTED] wrote:
Indeed. The conversion errors are set on the fake stack, and are never
copied back to the original stack.
musachy
On Tue, Oct 28, 2008 at 10:46 AM, David Harland
You should probably be doing this from an interceptor.
Matt
Alexander Baetz wrote:
Hi,
currently i'm trying to use my own Class to store configuration data for
my application.
To access the options from within the jsp page i want to use the struts
2 value stack. I somehow like the
I would like a make a couple beans available to the view layer.
I want to do this without modifying actions or customizing what they inherit
from.
I would like to do this in a generic way, without making something that is
specific to one view technology. e.g. I know it could be done with a
I'm using struts and dojo. My code works fine until I change the
struts namespace.
These are my actions:
package name=expedient extends=struts-default
action name=showExpedients
resultpages/expedient/Expedient.jsp/result
/action
Make sure that you updated the url tags(add or change namespace) used to
build the url for the ajax request, in this case viewLinesUrl.
musachy
On Tue, Oct 28, 2008 at 12:28 PM, Sergio Sánchez González
[EMAIL PROTECTED] wrote:
I'm using struts and dojo. My code works fine until I change the
Thanks for your reply, but not sure it answers my question.
My question is: How can I prevent a div from refreshing its contents on page
load? The div should only be refreshed on button click.
My problem is that, my div loads on page load. It also reloads on submit button
click, but it should
Don is right.
No security issue here (and absolutely nothing to do with PHP's
register_globals).
I see little use in trying to discriminate between GET and POST in the
action side,
at least not in relation with security.
Of course, you should never use GET when submitting a password, but that's a
Thank you both for replying. It's much clearer now. I just wanted to forbid
GET access to actions. I think it's completely legal request to be able
explicitly deny access to actions like AuthenticateUser (no matter security,
parameters, etc. now). I just don't want anyone to call such the actions
Bump... with a little more info.
Using struts 2.0.11.2. I have the annotation
@Result(name=success, value=someaction, params={id, ${id}},
type=ServletActionRedirectResult.class). There is a getter and setter for
id on both action classes. Neither is called. Results are the same setting
the
Hi,
Still stuck here, can anyone please provide examples of populating a div by
calling an action after page load on button click??
Is this supposed to be this hard?? :(
Any help would be appreciated.
Thanks!
Regards,
Sayali.
-Original Message-
From: Kanade, Sayali
Sent: Tuesday,
Hi,
I have a Struts2 application and I'm using the display:table tag.
My problem is that I want to change the param's name for paging (in my case
d-457775-p) for another... How can I do it?
I have seen the parameters (display:property..) but... nothing.
And another thing more... how to do for
I'm trying to get struts to spit out the client side validation code and it
doesn't seem to be working. The backend validation is working fine but when
I use the xhtml theme with the s:head /, the script code under the form is
not being generated.
Looking at the code it looks like it's failing
49 matches
Mail list logo