Aw: Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Wolfgang Knauf
Done: https://issues.apache.org/jira/browse/WW-5475 Best regards Wolfgang > Gesendet: Sonntag, 20. Oktober 2024 um 11:17 > Von: "Lukasz Lenart" > An: "Struts Users Mailing List" > Betreff: Re: Struts 7: error when "s:action" is used on jsp pa

Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Lukasz Lenart
niedz., 20 paź 2024 o 11:14 Wolfgang Knauf napisał(a): > > OK, I see. Thanks for the clarification. > > Is there any chance to improve the error message or detect this > situation? You wrote that this is a recommendation, and it worked with > the old version. But the exception does not point to an

Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Wolfgang Knauf
20.10.24 um 11:02 schrieb Lukasz Lenart: sob., 19 paź 2024 o 15:18 Wolfgang Knauf napisał(a): I have a "index.jsp" and invoke an action using "s:action" tag, then render data from this action. In the browser I navigate to this jsp direcly ("http://localhost/index.jsp

Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Lukasz Lenart
sob., 19 paź 2024 o 15:18 Wolfgang Knauf napisał(a): > I have a "index.jsp" and invoke an action using "s:action" tag, then render > data from this action. In the browser I navigate to this jsp direcly > ("http://localhost/index.jsp"; instead of browsing t

Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-19 Thread Wolfgang Knauf
I have a "index.jsp" and invoke an action using "s:action" tag, then render data from this action. In the browser I navigate to this jsp direcly ("http://localhost/index.jsp"; instead of browsing to ".../i

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-17 Thread Lukasz Lenart
2014-12-16 18:01 GMT+01:00 Roger Varley : > 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 app that behaves the same w

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
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 wrote: > > 2014-12-16 15:23 GMT+01:00 Roger Varley : > > import org.springframework.stereotype.Service; > > > > @Service > > Doe

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
2014-12-16 15:23 GMT+01:00 Roger Varley : > import org.springframework.stereotype.Service; > > @Service Doesn't this annotation define Singleton? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
2014-12-16 16:37 GMT+01:00 Sreekanth S. Nair : > 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 606 323 122 http://www.lenart

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Sreekanth S. Nair
rt > > wrote: > >> > >> 2014-12-16 15:03 GMT+01:00 Roger Varley : > >> > Referring to the log file, the dump was preceded by the following few > >> lines; > >> > > >> > 16 Dec 2014 15:44:09 ERROR > >> ActionComponent,"h

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
uot;-exec-5:42 - >> > 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] >> &g

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
st-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? >

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
tion 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, or has > something else changed between 2.3.16.1 and 2.3.20 that I'

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
iated 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 wrote: > > Can y

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
Can you post the whole log? Maybe there are some warnings 2014-12-16 14:48 GMT+01:00 Roger Varley : > 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. > > > listValue=

2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
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. org.apache.jasper.JasperException: tag 'select', field 'list', name 'platformId': The requested list key '#list.platforms' could not be re

Re: s:action tag showing result

2013-06-27 Thread Felipe Lorenz
Issue created! Felipe Lorenz Em 27/06/2013, às 16:46, Lukasz Lenart escreveu: > 2013/6/27 Felipe Lorenz : >> felipe.lorenz > > You should have "Create Issue" on the top right? > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --

Re: s:action tag showing result

2013-06-27 Thread Lukasz Lenart
2013/6/27 Felipe Lorenz : > 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: user-unsubscr...@struts.apache.org For additiona

Re: s:action tag showing result

2013-06-27 Thread Felipe Lorenz
-framework-reference.html#beans-c-namespace > > 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 >>

Re: s:action tag showing result

2013-06-27 Thread Felipe Lorenz
felipe.lorenz Felipe Lorenz Gerente de Projetos Idealogic Software Fone: (51) 3715 5523 - (51) 3715 5548 www.idealogic.com.br Em 27/06/2013, às 09:17, Lukasz Lenart escreveu: > Username? > > 2013/6/27 Felipe Lorenz : >> Sure! >> >> I have created an user at jira, but I think I dont have permis

RE: s:action tag showing result

2013-06-27 Thread Martin Gainty
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?

Re: s:action tag showing result

2013-06-27 Thread Lukasz Lenart
Username? 2013/6/27 Felipe Lorenz : > Sure! > > I have created an user at jira, but I think I dont have permissions to open a > new issue. Or am I in the wrong place? :) > > > Felipe Lorenz > > Em 27/06/2013, às 03:11, Lukasz Lenart escreveu: > >> Thanks Felipe! >> >> I think we must extend RestA

Re: s:action tag showing result

2013-06-27 Thread Felipe Lorenz
Sure! I have created an user at jira, but I think I dont have permissions to open a new issue. Or am I in the wrong place? :) Felipe Lorenz Em 27/06/2013, às 03:11, Lukasz Lenart escreveu: > Thanks Felipe! > > I think we must extend RestActionProxyFactory to also add exclude list > of namesp

