> 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
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
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 call
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
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 y
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 actua
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 y
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
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 wrote:
> All objects have getters/setters set, this is the except of the jsp code
> with the problem (trying to write
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):
${certificate.status}
The result is that in every of these table cells o
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 wi
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 ret
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 Fab
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 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
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
15 matches
Mail list logo