You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "myasic (JIRA)" <ji...@apache.org> on 2008/12/02 13:56:37 UTC
[jira] Created: (WW-2903) double call to calculate value in label
tag
double call to calculate value in label tag
-------------------------------------------
Key: WW-2903
URL: https://issues.apache.org/struts/browse/WW-2903
Project: Struts 2
Issue Type: Bug
Components: Core Actions
Affects Versions: 2.0.14
Environment: windows XP / Tomcat 6
Reporter: myasic
I use label tag to show the result of a method of the current action like this :
<s:label value="%{getLabelApplication('code1')}" />
My current action contain this method :
public String getLabelApplication(final String p_keyApp) {
return "test";
}
If a debug jsp rendering, i find two call to the getLabelApplication method.
There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "myasic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45108#action_45108 ]
myasic commented on WW-2903:
----------------------------
The code sent in my first comment is representative of my problem, but i will soon
send you a complet test case.
Thanks
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45101#action_45101 ]
Dave Newton commented on WW-2903:
---------------------------------
As per Philip's advice when you're not debugging is it called twice?
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45171#action_45171 ]
James Holmes commented on WW-2903:
----------------------------------
myasis:
Can you please send in the test case you mentioned? Thanks.
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45095#action_45095 ]
Dave Newton commented on WW-2903:
---------------------------------
What do you mean by a "debug jsp"?
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WW-2903) double call to calculate value in label
tag
Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher closed WW-2903.
-------------------------------
Resolution: Incomplete
myasic, it's been a few months and we haven't seen the test case you mentioned. When you are able to create one, feel free to reopen this issue.
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45096#action_45096 ]
Philip Luppens commented on WW-2903:
------------------------------------
I think he means 'if I debug the JSP' ..
Then again, myasic, a better (more correct) approach would be to check the code (or the stack, for all that matters) to see if a double call is indeed happening, rather than using a JSP debugger.
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45103#action_45103 ]
Philip Luppens commented on WW-2903:
------------------------------------
k, but we need more information. Please post your configuration, relevant snippets and code, and please make sure that your not accidentally calling the same method again. As for the logging: make sure you don't have an additivity problem.
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "myasic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45097#action_45097 ]
myasic commented on WW-2903:
----------------------------
In fact "debug jsp rendering" means that i add a breakpoint into my method "getLabelApplication" and
saw that two calls are made during jsp rendering.
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2903) double call to calculate value in label
tag
Posted by "myasic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45102#action_45102 ]
myasic commented on WW-2903:
----------------------------
Yes, i analysed the log and i have two calls again.
> double call to calculate value in label tag
> -------------------------------------------
>
> Key: WW-2903
> URL: https://issues.apache.org/struts/browse/WW-2903
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: windows XP / Tomcat 6
> Reporter: myasic
>
> I use label tag to show the result of a method of the current action like this :
> <s:label value="%{getLabelApplication('code1')}" />
> My current action contain this method :
> public String getLabelApplication(final String p_keyApp) {
> return "test";
> }
> If a debug jsp rendering, i find two call to the getLabelApplication method.
> There must be a mistake in label tag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.