Re: s:action tag showing result

2013-06-26 Thread Lukasz Lenart
Thanks Felipe! I think we must extend RestActionProxyFactory to also add exclude list of namespaces, eg. "/ajax,/login", thus will allow to work in your configuration. Could you register an issue? Thanks in advance -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/26 Felipe Lorenz :

Re: s:action tag showing result

2013-06-26 Thread Felipe Lorenz
Hi Lukasz, I could identify one plugin wich could be creating this behaviour, the rest plugin. Since I have this configuration: >> > value="org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper"/> >> > value=":rest,/ajax:struts,/login:struts"/> I expect that, when I request the followi

Re: s:action tag showing result

2013-06-26 Thread Lukasz Lenart
As I understand you use ? 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 : > Hello Lukasz, > > I still facing this behaviour. Even with 2.3.16-SNAPSHOT. > > One thing that make

Re: s:action tag showing result

2013-06-22 Thread Felipe Lorenz
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 o

Re: s:action tag showing result

2013-06-22 Thread Lukasz Lenart
2013/6/22 Litman, Bruno : > 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 apology. > > 1/ > > We previo

Re: s:action tag showing result

2013-06-22 Thread Lukasz Lenart
Snapshots https://repository.apache.org/content/groups/snapshots/ 2.3.15 is under way to Maven Central 2013/6/21 Felipe Lorenz : > There is a maven repository for the snapshots? > > Felipe Lorenz > Gerente de Projetos > Idealogic Software > Fone: (51) 3715 5523 - (51) 3715 5548 > www.idealogic.co

RE: s:action tag showing result

