Url tag usage in struts2 problem and solution

2012-01-05 Thread Mahesh
Hi, This is about the topic URL tags in struts2 tutorial available in the below link. http://struts.apache.org/2.x/docs/using-struts-2-tags.html Problem is this: s:url action=hello var=helloLink s:param name=userNameBruce Phillips/s:param /s:url

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Dave Newton
Looks like your container isn't evaluating JSP EL. Make sure your web.xml is your servlet spec 2.5+. Dave On Jan 5, 2012 6:04 AM, Mahesh mag...@gmail.com wrote: Hi, This is about the topic URL tags in struts2 tutorial available in the below link.

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Johannes Geppert
The Url is stored in the Struts2 ValueStack. To access this, you should use the Struts2 Property Tag. s:property value=helloLink / Johannes - web: http://www.jgeppert.com twitter: http://twitter.com/jogep -- View this message in context:

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Łukasz Lenart
2012/1/5 Dave Newton davelnew...@gmail.com: Looks like your container isn't evaluating JSP EL. Make sure your web.xml is your servlet spec 2.5+. All the time we're specifying as a minimal requirement Servlet API 2.4, shouldn't we change that to 2.5 though ? Regards -- Łukasz + 48 606 323 122

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Dave Newton
This issue is only because of JSP EL eval, so isn't really serious... If we don't actually require 2.5 in the code, raising the version seems a little arbitrary. On Jan 5, 2012 8:33 AM, Łukasz Lenart lukasz.len...@googlemail.com wrote: 2012/1/5 Dave Newton davelnew...@gmail.com: Looks like

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Dave Newton
I might be wrong anyway, misread the post on my phone; not sure a var can be read through plain JSP EL like that-don't recall. Sorry for the confusion. Dave On Jan 5, 2012 8:28 AM, Dave Newton davelnew...@gmail.com wrote: Looks like your container isn't evaluating JSP EL. Make sure your

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Mahesh
Hi, The version of software being used for running the tutorial is below. Tomcat 6.0.33 Java 1.6.0_26 Struts 2.3.1.1 on Linux -- Mahesh On 5 January 2012 16:33, Mahesh mag...@gmail.com wrote: Hi, This is about the topic URL tags in struts2 tutorial available in the below link.

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Dave Newton
Not really related to what I said, but like I said, I misread anyway. Dave On Jan 5, 2012 9:10 AM, Mahesh mag...@gmail.com wrote: Hi, The version of software being used for running the tutorial is below. Tomcat 6.0.33 Java 1.6.0_26 Struts 2.3.1.1 on Linux -- Mahesh On 5 January

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Łukasz Lenart
2012/1/5 Dave Newton davelnew...@gmail.com: I might be wrong anyway, misread the post on my phone; not sure a var can be read through plain JSP EL like that-don't recall. As I remember it should work. Both notations should be supported ${} and %{} Regards -- Łukasz + 48 606 323 122

Re: Why the fielderrors in ValidationAwareSupport can't auto clear by itself?

2012-01-05 Thread Gabriel Belingueres
Are you using the chain result type? Are you storing the Action object itself into session scope and getting it back later? 2012/1/2 Dave Newton davelnew...@gmail.com: Are you using Spring? On Monday, January 2, 2012, cwalet cwal110...@gmail.com wrote: can't auto clear 是什么意思?

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Gabriel Belingueres
I would search for el-ignored tags in your webapp's web.xml and tomcat's web.xml, and get rid of them. 2012/1/5 Łukasz Lenart lukasz.len...@googlemail.com: 2012/1/5 Dave Newton davelnew...@gmail.com: I might be wrong anyway, misread the post on my phone; not sure a var can be read through

Re: Url tag usage in struts2 problem and solution

2012-01-05 Thread Mahesh
Hi, I figured out what was going wrong. My web.xml looked like this: -- !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app /web-app

Default Encoding not working in struts2-json plugin

2012-01-05 Thread Néstor Boscán
Hi I'm using Struts 2 2.1.8.1 with the Struts 2 JSON plugin. I'm using accented characters and event if I configure the defaultEncoding to ISO-8859-1 the resulting JSON document is sent using UTF-8. In IE it gives a data error because the page encoding ISO-8859-1 is not the same as the JSON