2014-12-16 18:01 GMT+01:00 Roger Varley roger.var...@googlemail.com:
No - that marks it for auto-scanning. In the meantime I've gone back to
2.3.16.1 and everything is working again :(
That won't help ;-) Can you share more details about your application
configuration? Or prepare a small demo
Hi
After upgrading to 2.3.20 from 2.3.16.1 the following .jsp snippet fails to
compile. Reverting back to 2.3.16.1 and it starts to work again.
s:action name=list-platforms var=list /
s:select list=#list.platforms listKey=%{id}
listValue=%{platformName} name
Can you post the whole log? Maybe there are some warnings
2014-12-16 14:48 GMT+01:00 Roger Varley roger.var...@googlemail.com:
Hi
After upgrading to 2.3.20 from 2.3.16.1 the following .jsp snippet fails to
compile. Reverting back to 2.3.16.1 and it starts to work again.
s:action name=list
with context path [/FaultmateGenesis-Server]. -
[unknown location]
So it looks as if the change is with the s:action tag processing, or has
something else changed between 2.3.16.1 and 2.3.20 that I've missed?
Regards
On 16 December 2014 at 15:55, Lukasz Lenart lukaszlen...@apache.org wrote:
Can you
for namespace [/admin] and action name
[list-platforms] associated with context path [/FaultmateGenesis-Server]. -
[unknown location]
So it looks as if the change is with the s:action tag processing, or has
something else changed between 2.3.16.1 and 2.3.20 that I've missed?
A lot ;-) That's
] associated with context path
[/FaultmateGenesis-Server]. -
[unknown location]
So it looks as if the change is with the s:action tag processing, or has
something else changed between 2.3.16.1 and 2.3.20 that I've missed?
A lot ;-) That's the problem with .20 - too many changes :(
Do you use
] associated with context path
[/FaultmateGenesis-Server]. -
[unknown location]
So it looks as if the change is with the s:action tag processing, or has
something else changed between 2.3.16.1 and 2.3.20 that I've missed?
A lot ;-) That's the problem with .20 - too many changes :(
Do you
-
Could not execute action: /admin/list-platforms
There is no Action mapped for namespace [/admin] and action name
[list-platforms] associated with context path
[/FaultmateGenesis-Server]. -
[unknown location]
So it looks as if the change is with the s:action tag processing
2014-12-16 16:37 GMT+01:00 Sreekanth S. Nair sreekanth.n...@egovernments.org:
Hi Lukasz,
Could it be the same problem what i was facing about rest
plugin ?
Nope, your problem was missing configuration for coexisting normal web
app with rest endpoints
Regards
--
Łukasz
+ 48
2014-12-16 15:23 GMT+01:00 Roger Varley roger.var...@googlemail.com:
import org.springframework.stereotype.Service;
@Service
Doesn't this annotation define Singleton?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
No - that marks it for auto-scanning. In the meantime I've gone back to
2.3.16.1 and everything is working again :(
Regards
On 16 December 2014 at 18:00, Lukasz Lenart lukaszlen...@apache.org wrote:
2014-12-16 15:23 GMT+01:00 Roger Varley roger.var...@googlemail.com:
import
the origin behaviour.
I hope it could help you.
Thanks,
Felipe Lorenz
Em 26/06/2013, às 04:45, Lukasz Lenart escreveu:
As I understand you use s:action executeResult=false/ ? Which
means result named json shouldn't be executed, you can even remove
it.
Regards
--
Łukasz
+ 48 606 323 122
, às 04:45, Lukasz Lenart escreveu:
As I understand you use s:action executeResult=false/ ? Which
means result named json shouldn't be executed, you can even remove
it.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/6/22 Felipe Lorenz felipe.lor...@idealogic.com.br
__
Por favor, não altere ou perturbar essa transmissão
From: lukaszlen...@apache.org
Date: Thu, 27 Jun 2013 14:17:18 +0200
Subject: Re: s:action tag showing result
To: user@struts.apache.org
Username?
2013/6/27 Felipe Lorenz felipe.lor
understand you use s:action executeResult=false/ ? Which
means result named json shouldn't be executed, you can even remove
it.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/6/22 Felipe Lorenz felipe.lor...@idealogic.com.br:
Hello Lukasz,
I still facing this behaviour
Obrigado,
Martin
__
Por favor, não altere ou perturbar essa transmissão
From: lukaszlen...@apache.org
Date: Thu, 27 Jun 2013 14:17:18 +0200
Subject: Re: s:action tag showing result
To: user@struts.apache.org
Username?
2013/6/27 Felipe
2013/6/27 Felipe Lorenz felipe.lor...@idealogic.com.br:
felipe.lorenz
You should have Create Issue on the top right?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
-
To unsubscribe, e-mail:
Issue created!
Felipe Lorenz
Em 27/06/2013, às 16:46, Lukasz Lenart escreveu:
2013/6/27 Felipe Lorenz felipe.lor...@idealogic.com.br:
felipe.lorenz
You should have Create Issue on the top right?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
As I understand you use s:action executeResult=false/ ? Which
means result named json shouldn't be executed, you can even remove
it.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/6/22 Felipe Lorenz felipe.lor...@idealogic.com.br:
Hello Lukasz,
I still facing
,
Felipe Lorenz
Em 26/06/2013, às 04:45, Lukasz Lenart escreveu:
As I understand you use s:action executeResult=false/ ? Which
means result named json shouldn't be executed, you can even remove
it.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/6/22 Felipe Lorenz
Snapshots
https://repository.apache.org/content/groups/snapshots/
2.3.15 is under way to Maven Central
2013/6/21 Felipe Lorenz felipe.lor...@idealogic.com.br:
There is a maven repository for the snapshots?
Felipe Lorenz
Gerente de Projetos
Idealogic Software
Fone: (51) 3715 5523 - (51)
2013/6/22 Litman, Bruno blit...@alabamainteractive.org:
We are also experiencing issues with tags and theme files, we are upgrading
many applications from 2.3.4.1 to 2.3.14.3
I am not sure if this is related - if not and if I need to start a new
discussion please let me know and accept my
Hello Lukasz,
I still facing this behaviour. Even with 2.3.16-SNAPSHOT.
One thing that make me thing, was the flush attribute. When it is true, the
json result (the string) appear in the position where the action tag is in the
jsp. But, when I change it to false, the result appears in the top
Hi!
I'm facing not the same, but a strange behavior too with s:action tag
since Struts version 2.3.12.
I'm using them in similar way than Felipe, so it load some Lists to be
used later for Select Fields filling. It worked well until change struts
version form 2.3.8 to 2.3.12 and later.
Now
:
Hi all,
I have been using struts quite a long time, but in the last days I have
faced a strange behaviour of s:action tag.
In my JSP I am using the tag action to load list to be used to mount my
s:select. But in the redered HTML, the result of the action is showing, even
when
/2013 14:30
Asunto: Re: s:action tag showing result
Hi Lukasz,
I try struts v. 2.3.8, and everything works fine. But, the first version
I've notice this strange behaviour was 2.3.12.
I try to find the ftl file for the action tag, but I could no find it.
There is a special file? How does it works
Could you try with the latest (almost released) version 2.3.15?
I was checking locally with struts2-blank app and everything works,
but maybe my setup is a bit different. If so I will need an example
app (maven based the best).
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Thanks for all your help Lukasz,
Looking with more attention (I know, sorry) my struts.xml and comparing with
the json plugin wiki, my result was different.
Before, I had:
result name=json type=json
And to fix the issue, I remove the name attribute.
result type=json
But, my question is, why
I have tested with struts2-blank and it works - I mean, executeResult
is respected (as in 2.3.15). You can test that by simple removing all
result definitions from struts.xml for that action.
2013/6/21 Felipe Lorenz felipe.lor...@idealogic.com.br:
Thanks for all your help Lukasz,
Looking with
There is a maven repository for the snapshots?
Felipe Lorenz
Gerente de Projetos
Idealogic Software
Fone: (51) 3715 5523 - (51) 3715 5548
www.idealogic.com.br
Em 21/06/2013, às 10:47, Lukasz Lenart escreveu:
I have tested with struts2-blank and it works - I mean, executeResult
is respected
...@boluda.com.es]
Sent: Friday, June 21, 2013 7:43 AM
To: Struts Users Mailing List
Subject: Re: s:action tag showing result
I agree with Felipe. In version 2.3.8 all was fine, but from 2.3.12 all the
problems with tags begun (action tags and field tags).
Thanks
Daniel Clemente Ivars
De
Hi all,
I have been using struts quite a long time, but in the last days I have faced a
strange behaviour of s:action tag.
In my JSP I am using the tag action to load list to be used to mount my
s:select. But in the redered HTML, the result of the action is showing, even
when
Have you tried to use the previous versions?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/6/20 Felipe Lorenz felipe.lor...@idealogic.com.br:
Hi all,
I have been using struts quite a long time, but in the last days I have faced
a strange behaviour of s:action tag
implies a
lot of HTTP connections to the server, which we would like to avoid.
The way we have thought to avoid those extra communications is to use the
tag s:action on the JSP. That way the action is invoked inline from the
presentation layer, and the information(the JSON returned by the action
extra communications is to use the
tag s:action on the JSP. That way the action is invoked inline from the
presentation layer, and the information(the JSON returned by the action)
incorporated on the JSP and sent to the browser, where the UI is created
with Dojo and shown to the user.
The only
Dear all,
I am having problems implementing the suggestion of struts' suggestion
of how to populate a page when validation fails. My idea was to have a
s:action in the jsp that will be the input result of the failing
validation action.
However, it seems that the interceptor stack of the 2nd
On Wed, Apr 27, 2011 at 7:13 AM, Miguel wrote:
1) Why doesn't the method mapped to s:action name=xxx get called
when the form fails, ie, why is its interceptor stack picking up an
error when it shouldn't?
It's not making a separate *browser* request, it's all internal to S2.
Another reason I
-repopulate-controls-when-validation-fails.html
is incorrect in suggesting s:action for this?
Personally, I think things like this are better handled through
Preparable or similar mechanism.
I haven't used the Preparable approach much, mainly because my actions
are usually grouped by domain
-04-27 at 08:59 -0400, Dave Newton wrote:
It's not making a separate *browser* request, it's all internal to S2.
Does this mean that struts' FAQ in
https://cwiki.apache.org/WW/how-do-we-repopulate-controls-when-validation-fails.htmlis
incorrect in suggesting s:action
if the actionErrors from the source
action will be copied.
And by the way I am using the lastest version 2.2.1
-Mensaje original-
De: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
Enviado el: Thursday, October 28, 2010 5:25 PM
Para: Struts Users Mailing List
Asunto: Re: Struts 2 s:action
/action
personForm.jsp:
%@ taglib prefix=s uri=/struts-tags %
s:form action=savePerson
s:textfield name=firstName label=First Name /
s:textfield name=lastName label=Last Name /
s:action name=countries executeResult=true /
s:submit /
/s:form
Rendering a control (and repopulating its values) is a different thing
than displaying validation error messages.
IMO the way you're doing it isn't a particularly good idea; it would
be better to render the control on the page, *possibly* using s:action
to create the list of possible values
s:action tag doesn't render action errors if any are
present
Rendering a control (and repopulating its values) is a different thing
than displaying validation error messages.
IMO the way you're doing it isn't a particularly good idea; it would
be better to render the control on the page
-Mensaje original-
De: Dave Newton [mailto:davelnew...@gmail.com]
Enviado el: Thursday, October 28, 2010 12:51 PM
Para: Struts Users Mailing List
Asunto: Re: Struts 2 s:action tag doesn't render action errors if any are
present
Rendering a control (and repopulating its values) is a different
, 2010 1:10 PM
Para: Struts Users Mailing List
Asunto: Re: Struts 2 s:action tag doesn't render action errors if any are
present
You could try keeping them in the session, but that might involve
tricky configuration sometimes--not sure. You're rendering a single
control; I don't see that you're saving
I totally agree with Dave: ParameterInterceptor is the better choice.
BTW, I'm not sure it fits your needs but you should take a look at
this issue https://issues.apache.org/jira/browse/WW-2869 and
https://issues.apache.org/jira/browse/WW-3488 (especially where Lukasz
talked about copyErrors and
Which interceptor do you mean? ChainingInterceptor?
Alfredo Osorio
-Mensaje original-
De: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
Enviado el: Thursday, October 28, 2010 4:25 PM
Para: Struts Users Mailing List
Asunto: Re: Struts 2 s:action tag doesn't render action
Which interceptor do you mean? ChainingInterceptor?
I meant implementing a new Interceptor from scratch. Although this
issue are related to the chainInterceptor.
What interceptor stack are you using? Does your request fire chainInterceptor?
2010/10/29 Alfredo Manuel Osorio Martinez
I don't know what struts version you are running, in 2.2.1 version,
chain interceptor should copy actionError through actions.
--
Maurizio Cucchiara
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional
using the lastest version 2.2.1
-Mensaje original-
De: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
Enviado el: Thursday, October 28, 2010 5:25 PM
Para: Struts Users Mailing List
Asunto: Re: Struts 2 s:action tag doesn't render action errors if any
are present
Which interceptor
[mailto:maurizio.cucchi...@gmail.com]
Enviado el: Thursday, October 28, 2010 5:25 PM
Para: Struts Users Mailing List
Asunto: Re: Struts 2 s:action tag doesn't render action errors if any
are present
Which interceptor do you mean? ChainingInterceptor?
I meant implementing a new Interceptor from scratch
2. What I liked about having an action for rendering the controls it's that I
can reuse them across different JSP pages. What other alternatives do you
suggest me that can achieve the same level of modularity?
Try jsp:include or s:include.
You can create a common jsp, and include it in
Can someone illustrate some good uses of the s:action tag?
It's one tag that I haven't used in Struts2 but I suspect I could get a
lot of utility out of it, particularly by modularizing my actions.
-
To unsubscribe, e-mail
Ok, calling it from AJAX, instead of s:action, seems to work, but
unfortunately it appears the JSON Plugin isn't compatible with Struts 2.1.
I'm currently using 2.1.2, but the documentation says that it works with
2.0.6. Is there any plan to update it to work with 2.1? What I'm seeing
*)
On Tue, Jul 14, 2009 at 11:16 PM, Chris Pratt thechrispr...@gmail.comwrote:
Ok, calling it from AJAX, instead of s:action, seems to work, but
unfortunately it appears the JSON Plugin isn't compatible with Struts 2.1.
I'm currently using 2.1.2, but the documentation says that it works
On Wed, Jul 15, 2009 at 3:35 AM, Chris Prattthechrispr...@gmail.com wrote:
Ok, now I'm totally confused. The documentation at
http://cwiki.apache.org/S2PLUGINS/json-plugin.html says that the plug-in
required 2.0.6 or greater. It clearly did not support 2.1.2, but it seems
to support 2.1.6.
I think the last release worked with 2.1 right?
musachy
On Wed, Jul 15, 2009 at 5:59 AM, Wes Wannemacherw...@wantii.com wrote:
On Wed, Jul 15, 2009 at 3:35 AM, Chris Prattthechrispr...@gmail.com wrote:
Ok, now I'm totally confused. The documentation at
Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
(*Chris*)
On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso musa...@gmail.com wrote:
I think the last release worked with 2.1 right?
musachy
On Wed, Jul 15, 2009 at 5:59 AM, Wes Wannemacherw...@wantii.com wrote:
On
On Wed, Jul 15, 2009 at 11:56 AM, Chris Prattthechrispr...@gmail.com wrote:
Yup, the latest jar file works with 2.1.6 (but not 2.1.2 for the record).
(*Chris*)
What went wrong in 2.1.2? This intrigues me :)
-Wes
On Wed, Jul 15, 2009 at 8:11 AM, Musachy Barroso musa...@gmail.com wrote:
I
It was in one of my earlier posts, but I was getting this:
java.lang.NoSuchMethodError:
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
at com.googlecode.jsonplugin.JSONResult.execute(JSONResult.java:157)
at
That's weird, now you have me more curious, I don't remember making
changes to get it working in 2.1, other than updating unit tests...
Musachy, do you remember that going from 2.1.2 to 2.1.3? I was using
it with 2.1.3-SNAPSHOT quite a bit, so it must have been something
that changed shortly after
légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Wed, 15 Jul 2009 12:08:50 -0400
Subject: Re: JSON Plugin and S:Action
From: w...@wantii.com
To: user
yeah, something did change and I think ti was some signature from
MapString, String to MapString, Object or the other way around.
On Wed, Jul 15, 2009 at 9:08 AM, Wes Wannemacherw...@wantii.com wrote:
That's weird, now you have me more curious, I don't remember making
changes to get it working
Yup, I had to change a couple of my helper classes because of that change.
(*Chris*)
On Wed, Jul 15, 2009 at 9:14 AM, Musachy Barroso musa...@gmail.com wrote:
yeah, something did change and I think ti was some signature from
MapString, String to MapString, Object or the other way around.
I'm having a problem using s:action executeResult=true with an action
whose result type is json. It doesn't insert the results. My Action is
something like:
public class InitCalendarAction {
private ListListString json;
/**
* Get the JSON Object to be Serialized
*
* @return JSON
Never thought of this use case before. Does it work if you use the
action directly, instead of calling from a jsp?
musachy
On Mon, Jul 13, 2009 at 11:17 PM, Chris Prattthechrispr...@gmail.com wrote:
I'm having a problem using s:action executeResult=true with an action
whose result type is json
:
Never thought of this use case before. Does it work if you use the
action directly, instead of calling from a jsp?
musachy
On Mon, Jul 13, 2009 at 11:17 PM, Chris Prattthechrispr...@gmail.com
wrote:
I'm having a problem using s:action executeResult=true with an action
whose result type
to the view
where I show the user and still have the old user data ...I don't know if
there are other posibility to make this and show later the updates data.
I use this action tag to show the information in the view:
s:action name=crearEncuesta!getFormInView id=action namespace=default
executeResult
to make this and show later the updates
data.
I use this action tag to show the information in the view:
s:action name=crearEncuesta!getFormInView id=action
namespace=default executeResult=false/
...
pstrongNombre de la Encuesta : /strong ${form.name}/p
pstrongIntroducción de la
posibility to make this and show later the
updates data.
I use this action tag to show the information in the view:
s:action name=crearEncuesta!getFormInView id=action
namespace=default executeResult=false/
...
pstrongNombre de la Encuesta : /strong ${form.name}/p
pstrongIntroducción
Thanks in advance for reading,
I have a register.jsp page. Here is a short snippet.
s:form theme=xhtml action=/user/save validate=true
%-- other unrelated fields here --%
s:action name=states namespace=/resources executeResult=true/
s:submit value=Create %{domainModelObjectName
I have been playing with the s:action tag and have found it impossible to
reference any property of the action in a struts2 like way. If I call an
action, ActionOne.java and return success then I am redirected to a page
called one-success.jsp which has the following:
lt;s:action namespace
By name means by the id in the action tag, like:
s:action var=myaction ..
/s:action
s:property value=#myaction.someProperty /
musachy
On Fri, Mar 13, 2009 at 11:49 AM, doahh ga...@prodia.co.uk wrote:
I have been playing with the s:action tag and have found it impossible to
reference any
Looking again at the post from:
http://www.nabble.com/-S2--s:action-in-value-stack--td21551483.html
I see that the answer is
lt;s:action namespace=/mynamespace name=actionTwo id=myActionTwo
/gt;
lt;s:property value=#myActionTwo.myActionTwoProperty /gt;
I didn't understand the significance
I didn't see your post before I posted again - thanks for the answer.
Musachy Barroso wrote:
By name means by the id in the action tag, like:
s:action var=myaction ..
/s:action
s:property value=#myaction.someProperty /
musachy
On Fri, Mar 13, 2009 at 11:49 AM, doahh ga
no longer works and gives HTTP 404. We had a brief look at the
source code of the ActionTag class (i.e. the one behind the s:action
tag) of the Struts2 view layer, but the code that actually fetches the
response and writes it to the client is too deeply buried, so maybe some
kind soul can give us
by a filter and not by a servlet, this approach no longer works
and gives HTTP 404. We had a brief look at the source code of the ActionTag
class (i.e. the one behind the s:action tag) of the Struts2 view layer,
but the code that actually fetches the response and writes it to the client
is too deeply
to Struts2
being served by a filter and not by a servlet, this approach no longer works
and gives HTTP 404. We had a brief look at the source code of the ActionTag
class (i.e. the one behind the s:action tag) of the Struts2 view layer,
but the code that actually fetches the response and writes
Hi Musachy,
what you say makes sense, but then I think one thing is missing in the
doc for s:action (http://struts.apache.org/2.1.6/docs/action.html):
I suggest something like this:
The action is never placed on the value stack like an action called by
URL, so that accessing fields
Hmmm, no reply. So I will bounce this issue one last time...
Up to now, nobody could tell me why an action called by s:action is
not placed on the value stack the same way as an action called by URL.
Wolfgang
Wolfgang Knauf wrote:
Musachy Barroso wrote:
what does s:property value=top
Didn't my previous email answer your questions?
Ok, let me try to clarify this, if the result of some action, lets
call it firstAction contains:
s:action var=secondAction ...
!-- tag content --
s:/action
while the result of secondAction is executed, secondAction will be
on top of the stack
of the stack, but it is available by name in the
stack, only outside the action tag.
I cannot confirm the first half of this (see my sample). A action called by
s:action seems to be accessible only be its var name, but not by
standard value stack access.
Shall I file a JIRA for this? I don't want
Darn, Ctrl+Enter is no good
So, one more try:
Musachy Barroso wrote:
what does s:property value=top / prints in the action result?
I updated my sample
(http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war)
so that the JSP outputs this:
s:action name
Musachy Barroso wrote:
Yes, during the result of the invoked action, the invoked action will
be on the top of the stack, but it is available by name in the
stack, only outside the action tag.
I cannot confirm the first half of this (see my sample). A action called
by s:action seems
by name in the
stack, only outside the action tag.
I cannot confirm the first half of this (see my sample). A action called by
s:action seems to be accessible only be its var name, but not by
standard value stack access.
Shall I file a JIRA for this? I don't want to spam it, but up to now
Ok, let me try to clarify this, if the result of some action, lets
call it firstAction contains:
s:action var=secondAction ...
!-- tag content --
s:/action
while the result of secondAction is executed, secondAction will be
on top of the stack, and it is not available by name in the stack
Hi,
are you sure about the tag-action beeing on top of the stack during the
execution of its result?
i use an action-tag to generate a view component (a little info box on
my page) and on one of my pages there is the situation that the
tag-action is of the same class as the original action.
Yes, during the result of the invoked action, the invoked action will
be on the top of the stack, but it is available by name in the
stack, only outside the action tag.
musachy
On Wed, Jan 28, 2009 at 5:40 AM, Alexander Baetz
baetz.paderb...@arcor.de wrote:
Hi,
are you sure about the
The top.id works the same way as a plain id: it cannot be resolved
when the action is called by s:action, but it can be resolved if the
action is invoked by URL.
Is this the expected behavior or a bug?
Thanks
Wolfgang
with a property id):
http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war
To run it, call: http://localhost:8080/Struts2Action/index.jsp
==
This is the relevant part of my index.jsp:
s:action name=someaction var=someActionVariable
Inside s:action: Property id
To run it, call: http://localhost:8080/Struts2Action/index.jsp
==
This is the relevant part of my index.jsp:
s:action name=someaction var=someActionVariable
Inside s:action: Property id: s:property value=id/ br/
Inside s:action: Property #someActionVariable.id:
s:property
and its result evaluated and that result sent in place. You can
choose not to execute the result but then it just does something and the
view moves on. When you are doing s:action/ you are at the view stage
right? Your original action has already completed.
Maybe the var is used if you did
Hi,
I would be careful about placing action execution logic in your view. This
is really not the place to be making navigation decisions.
I know ;-). I use it only on my index page, where I force creation of an
action which provides me with a list of items to display on the start
page. So
Hi,
Maybe the var is used if you did something like:
s:action name=doSomething var=myAction
s:property value=%{#myAction.getterMethod}/
or
s:property value=getterMethod/
/s:action
Unfortunately not, I gave this a try already (using id attribute, as
Struts 2.0.14 does not know
explanation in fact :)
musachy
On Tue, Jan 20, 2009 at 4:28 PM, Wolfgang Knauf his-metal...@freenet.de wrote:
Hi,
Maybe the var is used if you did something like:
s:action name=doSomething var=myAction
s:property value=%{#myAction.getterMethod}/
or
s:property value=getterMethod/
/s:action
Hi all,
there is one thing about calling an action through the s:action tag: I
can provide an id, and I can call the properties of the action with
#actionid.field annotations later on the page.
But I would expect this action to be placed on the value stack, so that
e.g. s: property value
I have not researched this butthe way I understand it the action is
executed and its result evaluated and that result sent in place. You can
choose not to execute the result but then it just does something and the
view moves on. When you are doing s:action/ you are at the view stage
right
use s:action name=actionTagAction executeResult=true / Tag.
In the result page.jsp of actionTagAction, shall I contain
%@ page language=java contentType=text/html; charset=GBK%
[EMAIL PROTECTED] prefix=s uri=/struts-tags%
at the first line in the jsp file?
And can the page, which include
I did a test a minute age.
The jsp Page is impossible to get the value in the inlcluded actions:action
name=actionTagAction ,
but actionTagAction can get params from the jsp.
May everyone now is in bed now.
thx.
On Mon, Oct 20, 2008 at 10:21 AM, Mead Lai [EMAIL PROTECTED] wrote:
use s:action
Griffith, Michael * wrote:
Jeromy,
Thanks for the replies.
In cases where I've needed this behaviour I've referenced the JSP
instead of a Tile.
Do you mean your result redirects to a JSP instead of a struts action?
MG
Not Redirect, DISPATCH to a JSP.
1 - 100 of 132 matches
Mail list logo