struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4882) Struts text tag doesn't print value from Stack
Date Mon, 23 Oct 2017 12:39:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16215061#comment-16215061
] 

Lukasz Lenart commented on WW-4882:
-----------------------------------

No, there is no such thing. Basically you should use {{<s:property/>}} tag to access
action's properties, not {{<s:text/>}} tag.

> Struts text tag doesn't print value from Stack
> ----------------------------------------------
>
>                 Key: WW-4882
>                 URL: https://issues.apache.org/jira/browse/WW-4882
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.5.12, 2.5.13
>            Reporter: Prasann Grampurohit
>             Fix For: 2.5.14
>
>         Attachments: TestStruts.zip
>
>
> Hi,
> We are upgrading Struts from 2.3.x version to 2.5.12 or 2.5.13 and I see that the text
tag doesn't print the value from the stack. I have created a sample web project and ed the
same on this Jira to demonstrate the issue.
> I have 2 statements in _testStruts.jsp_:
> _<s:property value = "myName"/>_ - Doesn't print the value set in action TestStrutsAction.java.
I see in debug mode that the control is coming to the method getMyName() in the action and
the value that I have set is present.
> _<s:property value = "myName"/>_ - Prints the value set in the action.
> Could you please look into this and tell me if any config is missing?
> Thanks,
> Prasann



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message