2013-06-21 Thread Litman, Bruno
ars [mailto:daniel.cleme...@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 C

Re: s:action tag showing result

2013-06-21 Thread Felipe Lorenz
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 (

Re: s:action tag showing result

2013-06-21 Thread Lukasz Lenart
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 : > Thanks for all your help Lukasz, > > Looking with more attention (I know, sorr

Re: s:action tag showing result

2013-06-21 Thread Felipe Lorenz
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: And to fix the issue, I remove the name attribute. But, my question is, why does it affect the action tag? I understand

Re: s:action tag showing result

2013-06-21 Thread Lukasz Lenart
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/ -

Re: s:action tag showing result

2013-06-21 Thread Daniel Clemente Ivars
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: Felipe Lorenz Para: "Struts Users Mailing List" , Fecha: 21/06/2013 14:30 Asunto: Re: s:action tag show

Re: s:action tag showing result

2013-06-21 Thread Felipe Lorenz
ipe Lorenz : >> 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 i

Re: s:action tag showing result

2013-06-20 Thread Daniel Clemente Ivars
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.

Re: s:action tag showing result

2013-06-20 Thread Lukasz Lenart
Have you tried to use the previous versions? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/20 Felipe Lorenz : > 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

s:action tag showing result

2013-06-20 Thread Felipe Lorenz
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 the

Re: Reuse of Actions trough s:action. Objectives and inconveniences.

2012-04-23 Thread Josep García
I think you can specify the inteceptor list at action level in struts.xml. Cheers, Josep El 23 de abril de 2012 10:05, JOSE L MARTINEZ-AVIAL escribió: > Hi, > We are developing an web application that uses Struts2 + Tiles + JSP, > plus Dojo for the UI. The application uses the JSON plugin, sinc

Reuse of Actions trough s:action. Objectives and inconveniences.

2012-04-23 Thread JOSE L MARTINEZ-AVIAL
Hi, We are developing an web application that uses Struts2 + Tiles + JSP, plus Dojo for the UI. The application uses the JSON plugin, since we do a lot of interactions through AJAX calls using JSON. We are also building a thick client that will only uses JSON to communicate with the server. It wi

Re: How to make s:action run when validation fails?

2011-04-27 Thread Chris Pratt
Wed, 2011-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-vali

Re: How to make s:action run when validation fails?

2011-04-27 Thread Miguel
ache.org/WW/how-do-we-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 ac

Re: How to make s:action run when validation fails?

2011-04-27 Thread Dave Newton
On Wed, Apr 27, 2011 at 7:13 AM, Miguel wrote: > 1) Why doesn't the method mapped to 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 really don't li

How to make s:action run when validation fails?

2011-04-27 Thread Miguel
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 s

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-29 Thread Alex Rodriguez Lopez
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 tag doesn't render action errors if any are present Which

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Li Ying
> 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 or . You can create a common jsp, and include it in different pages. Ac

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Maurizio Cucchiara
-- > 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 do you me

RE: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Alfredo Manuel Osorio Martinez
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 tag doesn't render action errors if any are present > Whic

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Maurizio Cucchiara
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 comm

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Maurizio Cucchiara
> 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 : -- Mauriz

RE: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Alfredo Manuel Osorio Martinez
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 a

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Maurizio Cucchiara
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 co

RE: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Alfredo Manuel Osorio Martinez
Thursday, October 28, 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 c

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Dave Newton
> > > Alfredo Osorio > > -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 > p

RE: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Alfredo Manuel Osorio Martinez
: Struts 2 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 rende

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Dave Newton
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 possi

Struts 2 s:action tag doesn't render action errors if any are present

2010-10-28 Thread Alfredo Manuel Osorio Martinez
For example I have the following: struts.xml: /jsp/personForm.jsp /jsp/successSave.jsp /jsp/personForm.jsp /jsp/countries.jsp personForm.jsp: <%@ taglib prefix="s" uri="/struts-tags" %> CountriesAction.java: public cla

s:action

2010-09-17 Thread CRANFORD, CHRIS
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 unsubscri

Re: JSON Plugin and S:Action

2009-07-15 Thread Chris Pratt
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 wrote: > yeah, something did change and I think ti was some signature from > Map to Map or the other way around. > > On Wed, Jul 15, 2009 at 9:08 AM, Wes Wannem

Re: JSON Plugin and S:Action

2009-07-15 Thread Musachy Barroso
yeah, something did change and I think ti was some signature from Map to Map or the other way around. On Wed, Jul 15, 2009 at 9:08 AM, Wes Wannemacher wrote: > 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...

RE: JSON Plugin and S:Action

2009-07-15 Thread Martin Gainty
pas n'importe quel effet 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:Actio

Re: JSON Plugin and S:Action

2009-07-15 Thread Wes Wannemacher
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

Re: JSON Plugin and S:Action

2009-07-15 Thread Chris Pratt
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 com.opensymphony.xwork2.DefaultActionInvoc

Re: JSON Plugin and S:Action

2009-07-15 Thread Wes Wannemacher
On Wed, Jul 15, 2009 at 11:56 AM, Chris Pratt 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 wrote: > >> I think the last release worked with

Re: JSON Plugin and S:Action

2009-07-15 Thread Chris Pratt
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 wrote: > I think the last release worked with 2.1 right? > > musachy > > On Wed, Jul 15, 2009 at 5:59 AM, Wes Wannemacher wrote: > > On Wed, Jul 15, 2009 at 3:35

Re: JSON Plugin and S:Action

2009-07-15 Thread Musachy Barroso
I think the last release worked with 2.1 right? musachy On Wed, Jul 15, 2009 at 5:59 AM, Wes Wannemacher wrote: > On Wed, Jul 15, 2009 at 3:35 AM, Chris Pratt wrote: >> Ok, now I'm totally confused.  The documentation at >> http://cwiki.apache.org/S2PLUGINS/json-plugin.html says that the plug-in

Re: JSON Plugin and S:Action

2009-07-15 Thread Wes Wannemacher
On Wed, Jul 15, 2009 at 3:35 AM, Chris Pratt 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.  Is the documentation

Re: JSON Plugin and S:Action

2009-07-15 Thread Chris Pratt
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. Is the documentation wrong, should that say 2.1.6 instead of 2.0.6? (*Chris*)

Re: JSON Plugin and S:Action

2009-07-14 Thread Chris Pratt
Ok, calling it from AJAX, instead of , 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 is: java.lang.NoSu

Re: JSON Plugin and S:Action

2009-07-14 Thread Chris Pratt
Don't know, I was trying to initialize the variable using the same action that would be used to update it. And, because of this problem, I haven't been able to initialize it. Maybe I'll give it a try later. (*Chris*) On Tue, Jul 14, 2009 at 7:49 AM, Musachy Barroso wrote: > Never thought of

Re: JSON Plugin and S:Action

2009-07-14 Thread Musachy Barroso
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 Pratt wrote: > I'm having a problem using with an action > whose result type is json.  It doesn't insert the results.  My Action is >

JSON Plugin and S:Action

2009-07-13 Thread Chris Pratt
I'm having a problem using with an action whose result type is json. It doesn't insert the results. My Action is something like: public class InitCalendarAction { private List> json; /** * Get the JSON Object to be Serialized * * @return JSON Object */ public Object getJson (

Re: Getting property with s:action tag

2009-03-13 Thread doahh
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: > > > > > > > musachy > > On Fri, Mar 13, 2009 at 11:49 AM, doahh wrote: >

Re: Getting property with s:action tag

2009-03-13 Thread doahh
Looking again at the post from: http://www.nabble.com/-S2--s:action-in-value-stack--td21551483.html I see that the answer is <s:action namespace="/mynamespace" name="actionTwo" id="myActionTwo" /> <s:property value="#myActionTwo.myActionTwoProper

Re: Getting property with s:action tag

2009-03-13 Thread Musachy Barroso
"By name" means by the id in the "action" tag, like: musachy On Fri, Mar 13, 2009 at 11:49 AM, doahh wrote: > > 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

Getting property with s:action tag

2009-03-13 Thread doahh
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: <s:action namesp

Re: [S2] s:action in value stack?

2009-02-06 Thread Wolfgang Knauf
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

Re: [S2] s:action in value stack?

2009-02-05 Thread Musachy Barroso
g > > Wolfgang Knauf wrote: >> >> Musachy Barroso wrote: >>> >>> what does prints in the action result? >>> >> >> I updated my sample >> (http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war) >> so that

Re: [S2] s:action in value stack?

2009-02-05 Thread Wolfgang Knauf
ion result? I updated my sample (http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war) so that the JSP outputs this: Inside s:action: Property "id": Inside s:action: Property #someActionVariable.id: value="#someActionVariable.id"/> Inside s:ac

Re: [S2] s:action in value stack?

2009-02-01 Thread Wolfgang Knauf
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

Re: [S2] s:action in value stack?

2009-01-31 Thread Wolfgang Knauf
Darn, "Ctrl+Enter" is no good So, one more try: Musachy Barroso wrote: what does 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: Inside s:action: Property &quo

Re: [S2] s:action in value stack?

2009-01-29 Thread Musachy Barroso
;>> 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

Re: [S2] s:action in value stack?

2009-01-29 Thread Musachy Barroso
; 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. > >

Re: [S2] s:action in value stack?

2009-01-29 Thread Wolfgang Knauf
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

Re: [S2] s:action in value stack?

2009-01-28 Thread Musachy Barroso
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 wrote: > Hi, > > are you sure about the tag-action beeing on top o

Re: [S2] s:action in value stack?

2009-01-28 Thread Alexander Baetz
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.

Re: [S2] s:action in value stack?

2009-01-27 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: I think top doesn't need "#"(yeah I know I said "#top" ;) ). Either "top.id" or just "id" should get you the id. I uploaded a new sample to, with your change ("top" instead of "#top"). http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Acti

Re: [S2] s:action in value stack?

2009-01-25 Thread Musachy Barroso
e, you can find it here (jsp page and simple action 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 rel

Re: [S2] s:action in value stack?

2009-01-25 Thread Wolfgang Knauf
here (jsp page and simple action 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: Inside s:action: Property

Re: [S2] s:action in value stack?

2009-01-20 Thread Musachy Barroso
Inside the action tag, the action will be on top of the stack, so you can reference it using #top. The action is added to the context under the "id" (2.0), or "var" (2.1) name, on the end of the tag, so you cannot reference it by name inside the action tag. Wow, that was some very confusing explana

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
Hi, Maybe the var is used if you did something like: or Unfortunately not, I gave this a try already (using "id" attribute, as Struts 2.0.14 does not know "var"). I might give it a try with 2.1.6. Wolfgang

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
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

Re: [S2] s:action in value stack?

2009-01-20 Thread stanlick
I would be careful about placing action execution logic in your view. This is really not the place to be making navigation decisions. On Mon, Jan 19, 2009 at 9:05 PM, dusty wrote: > > I have not researched this butthe way I understand it the action is > executed and its result evaluated a

Re: [S2] s:action in value stack?

2009-01-19 Thread dusty
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 you are at the view stage right? Your or

[S2] s:action in value stack?

2009-01-19 Thread Wolfgang Knauf
Hi all, there is one thing about calling an action through the 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. would access "getField()"

RE: Cannot use multiple s:action tags?

2008-06-04 Thread Martin Gainty
other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Cannot use multiple s:action tags? > Date: Wed, 4 Jun 2008 09:31:37 -0400 > > When I attempt to use mo

Cannot use multiple s:action tags?

2008-06-04 Thread Michael Gagnon
When I attempt to use more than 1 s:action tag on a page, I just get back a blank page - no error, no console output, just nothing. My page just looks like: If I just use one action

Re: jsp page with s:action to call an action with a redirect-action

2008-05-01 Thread Ralf Fischer
Hi! On Wed, Apr 30, 2008 at 2:21 AM, crappycrumpet <[EMAIL PROTECTED]> wrote: > Ralf Fischer-2 wrote: > > > > Please tell us exactly what you want to do, as there might be a > > simpler solution to your problem. > > > > Okay I don't have hibernate and this is what I'm sort of doing. Let's sa

Re: jsp page with s:action to call an action with a redirect-action

2008-04-29 Thread crappycrumpet
Hi Ralf, Ralf Fischer-2 wrote: > > Please tell us exactly what you want to do, as there might be a > simpler solution to your problem. > Okay I don't have hibernate and this is what I'm sort of doing. Let's say that I have a table of staffs, offices and things_assignment (which links staffs a

  1   2   >