[jira] [Commented] (WW-4371) Struts 2 tutoria gives stacktrace with struts 2.3.16.3

2014-07-12 Thread Jim Anderson (JIRA)

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

Jim Anderson commented on WW-4371:
--


Hi Lukasz,

I got tomcat7 up and running today and ran the 'hello_world' tutorial 
app successfully.
Upgrading was good advise. Thank you for taking the time to look at this 
problem.

I look at the issue on line and did not see a way to make the issue as 
resolved. I'm sorry
to give you one more thing to do, but can you mark the issue as resolved?

Regards,
Jim A.





> Struts 2 tutoria gives stacktrace with struts 2.3.16.3
> --
>
> Key: WW-4371
> URL: https://issues.apache.org/jira/browse/WW-4371
> Project: Struts 2
>  Issue Type: Bug
>  Components: Example Applications
>Affects Versions: 2.3.16.3
> Environment: Crunchbang Linux - Linux furillo 2.6.32-5-686 #1 SMP Wed 
> Apr 9 19:23:16 UTC 2014 i686 GNU/Linux
> java 1.7.0_51
> tomcat6 6.0.35
> hardware: Toshiba  Satellite 305D-S5974
>Reporter: Jim Anderson
>Priority: Minor
> Attachments: hello_world.war
>
>
> I looked for help on the struts mail list but was unable to find a solution. 
> I am experienced with software, but a relative novice to web programming and 
> totally new to Struts. I'm trying to learn struts 2 by running the tutorial 
> examples.
> I was able to run the 'basic_struts' example with no problem.
> When I ran the 'hello_world' example, it ran successfully once, but any 
> follow up runs have created a stack trace. I suspect the stacktrace is caused 
> because my environment is somehow non-conforming. However,
> I doubt that a stacktrace is the error response that you would want Struts 2 
> to provide.
> If you have questions, please send email to:
>   jim_anderson at jjajava dot com
> Regards,
> Jim
> The stacktrace is long, but here it is:
> {noformat}
> Struts Problem Report
> Struts has detected an unhandled exception:
> Messages: 
> org.apache.struts2.dispatcher.ServletDispatcherResult cannot be cast to 
> com.opensymphony.xwork2.Result
> File: org/apache/struts2/factory/StrutsResultFactory.java
> Line number:  38
> Stacktraces
> org.apache.struts2.dispatcher.ServletDispatcherResult cannot be cast to 
> com.opensymphony.xwork2.Result - action - 
> file:/var/lib/tomcat6/webapps/hello_world/WEB-INF/classes/struts.xml:21:102
> 
> com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:221)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:365)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
> 
> org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:254)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:254)
> 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> 
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

[jira] [Resolved] (WW-4150) Support attributes with hyphens in tag dynamic attributes

2014-07-12 Thread Lukasz Lenart (JIRA)

 [ 
https://issues.apache.org/jira/browse/WW-4150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-4150.
---

Resolution: Fixed

Thanks for helping out!

> Support attributes with hyphens in tag dynamic attributes
> -
>
> Key: WW-4150
> URL: https://issues.apache.org/jira/browse/WW-4150
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 2.3.15.1
>Reporter: Jasper Rosenberg
>Priority: Minor
> Fix For: 2.3.18
>
>
> A lot of CSS/JS frameworks look for attributes on html elements that include 
> a hyphen to do their magic (JQuery Mobile, Bootstrap, etc).
> For example, in my JQuery Mobile app, I'd like to be able to say:
> {code}
> <@s.form ... data-ajax="false">
> 
> {code}
> Unfortunately, this doesn't work because Freemarker doesn't allow hyphens in 
> macro parameter names.  I entered an enhancement request for this here: 
> https://sourceforge.net/p/freemarker/bugs/395/
> I'm not sure when or if that might be fixed, so perhaps a work around would 
> be to allow explicit dynamic attributes through some kind of parameter 
> convention.
> {code}
> <@s.form ... >
>   <@s.param name="dyn:data-ajax" value="false"/>
> 
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (WW-4150) Support attributes with hyphens in tag dynamic attributes

2014-07-12 Thread Jasper Rosenberg (JIRA)

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

Jasper Rosenberg commented on WW-4150:
--

Yes, that looks good.

> Support attributes with hyphens in tag dynamic attributes
> -
>
> Key: WW-4150
> URL: https://issues.apache.org/jira/browse/WW-4150
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 2.3.15.1
>Reporter: Jasper Rosenberg
>Priority: Minor
> Fix For: 2.3.18
>
>
> A lot of CSS/JS frameworks look for attributes on html elements that include 
> a hyphen to do their magic (JQuery Mobile, Bootstrap, etc).
> For example, in my JQuery Mobile app, I'd like to be able to say:
> {code}
> <@s.form ... data-ajax="false">
> 
> {code}
> Unfortunately, this doesn't work because Freemarker doesn't allow hyphens in 
> macro parameter names.  I entered an enhancement request for this here: 
> https://sourceforge.net/p/freemarker/bugs/395/
> I'm not sure when or if that might be fixed, so perhaps a work around would 
> be to allow explicit dynamic attributes through some kind of parameter 
> convention.
> {code}
> <@s.form ... >
>   <@s.param name="dyn:data-ajax" value="false"/>
> 
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)