Re: Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Am 27.06.2013 08:46, schrieb Lukasz Lenart: Ok, looks good. So why I said it forwards to https://localhost/app/index.html ? I meant when I call https://localhost/app/ the url is rewritten by the app to https://localhost/app/index.html smime.p7s Description: S/MIME Kryptografische Unter

Re: Struts dispatcher apparently not started

2013-06-26 Thread Lukasz Lenart
2013/6/27 Fabian Richter : > Sorry, after I sent it, I was wondering if that was what you meant :) > > > /WEB-INF/pages/index.jsp > name="success-tcop.tcop.role.id">/WEB-INF/pages/index.jsp > Ok, looks good. So why I said it forwards to https://localhost/app/index.html ? Regards -- Ł

Re: Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Am 27.06.2013 08:42, schrieb Lukasz Lenart: This how you build the action ;-) Please show me your struts.xml ;-) Sorry, after I sent it, I was wondering if that was what you meant :) /WEB-INF/pages/index.jsp name="success-tcop.tcop.role.id">/WEB-INF/pages/index.jsp smime.p7s

Re: Struts dispatcher apparently not started

2013-06-26 Thread Lukasz Lenart
2013/6/27 Fabian Richter : > Am 27.06.2013 08:31, schrieb Lukasz Lenart: > >> How did you define index action? >> > > singleton="false"> > > > role.id > > > This how you build the action ;-) Please show me your struts.xml ;-) Regards -- Łukasz

Re: Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Am 27.06.2013 08:31, schrieb Lukasz Lenart: How did you define index action? singleton="false"> role.id In action-servlet.xml which is included from web.xml: contextConfigLocation classpath:wsClientApplicationContex

Re: Struts dispatcher apparently not started

2013-06-26 Thread Lukasz Lenart
2013/6/27 Fabian Richter : >> The questions is what its doing? If something that doesn't depend on >> Struts, before. > > It handles the certificate based authentication and configures the user > session before displaying any web content. > > So before it is? In my opinion, yes. Regards -- Łuka

Re: Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Am 27.06.2013 08:23, schrieb Lukasz Lenart: The questions is what its doing? If something that doesn't depend on Struts, before. It handles the certificate based authentication and configures the user session before displaying any web content. So before it is? smime.p7s Description: S/

Re: Struts dispatcher apparently not started

2013-06-26 Thread Lukasz Lenart
2013/6/27 Fabian Richter : > Uhm, its a 500 line file thats including a few others. I might have to > anonymize and put it on pastebin or something. > > What exactly are you looking for? Maybe I can extract parts into an email. How did you define index action? Regards -- Łukasz + 48 606 323 122

Re: Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Am 27.06.2013 08:21, schrieb Lukasz Lenart: Do you have IndexAction or so defined? Yes, and many other actions. Wann see the code? Pretty much standard :/ Could you share your struts.xml? Uhm, its a 500 line file thats including a few others. I might have to anonymize and put it on past

Re: Struts dispatcher apparently not started

2013-06-26 Thread Lukasz Lenart
2013/6/27 Fabian Richter : > I am using > > http://struts.apache.org/release/2.3.x/struts2-core/apidocs/org/apache/struts2/dispatcher/ng/filter/StrutsPrepareFilter.html > > then sitemesh, my own filter then > > http://struts.apache.org/release/2.3.x/struts2-core/apidocs/org/apache/struts2/dispatche

Re: Struts dispatcher apparently not started

2013-06-26 Thread Lukasz Lenart
2013/6/27 Fabian Richter : > I am getting that on every call: for example the root path: > > https://localhost/app/ Do you have IndexAction or so defined? > which forwards to > > https://localhost/app/index.html Could you share your struts.xml? Regards -- Łukasz + 48 606 323 122 http://www.le

Re: Struts 2.3.14.3 seems to drop ".action" from the generated form action

2013-06-26 Thread Lukasz Lenart
Hi Bruno, Could you share your struts.xml? One problem was identified in RestActionProxyFactory, maybe your is related as well. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/26 Lukasz Lenart : > Hi Bruno, > > You already mentioned that, right now I don't have any solution

Re: Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Hi Lukas, I am getting that on every call: for example the root path: https://localhost/app/ which forwards to https://localhost/app/index.html Best Fabian Am 27.06.2013 07:38, schrieb Lukasz Lenart: What URL do you enter to get the exception? Regards smime.p7s Description: S/MIME Kr

