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
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
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
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 lukaszlen...@apache.org:
Hi Bruno,
You already mentioned that, right now I
2013/6/27 Fabian Richter frich...@mtg.de:
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
2013/6/27 Fabian Richter frich...@mtg.de:
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
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
2013/6/27 Fabian Richter frich...@mtg.de:
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
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:
2013/6/27 Fabian Richter frich...@mtg.de:
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
Am 27.06.2013 08:31, schrieb Lukasz Lenart:
How did you define index action?
bean id=indexAction class=my.webapp.action.IndexAction
singleton=false
property name=roleIdentifiers
list
valuerole.id/value
/list
/property
/bean
In
2013/6/27 Fabian Richter frich...@mtg.de:
Am 27.06.2013 08:31, schrieb Lukasz Lenart:
How did you define index action?
bean id=indexAction class=my.webapp.action.IndexAction
singleton=false
property name=roleIdentifiers
list
valuerole.id/value
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 :)
action name=index class=indexAction method=index
result name=success/WEB-INF/pages/index.jsp/result
2013/6/27 Fabian Richter frich...@mtg.de:
Sorry, after I sent it, I was wondering if that was what you meant :)
action name=index class=indexAction method=index
result name=success/WEB-INF/pages/index.jsp/result
result
name=success-tcop.tcop.role.id/WEB-INF/pages/index.jsp/result
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
2013/6/27 Fabian Richter frich...@mtg.de:
I meant when I call https://localhost/app/ the url is rewritten by the app
to https://localhost/app/index.html
Looks like one of your filters messing things up. Try to comment out this
filter-mapping
filter-nameappFilter/filter-name
Am 27.06.2013 08:59, schrieb Lukasz Lenart:
2013/6/27 Fabian Richter frich...@mtg.de:
I meant when I call https://localhost/app/ the url is rewritten by the app
to https://localhost/app/index.html
Looks like one of your filters messing things up. Try to comment out this
filter-mapping
2013/6/27 Fabian Richter frich...@mtg.de:
Am 27.06.2013 08:59, schrieb Lukasz Lenart:
2013/6/27 Fabian Richter frich...@mtg.de:
I meant when I call https://localhost/app/ the url is rewritten by the
app
to https://localhost/app/index.html
Looks like one of your filters messing things up.
Am 27.06.2013 09:05, schrieb Lukasz Lenart:
Hmm... so why do you map it to *.html? And not to /* or *.action?
It was like that in the original web.xml when the application ran with
Webwork. I also tried /* without changes.
But I had some progress in my Dispatcher not started problem:
Hey,
so I tried to use the s:if test= tag in one of my jsps and couldnt
get neither working:
s:if test=!empty certificate.statusisTrue/s:if
s:if test=certificate.status == 1isTrue/s:if
s:if test=%{certificate.status == 1}isTrue/s:if
s:if test=%{#certificate.status == 1}isTrue/s:if
but
Hi John,
If you copy pasted your code from your IDE, there is a typo s:property
value=#stauts.index/ it should be status,
so that won't work,
On 27 June 2013 06:54, jlm...@gmail.com wrote:
Did you get an exception in the logs?
Sent via BlackBerry from T-Mobile
-Original Message-
Hi Fabian,
Can you give as the code of the Action that is in the Value Stack?
Antonios
On 27 June 2013 09:16, Fabian Richter frich...@mtg.de wrote:
Hey,
so I tried to use the s:if test= tag in one of my jsps and couldnt get
neither working:
s:if test=!empty
Hi Antonios,
you mean the java source Code or something I can extract from the jsp?
The source code is confidential.
I checked the get/set methods and getId on certificate returns a Long if
thats what you wanted to know...
Best
Fabian
Am 27.06.2013 10:24, schrieb Antonios Gkogkakis:
Hi
Stupid me, getStatus was what I was reading and that one returns an int.
Am 27.06.2013 10:33, schrieb Fabian Richter:
Hi Antonios,
you mean the java source Code or something I can extract from the jsp?
The source code is confidential.
I checked the get/set methods and getId on certificate
Long would be fine as well,
I tested option 2 and 3 and it works, the important thing is to have
gettersfor certificate and status. and an object that has a
certificate field in
your value stack,
Your last option is probably not valid unless you have used s:set to push a
bean in the value stack
All objects have getters/setters set, this is the except of the jsp code
with the problem (trying to write a text that depends on the value of
certificate.status into a table cell):
td class=cell valign=top
s:if test=%{certificate.status==1}
fmt:message key=certificate.status.valid /
/s:if
I would temporarily remove ${certificate.status} from the else and I would
check if the getStatus is called for the conditionals
Antonios
On 27 June 2013 09:56, Fabian Richter frich...@mtg.de wrote:
All objects have getters/setters set, this is the except of the jsp code
with the problem
Am 27.06.2013 11:20, schrieb Antonios Gkogkakis:
I would temporarily remove ${certificate.status} from the else and I would
check if the getStatus is called for the conditionals
Yes, it is called.
I was hoping it wasn't :( What now?
smime.p7s
Description: S/MIME Kryptografische
if it's called then there is something wrong with the comparison, are you
sure that you don't have a String getStatus somewhere?
What I would do is instead of checking the == 1 in the jsp create a method
on the certificate boolean isValid() { return status==1} and so on.
I know it doesn't answer
I have an update: I enabled the ${certificate.status} in the else branch
again and checked the tomcat logs:
getStatus called: 0
getStatus called: 0
getStatus called: 0
getStatus called: 0
getStatus called: 1
That would mean that for each if/elseif he doesnt actually call
getStatus on the
I assume you are on Struts2.
I'm not familiar with the ${} expression, but you are right, there is an
OGNL null handler that will instantiate objects for you if they are null,
so the behaviour we see makes sense, which means that you don't have a
certificate in the value stack.
How do you access
Am 27.06.2013 12:43, schrieb Antonios Gkogkakis:
I assume you are on Struts2.
Yes, I am, more precisely I am migrating an application from Webwork to
Struts2.
I'm not familiar with the ${} expression, but you are right, there is an
OGNL null handler that will instantiate objects for you if
But how would the framework know with what to populate it?
You either do it manually in the body of the action that you execute to
reach the view ,e.g.,
certificate = //logic to get the certificate
or you can implement the ModelDriven interface which has a method (prepare
I think) that gets
Am 27.06.2013 12:59, schrieb Antonios Gkogkakis:
But how would the framework know with what to populate it?
You either do it manually in the body of the action that you execute to
reach the view ,e.g.,
certificate = //logic to get the certificate
or you can implement the ModelDriven interface
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
Date: Thu, 27 Jun 2013 13:21:35 +0200
From: frich...@mtg.de
To: user@struts.apache.org
Subject: Re: if/elseif tag syntax
Am 27.06.2013 12:59, schrieb Antonios Gkogkakis:
But how would the framework know with what to populate it?
You either do it manually in the body of the action
Felipe and Lukasz
Spring 3.1 supports injectable namespaces to constructor of Spring Object
would something like this work for proxyFactory?
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#beans-c-namespace
Obrigado,
Martin
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 felipe.lor...@idealogic.com.br:
Sure!
I have created an user at jira, but I
Hello Martin,
I'm not sure. Actually my experience with Spring is almost, but very close to
0. I know what spring does and I know there is a lot of modules in Spring, but
I never try it in my projects.
Maybe Lukasz can help you with it.
Att,
Felipe Lorenz
Em 27/06/2013, às 12:11, Martin
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:
Hello,
Is anybody knows why I am getting the following warning message while waiting
page is displaying. (execAndWait)?
WARN [org.apache.struts2.util.TokenHelper] Could not find token mapped to
token name struts.token
Thanks,
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/
Hello Omar,
Is needed more information, but I can guess some things:
1 - struts.dev is setted to false?
2 - are you using token interceptor?
3 - if yes, there is a token value in the submitted form?
4 - what version of struts are the project using? there is a resolved issue
about it:
1. Yes struts.dev is setted to false.
2. This is how I am using the interceptor:
interceptor-ref name=completeStack/
interceptor-ref name=execAndWait
param name=delay1000/param
param name=delaySleepInterval1000/param
/interceptor-ref
My questions are: Is there a better place to discuss this? Could this ever
be enhanced?
The issue:
I'd love to see more consistency in the way we must access indexed values
when iterating. Consider the example below and note that there are 3
distinct ways in which I must access the index value. I
Try using the second form in all three spots. I believe it should work.
(*Chris*)
On Thu, Jun 27, 2013 at 1:38 PM, Eric Lentz ericle...@outfastsource.comwrote:
My questions are: Is there a better place to discuss this? Could this ever
be enhanced?
The issue:
I'd love to see more
On Thu, Jun 27, 2013 at 4:38 PM, Eric Lentz ericle...@outfastsource.com
wrote:
s:textfield name=foos[%{#stat.index}].aString
value=%{foos[#stat.index].aString} /
Here you're doing to explicitly different things:
1. Provide a name (a string) with an embedded expression evaluation.
2.
As far as I can see, you are using the completeStack which use token
interceptor.
If you intend to use token, you can turn off this message by configuring the
log properly.
If not, you should redifine the completeStack without the token interceptor.
Felipe Lorenz
Em 27/06/2013, às 17:35, Omar
I agree, you should be using indexed tags, and they are two different things as
Dave has stated.
Dave Newton davelnew...@gmail.com 6/27/2013 5:19 PM
On Thu, Jun 27, 2013 at 4:38 PM, Eric Lentz ericle...@outfastsource.com
wrote:
s:textfield name=foos[%{#stat.index}].aString
How can i redefine the completeStack without the token interceptor ? My
intention was NOT to use token. I guess my option here is to turn off this
message.
Sent from my iPad
On Jun 27, 2013, at 5:19 PM, Felipe Lorenz felipe.lor...@idealogic.com.br
wrote:
As far as I can see, you are using
Good discussion. Thanks guys. Some replies:
Chris: No joy on using the second form on all.
Dave:
How would you propose to make them the same but end up with different
results?
I understand what you're saying and get it. You're clear depiction of the
separation of tasks is helpful. Maybe I'm
Hi, I have some doubt about how to use validation annotation.
I'm changing my code to make it more readable and maintainable.
I started from an action where I had all setters with annotation and i put
data in a private local variable
ex.
private String email;
Thank for your help, it's was I was searching for
Kind regards
Simone Buzzi
2013/6/26 Maurizio Cucchiara mcucchi...@apache.org
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
53 matches
Mail list logo