In a JSP, I need to be capable of doing something such as the following:
s:action name=%{action.actionName} namespace=%{action.nameSpace}
executeResult=true flush=false
s:iterator value=action.parameters
s:param name=%{name} value=%{value}/
/s:iterator
/s:action
Unfortunately it does not
tag should I be using?
Regards
--
View this message in context:
http://old.nabble.com/Property-Tag-and-Parameters-tp27400677p27400677.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e
I have used a similar construct quite a bit, but normally, I refer to
parameters like this -
s:if test=%{#parameters['view'] != null}
view
/s:if
s:else
not view
/s:else
In cases like this, I just want to affect the way a view is rendered.
So, leaving the getter/setter off of the action is the
Hi all,
I'm testing for the existence of a request parameter in a jsp page in Struts 2
%@ taglib prefix=s uri=/struts-tags%
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
http://www.w3.org/TR/html4/strict.dtd;
s:property value=#parameters.messageKey/br/
s:if test=%{#parameters.messageKey ==
If it is a request parameter, then make a setter for it to get set and
getter to retrieve it and use % instead of #
If you want to have the parameter in the page context use the s:set with id
On Tue, Dec 22, 2009 at 3:36 PM, foo bar linut...@gmail.com wrote:
Hi all,
I'm testing for the
Hi,
I would prefer not to use getter/setter.
What I really want to know is, why is this not working as expected ?
Anyway, I solved it
s:if test=#parameters.messageKey[0] == 'yes'
#parameters.messageKey is of type String[], which make sense now
On Tue, Dec 22, 2009 at 9:46 PM, Saeed Iqbal
Yes, parameters are String arrays. As a side note, see the following
post because sometimes OGNL evaluates things differently:
http://www.mail-archive.com/user@struts.apache.org/msg80015.html
2009/12/22 foo bar linut...@gmail.com:
Hi,
I would prefer not to use getter/setter.
What I really
I think that the correct test is:
s:property value=#messageKey/br/
s:if test=%{#messageKey == 'yes'}
yes
2009/12/22 foo bar linut...@gmail.com
Hi all,
I'm testing for the existence of a request parameter in a jsp page in
Struts 2
%@ taglib prefix=s uri=/struts-tags%
!DOCTYPE HTML PUBLIC
Quoting http://struts.apache.org/2.x/docs/action.html
Parameters can be passed to the action using nested param tags.
(links to http://struts.apache.org/2.x/docs/param.html)
I'm not sure about the HTTP method...
What exactly are you trying to accomplish?
You can used nested param tag for that
s:action name=ActionName ..
s:param name=var1 value=%{'val1'}/
/s:action
musachy
On 7/4/07, Asaf Paris Mandoki [EMAIL PROTECTED] wrote:
When directly calling an action we can send a petition like
.../ActionName.action?var1=val1var2=val2
using the
When directly calling an action we can send a petition like
.../ActionName.action?var1=val1var2=val2
using the GET method.
I understand that that calls an action with a couple of parameters.
Can I do something similar when calling an action from the s:action
tag ? that is, Can I call an
11 matches
Mail list logo