You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "bphillips@ku.edu" <bp...@ku.edu> on 2013/09/22 16:17:54 UTC

Need Assistance With Fixing WW-4194

https://issues.apache.org/jira/browse/WW-4194

Please see the notes for WW-4194.  I've not been able to figure out the
cause of the bug the user reported as I'm not too familiar with the
Component class and how the ValueStack object is created and provided to the
Component class constructor.  I tried following the code for OgnlValueStack
but got a bit lost and I'm not sure I'm even on the right track.

What is also unusual about this bug is the findValue method correctly
returns null when used from within an Action class but does not work
correctly when used in a JSP that was generated by the component tag.  

So any assistance in pointing me in the right direction for finding the code
that causes the bug described in WW-4194 would be great.

Bruce




--
View this message in context: http://struts.1045723.n5.nabble.com/Need-Assistance-With-Fixing-WW-4194-tp5713977.html
Sent from the Struts - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Need Assistance With Fixing WW-4194

Posted by "bphillips@ku.edu" <bp...@ku.edu>.
Luskaz reported that this bug is fixed in the latest Struts snapshot.



--
View this message in context: http://struts.1045723.n5.nabble.com/Need-Assistance-With-Fixing-WW-4194-tp5713977p5714059.html
Sent from the Struts - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Need Assistance With Fixing WW-4194

Posted by "bphillips@ku.edu" <bp...@ku.edu>.
After unzipping the download create the .war file by using mvn -e clean
package

Then copy the .war file to Tomcat's webapps directory

Then go to:  http://localhost:8080/Component_Tag_Struts2_Mvn/ 

Click on the link to Register

Complete the registration form and click submit

You will see two NOT NULL statements

The first NOT NULL statement should be NULL as the findValue statement in
the testcomponent.jsp (line 5) is being used to find an object that does not
exist in the ValueStack.





--
View this message in context: http://struts.1045723.n5.nabble.com/Need-Assistance-With-Fixing-WW-4194-tp5713977p5714037.html
Sent from the Struts - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Need Assistance With Fixing WW-4194

Posted by Lukasz Lenart <lu...@apache.org>.
This can be related to WW-3990 but I cannot confirm it right now.

2013/9/23 Lukasz Lenart <lu...@apache.org>:
> http://localhost:8080/thankyou.jsp is the right url? Accessing JSP
> files directly isn't the best practise - if it worked, that was an
> unexpected behaviour.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/9/23 Lukasz Lenart <lu...@apache.org>:
>> 2013/9/22 bphillips@ku.edu <bp...@ku.edu>:
>>> https://issues.apache.org/jira/browse/WW-4194
>>>
>>> Please see the notes for WW-4194.  I've not been able to figure out the
>>> cause of the bug the user reported as I'm not too familiar with the
>>> Component class and how the ValueStack object is created and provided to the
>>> Component class constructor.  I tried following the code for OgnlValueStack
>>> but got a bit lost and I'm not sure I'm even on the right track.
>>>
>>> What is also unusual about this bug is the findValue method correctly
>>> returns null when used from within an Action class but does not work
>>> correctly when used in a JSP that was generated by the component tag.
>>>
>>> So any assistance in pointing me in the right direction for finding the code
>>> that causes the bug described in WW-4194 would be great.
>>
>> What url should I use to see a problem?
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Need Assistance With Fixing WW-4194

Posted by Lukasz Lenart <lu...@apache.org>.
http://localhost:8080/thankyou.jsp is the right url? Accessing JSP
files directly isn't the best practise - if it worked, that was an
unexpected behaviour.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/9/23 Lukasz Lenart <lu...@apache.org>:
> 2013/9/22 bphillips@ku.edu <bp...@ku.edu>:
>> https://issues.apache.org/jira/browse/WW-4194
>>
>> Please see the notes for WW-4194.  I've not been able to figure out the
>> cause of the bug the user reported as I'm not too familiar with the
>> Component class and how the ValueStack object is created and provided to the
>> Component class constructor.  I tried following the code for OgnlValueStack
>> but got a bit lost and I'm not sure I'm even on the right track.
>>
>> What is also unusual about this bug is the findValue method correctly
>> returns null when used from within an Action class but does not work
>> correctly when used in a JSP that was generated by the component tag.
>>
>> So any assistance in pointing me in the right direction for finding the code
>> that causes the bug described in WW-4194 would be great.
>
> What url should I use to see a problem?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Need Assistance With Fixing WW-4194

Posted by Lukasz Lenart <lu...@apache.org>.
2013/9/22 bphillips@ku.edu <bp...@ku.edu>:
> https://issues.apache.org/jira/browse/WW-4194
>
> Please see the notes for WW-4194.  I've not been able to figure out the
> cause of the bug the user reported as I'm not too familiar with the
> Component class and how the ValueStack object is created and provided to the
> Component class constructor.  I tried following the code for OgnlValueStack
> but got a bit lost and I'm not sure I'm even on the right track.
>
> What is also unusual about this bug is the findValue method correctly
> returns null when used from within an Action class but does not work
> correctly when used in a JSP that was generated by the component tag.
>
> So any assistance in pointing me in the right direction for finding the code
> that causes the bug described in WW-4194 would be great.

What url should I use to see a problem?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org