Done, see WW-4390
Am 20.08.2014 um 21:09 schrieb Lukasz Lenart:
2014-08-19 17:09 GMT+02:00 Fabian Richter :
Hi,
when using paramsPrepareParamsStack with the convention plugin I'm getting
multiple errors/warnings in devMode=true:
Error setting expression 'token
Hi,
when using paramsPrepareParamsStack with the convention plugin I'm
getting multiple errors/warnings in devMode=true:
Error setting expression 'token' with value
['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
Error setting expression 'token' with value
['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
At
Hey,
we are wondering why struts params interceptor excludes
^application\..*
as a parameter?
To what kind of vulernatbilities would we open our applications if we
allow parameters starting with application to be set by struts?
Thank you and best
Fabian
smime.p7s
Description: S/MIME Cryp
-04-04 8:47 GMT+02:00 Fabian Richter :
Yeah, I was having Converters for both types, AND DifferentComplexType is an
enum.
The problem was, in the converters convertFromString method the
enum.valueOf() should have thrown an IllegalArgumentException when calling
it with an emtpy String "" b
registered?
2014-04-03 11:19 GMT+02:00 Fabian Richter :
Hey,
not sure this is a Bug or a Feature, but I ran into the following troubles,
someone might be able to explain:
class ComplexType {
private DifferentComplexType test;
public void setTest(DifferentComplexType tes
Hey,
not sure this is a Bug or a Feature, but I ran into the following
troubles, someone might be able to explain:
class ComplexType {
private DifferentComplexType test;
public void setTest(DifferentComplexType test){
this.test = test;
}
public
Am 30.01.2014 06:57, schrieb Lukasz Lenart:
Do not depend only on container authentication mechanism.
So you would discourage the use of like Spring Security as a sole
authentication mechanism? Why?
Best
Fabian
smime.p7s
Description: S/MIME Cryptographic Signature
Hi,
how can one add a specific css class/style of the label when
instanciating like:
I now had to change theme="simple" and add the css class to the of
the label but with that I can not reference it with the name when a
fieldError occurred.
I have:
and add an error with addFieldError
Hi
I have encountered this issue a couple of times, always found a way to
code around but now I really need to ask:
Can struts create lists/arrays (or whatever collection) when e.g. using
public class MyAction extends ActionSupport {
public List getChoices() {
}
Am 09.07.2013 11:15, schrieb Lukasz Lenart:
getters? And maybe use just one value instead of two searchResult?
Getters are present for the one from the action, without the #
I need both for an evil hack, I have a page that consists of a form and
a list which are seperate actions and after s
Am 09.07.2013 11:07, schrieb Lukasz Lenart:
Have you tried this:
Yes, I did, didnt work :(
smime.p7s
Description: S/MIME Kryptografische Unterschrift
Hey,
quick question (I know WW is EOL maybe someone will help me nonetheless):
Why does
not work as expected?
Depending on the call, searchResult is either from the action or set by
ww:set but the if only evaluates the one from the action -> searchResult
and if its empty does not proceed t
h you can either use directly (using s:textfield and js)
or via the struts2 jquery plugin.
Antonios
On 2 July 2013 09:20, Fabian Richter wrote:
Hi,
I am still trying to migrate our application from Webwork to Strut2.
The site uses sitemesh with freemarker templates and used a
from We
Hi,
I am still trying to migrate our application from Webwork to Strut2.
The site uses sitemesh with freemarker templates and used a
from Webwork.
This tag was replaced in struts2 with up in my application.
I added in the section of my jsp. I included the
plugin in my WEB-INF/lib folder
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
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
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 your original question but it solves the problem
and it's more maintenable IMHO.
Antonios
On 27 June 2013 10:34, Fabian Richter wrote:
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 Unterschrif
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 with name certificate (not 100% sure though)
On 27 June 2013 09:42, Fabian Richter wrote:
Stupid me, getStatus was what I was reading and that
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
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 wrote:
Hey,
so I tried to use the tag in one of my jsps and couldnt get
neither working:
isTrue
isTrue
isTrue
isTrue
but
${certificate.status}
outputs a 1. Using
Hey,
so I tried to use the tag in one of my jsps and couldnt
get neither working:
isTrue
isTrue
isTrue
isTrue
but
${certificate.status}
outputs a 1. Using ${certificate.status} within test="" throws a JSP
exception that "attribute test does not accept any expressions"
The only thing th
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:
Am 27.06.2013 08:59, schrieb Lukasz Lenart:
2013/6/27 Fabian Richter :
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
appFilter
*.html
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
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
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
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/
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
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
/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
StrutsPrepareAndExecuteFilter filter.
On Wed, Jun 26, 2013 at 4:07 PM, Fabian Richter wrote
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
32 matches
Mail list logo