Re: strange behavior of s:a tag with s:include tag inside

2011-07-05 Thread Łukasz Lenart
Added for review https://reviews.apache.org/r/1003/ Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail:

Re: strange behavior of s:a tag with s:include tag inside

2011-07-03 Thread Łukasz Lenart
I don't know why it happens that way. I've changed a bit templates by moving some code from a-close.ftl to a.ftl and now it works as you've been expecting. But that change broken few tests and can be backward incompatible. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa

Re: strange behavior of s:a tag with s:include tag inside

2011-07-03 Thread Maurizio Cucchiara
Hi Lukasz, could you share your patch through JIRA (there was an open ticket IIRC)? 2011/7/3 Łukasz Lenart lukasz.len...@googlemail.com I don't know why it happens that way. I've changed a bit templates by moving some code from a-close.ftl to a.ftl and now it works as you've been expecting.

Re: strange behavior of s:a tag with s:include tag inside

2011-07-03 Thread Łukasz Lenart
Done! https://issues.apache.org/jira/browse/WW-3659 2011/7/3 Maurizio Cucchiara maurizio.cucchi...@gmail.com: Hi Lukasz, could you share your patch through JIRA (there was an open ticket IIRC)? 2011/7/3 Łukasz Lenart lukasz.len...@googlemail.com I don't know why it happens that way. I've

strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Hello all. I have two files. test.jsp %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=/struts-tags prefix=s % s:set name=depId value=1 scope=page/ s:a id=%{#attr.depId} href=javascript:some-javascript-method('%{#attr.depId}') s:include

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
Unless the JSP is processed through an action, the original comment in the jira ticket is correct. Recall that a filter can stop processing a request, which is what happens if it's not a request that hits an action. Dave On Jul 1, 2011 8:59 AM, Александр Высоков nod...@gmail.com wrote: Hello

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
I've created test project (attached StrutsBugTest.war) in jira. In that project you can click to the link in index.html and see the same strange behavior. 1 июля 2011 г. 17:28 пользователь Dave Newton davelnew...@gmail.comнаписал: Unless the JSP is processed through an action, the original

RE: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Martin Gainty
den Inhalt uebernehmen. Date: Fri, 1 Jul 2011 18:30:22 +0400 Subject: Re: strange behavior of s:a tag with s:include tag inside From: nod...@gmail.com To: user@struts.apache.org I've created test project (attached StrutsBugTest.war) in jira. In that project you can click to the link

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Maurizio Cucchiara
As I said before, don't call jsp directly via browser: rather you need to invoke a struts action that, after looked at your action mapping configuration, forward the request to your final jsp Maurizio Cucchiara Il giorno 01/lug/2011 16.30, Александр Высоков nod...@gmail.com ha scritto: I've

strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Hello all. I have two files. test.jsp %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=/struts-tags prefix=s % s:set name=depId value=1 scope=page/ s:a id=%{#attr.depId} href=javascript:some-javascript-method('%{#attr.depId}') s:include

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
In attached in jira test-project (StrutsBugTest.war) index.html contains link: a href=test.actionclick/a Action mapping file contains: !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=actions

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
But the include tag is still directly referencing a JSP, no? Dave On Friday, July 1, 2011, Александр Высоков nod...@gmail.com wrote: In attached in jira test-project (StrutsBugTest.war) index.html contains link: a href=test.actionclick/a Action mapping file contains: !DOCTYPE struts PUBLIC

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
So you try to tell me that in include's value must be only *.action? I think it is not. Documentation says that in include's value attribute may be JSP ( http://struts.apache.org/2.2.3/docs/include.html) And in examples almost everywhere is jsp-page in include... Strange... But I've tried your

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
2011/7/1 Александр Высоков nod...@gmail.com: So you try to tell me that in include's value must be only *.action? No, I don't. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Dave, if I expressed roughly, I am very sorry (my bad english is not good enough). But if I misunderstand you, please explain more details. Thank you. 2 июля 2011 г. 0:41 пользователь Dave Newton davelnew...@gmail.comнаписал: 2011/7/1 Александр Высоков nod...@gmail.com: So you try to tell me

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
2011/7/1 Александр Высоков nod...@gmail.com: Dave, if I expressed roughly, I am very sorry (my bad english is not good enough). Nope, you're doing great :) Try using a link to an action in the s:include tag instead of a plain JSP. For now you could just create a class-less action mapping

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Do you mean s:url action=test2 var=ac/ s:include value=%{ac}/ ? Tried. Empty body of a tag. 2 июля 2011 г. 0:56 пользователь Dave Newton davelnew...@gmail.comнаписал: 2011/7/1 Александр Высоков nod...@gmail.com: Dave, if I expressed roughly, I am very sorry (my bad english is not good