String functions on static strings inside - struts2
up vote
0
down vote
favorite
I am trying to migrate to Struts 2 and I have the following if scriplet that I have to change to
<logic:iterate id="grpItem" collection="<%= impGroupTypeList %>">
<% if (grpItem.getImpGrpTypCd().trim().equals(impUploadType.trim())){%>
struts2 jsp-tags
add a comment |
up vote
0
down vote
favorite
I am trying to migrate to Struts 2 and I have the following if scriplet that I have to change to
<logic:iterate id="grpItem" collection="<%= impGroupTypeList %>">
<% if (grpItem.getImpGrpTypCd().trim().equals(impUploadType.trim())){%>
struts2 jsp-tags
I'm not sure what the question is--OGNL allows (mostly) arbitrary, reasonable method calls inside it. Although that logic shouldn't be happening in the view layer.
– Dave Newton
Nov 9 at 13:58
Can you please write an equivalent OGNL or JSTL code which I can use inside <s:if test=" here "> for the above if scriplet
– Anmol Bhardwaj
Nov 11 at 12:18
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to migrate to Struts 2 and I have the following if scriplet that I have to change to
<logic:iterate id="grpItem" collection="<%= impGroupTypeList %>">
<% if (grpItem.getImpGrpTypCd().trim().equals(impUploadType.trim())){%>
struts2 jsp-tags
I am trying to migrate to Struts 2 and I have the following if scriplet that I have to change to
<logic:iterate id="grpItem" collection="<%= impGroupTypeList %>">
<% if (grpItem.getImpGrpTypCd().trim().equals(impUploadType.trim())){%>
struts2 jsp-tags
struts2 jsp-tags
edited Nov 9 at 13:46
BalusC
835k29430973182
835k29430973182
asked Nov 9 at 13:08
Anmol Bhardwaj
14411
14411
I'm not sure what the question is--OGNL allows (mostly) arbitrary, reasonable method calls inside it. Although that logic shouldn't be happening in the view layer.
– Dave Newton
Nov 9 at 13:58
Can you please write an equivalent OGNL or JSTL code which I can use inside <s:if test=" here "> for the above if scriplet
– Anmol Bhardwaj
Nov 11 at 12:18
add a comment |
I'm not sure what the question is--OGNL allows (mostly) arbitrary, reasonable method calls inside it. Although that logic shouldn't be happening in the view layer.
– Dave Newton
Nov 9 at 13:58
Can you please write an equivalent OGNL or JSTL code which I can use inside <s:if test=" here "> for the above if scriplet
– Anmol Bhardwaj
Nov 11 at 12:18
I'm not sure what the question is--OGNL allows (mostly) arbitrary, reasonable method calls inside it. Although that logic shouldn't be happening in the view layer.
– Dave Newton
Nov 9 at 13:58
I'm not sure what the question is--OGNL allows (mostly) arbitrary, reasonable method calls inside it. Although that logic shouldn't be happening in the view layer.
– Dave Newton
Nov 9 at 13:58
Can you please write an equivalent OGNL or JSTL code which I can use inside <s:if test=" here "> for the above if scriplet
– Anmol Bhardwaj
Nov 11 at 12:18
Can you please write an equivalent OGNL or JSTL code which I can use inside <s:if test=" here "> for the above if scriplet
– Anmol Bhardwaj
Nov 11 at 12:18
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
<s:iterator var="grpItem" value="%{#session.impGroupTypeList}">
<s:if
test='impGrpTypCd.trim().equals(#session.impUploadType.trim())'>
</s:if>
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
<s:iterator var="grpItem" value="%{#session.impGroupTypeList}">
<s:if
test='impGrpTypCd.trim().equals(#session.impUploadType.trim())'>
</s:if>
add a comment |
up vote
0
down vote
accepted
<s:iterator var="grpItem" value="%{#session.impGroupTypeList}">
<s:if
test='impGrpTypCd.trim().equals(#session.impUploadType.trim())'>
</s:if>
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
<s:iterator var="grpItem" value="%{#session.impGroupTypeList}">
<s:if
test='impGrpTypCd.trim().equals(#session.impUploadType.trim())'>
</s:if>
<s:iterator var="grpItem" value="%{#session.impGroupTypeList}">
<s:if
test='impGrpTypCd.trim().equals(#session.impUploadType.trim())'>
</s:if>
answered Nov 13 at 11:42
Anmol Bhardwaj
14411
14411
add a comment |
add a comment |
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226312%2fstring-functions-on-static-strings-inside-sif-value-struts2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'm not sure what the question is--OGNL allows (mostly) arbitrary, reasonable method calls inside it. Although that logic shouldn't be happening in the view layer.
– Dave Newton
Nov 9 at 13:58
Can you please write an equivalent OGNL or JSTL code which I can use inside <s:if test=" here "> for the above if scriplet
– Anmol Bhardwaj
Nov 11 at 12:18