Re: Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
I am using http://struts.apache.org/release/2.3.x/struts2-core/apidocs/org/apache/struts2/dispatcher/ng/filter/StrutsPrepareFilter.html then sitemesh, my own filter then http://struts.apache.org/release/2.3.x/struts2-core/apidocs/org/apache/struts2/dispatcher/ng/filter/StrutsExecuteFilter.html

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: OGNL s:interator index problem

2013-06-26 Thread jlmagc
Did you get an exception in the logs? Sent via BlackBerry from T-Mobile -Original Message- From: john lee Date: Wed, 26 Jun 2013 22:13:52 To: struts support Reply-To: "Struts Users Mailing List" Subject: OGNL s:interator index problem an class     class SearchInfo {    String i

Re: intercepter parameters in actions

2013-06-26 Thread Lukasz Lenart
Interceptors are singletons per stack - if you referencing them with interceptor-ref from within actions you are reusing the same instance. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/26 Cameron Morris : > Hello Strut-ers, > > When I override an interceptor's parameter i

Re: Struts dispatcher apparently not started

2013-06-26 Thread Lukasz Lenart
What URL do you enter to get the exception? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/26 Fabian Richter : > Hello all, > > I am faily new with struts, and to get a grip on the mechanics I volunteered > to migrate one of our applications from Webwork to struts2 latest.

OGNL s:interator index problem

2013-06-26 Thread john lee
an class     class SearchInfo {    String input_part;    String search_part;    int current_page=0;    int total_find=0;    int total_pages=0;    int size=20;    /* set, get  skip */   } after search,    session.put("searchinfo", searchinfo); at j

Re: Struts dispatcher apparently not started

2013-06-26 Thread vEnkaTa mohAna rAo SriperumbUdUru
http://struts.apache.org/release/2.3.x/struts2-core/apidocs/org/apache/struts2/dispatcher/ng/filter/StrutsPrepareAndExecuteFilter.html try to point to this filter. Usually get the above message when you are using struts2 tags in jsp trying to display and not passing through the StrutsPrepareAndExec

Re: intercepter parameters in actions

2013-06-26 Thread Cameron Morris
I verified that the same behavior is true on interceptor stacks. This seems like a broken feature, a feature that we should discourage anyone from using. If I override an interceptor parameter on one action, when that action runs, the interceptor will likely have different parameters. On Wed, J

RE: FKerberos + struts2 + SpringMVC

2013-06-26 Thread Martin Gainty
Comprendre comment implémenter Kerberos : http://web.mit.edu/kerberos/ Travaux de SPRING avec SSO avec ACEGI security module via configuration personnalisée en sécurité-context.xml http://mallsop.com/downloads/Using_CAS_with_Acegi.pdf SSO sur tomcat est implémentée avec soupape de SingleSignOn

Re: Choosing locale from browser settings

2013-06-26 Thread Antonio Sánchez
It seems I18nInterceptor does it by default. I've not found this feature in the documentation. I think it would be great to document it. Doing some research I've found that the way to do it, in case I18nInterceptor is not enough, is inspecting the value of the "Accept-Language" request heade

Re: intercepter parameters in actions

2013-06-26 Thread Cameron Morris
Thanks Umesh, Would the expected behavior change if referencing a stack? example: A B On Wed, Jun 26, 2013 at 8:55 AM, Umesh Awasthi wrote: > You first assumptions is wrong "interceptor was > created for each action" > > Interceptors are not created per action/request but only

Re: intercepter parameters in actions

2013-06-26 Thread Umesh Awasthi
You first assumptions is wrong "interceptor was created for each action" Interceptors are not created per action/request but only once and any such action level data changes are not the best place to do that On Wed, Jun 26, 2013 at 8:22 PM, Cameron Morris wrote: > Hello Strut-ers, > > When I ov

intercepter parameters in actions

2013-06-26 Thread Cameron Morris
Hello Strut-ers, When I override an interceptor's parameter in several actions, only the last action's parameters are applied. (Note I'm not referencing a stack, but just one interceptor.) I was expecting that a separate interceptor was created for each action or that the param would be set befor

FKerberos + struts2 + SpringMVC

2013-06-26 Thread Emi Lu
Hello, Could someone provide an example or online document about how "struts2 + kerberos + tomcat7 + SpringFramework" SSO login model works? E.g., == (1) User login to windows/unix within local network (2) Open: https://www.local_network_webapp1.com https://www.local_network_web

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: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Martin Gainty
take a look at master parent pom for building struts in struts/src 4.0.0 org.apache.struts struts2-parent 2.3.4 pom xwork-core core apps plugins bundles archetypes ... From: lukaszlen...@apache.org > Date: Wed, 26 Jun 2

Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Hello all, I am faily new with struts, and to get a grip on the mechanics I volunteered to migrate one of our applications from Webwork to struts2 latest. So far I made progress, the application is not only running but also rendered some UI in the browser. But I have exceptions like The S

Re: Secure data coming from a WYSIWYG editor

2013-06-26 Thread Maurizio Cucchiara
Out of there, there are a lot of WYSWYG editors (like CKEditor) which allow to define the list of the supported tags. For what concerns the server side aspect, I'd suggest you JSOUP. It allows to clean the HTML submitted by the user [1]. Also, have a look at hdiv [2], IIRC there is a plugin for s

Re: redirectAction result - parameter in URL problem

2013-06-26 Thread Lukasz Lenart
Have you tried to use RestfulActionMapper or Restful2ActionMapper? Anyway, this is the desired behaviour, request parameters are transferred to Result to allow expose them (if you would like to use them on jsp for example). You can always define your own CustomerServletActionRedirectResult which o

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread jlmagc
We use apache ivy for the dependency management, which works with ant. It works absolutely fine, and it has solved our problems with dependency management. You should take a look at it. JL Sent via BlackBerry from T-Mobile -Original Message- From: "Sreekanth S. Nair" Date: Wed, 26 Jun

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Sreekanth S. Nair
Unfortunately we are not using maven but ant, for us it would be good to have the zip distribution with required/optional kind of modularization :). I dont know the feasibility of doing something like that so i'm leaving to you :). -- Thanks & Regards Srikanth Software Developer

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Lukasz Lenart
Yes, you are right that's why we are using Maven to manage dependencies and not to do it by hand. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/26 Sreekanth S. Nair : > Thanks for clarifying all these but don't you think its better to make the > same thing in distribution

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Sreekanth S. Nair
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 development and plugin integration and do many more strust2 things faster and easier. -- Thanks & Regards Srikanth Software Developer ---

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Umesh Awasthi
There is a colum with header "Optional" which indicate what all is optional and what 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,

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Lukasz Lenart
2013/6/26 Sreekanth S. Nair : > 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. Please read about Maven dependencies first. Both are marked as an optional dep

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Sreekanth S. Nair
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. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.ego

Re: Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Umesh Awasthi
Though in most of the cases people use some kind of dependency management system like Maven, Ivy etc which take care of all these aspects. Though 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/de

RE: redirectAction result - parameter in URL problem

2013-06-26 Thread Jan Peterka
I know REST plugin, but i saw many examples with just action slash names. I just want to URL /drat/id/1 to set setId inside Action, which is working great, but after redirect (with redirectAction) i will get this id inside redirected url, ?id=1 . This is undesirable, because of ugly url, and erro

Difficulty in understanding Struts 2 distribution

2013-06-26 Thread Sreekanth S. Nair
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 other

Re: redirectAction result - parameter in URL problem

2013-06-26 Thread Lukasz Lenart
Hi Jan, Yes, you are right but the problem is you are mixing two things - slashes in action names and RESTful urls. If you want to have RESTfull urls take a look on RestfulActionMapper [1] or REST plugin [2] [1] http://struts.apache.org/development/2.x/docs/restfulactionmapper.html [2] http://str

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: redirectAction result - parameter in URL problem

2013-06-26 Thread Jan Peterka
Hi Łukasz, version of Struts is 2.3.15 , so includeParams should be none. I tried it anyway, but it does same thing, it will put variables into URL also. > From: lukaszlen...@apache.org > Date: Wed, 26 Jun 2013 09:04:27 +0200 > Subject: Re: redirectAction result - parameter in URL problem > To: u

Re: Struts2 with Jersey

2013-06-26 Thread Frans Thamura
Our yama work. Yama.java.net use jaxrs and struts2. We share same spring service. and the jersey and s2 work separtely F On Jun 26, 2013 1:21 PM, "Lukasz Lenart" wrote: > Struts2 doesn't support JAX-RS spec, so you cannot mix those two. If > you annotated your action as a JAX-RS bean, Jersey wil

Secure data coming from a WYSIWYG editor

2013-06-26 Thread Simone Camillo Buzzi
Hi, how can I secure data coming from a WYSIWYG editor? I want to allow user to change properties of the text but not to link images or add scripts to his post. I'll use this feature to allow user to add comment or compile complex pages. I'm not worried about data coming from the editor but data th

Re: redirectAction result - parameter in URL problem

2013-06-26 Thread Lukasz Lenart
Struts2 version? There is constant struts.url.includeParams which can be set to all, get or none and by default it's set to none (from some 2.3.x or 2.2.x version). So define constant in struts.xml to disable including params from GET Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.p