Sounds like you need to escape the HTML.
For example if you are using actionmessage have a look at the escape
attribute. http://struts.apache.org/2.x/docs/actionmessage.html
On Thu, Oct 20, 2011 at 4:06 PM, Arpan arpan.deb...@gmail.com wrote:
If I add any html tags such as b, div etc., all
, Oct 20, 2011 at 7:42 PM, Carl Ballantyne
carlballant...@gmail.comwrote:
Sounds like you need to escape the HTML.
For example if you are using actionmessage have a look at the escape
attribute. http://struts.apache.org/2.x/docs/actionmessage.html
On Thu, Oct 20, 2011 at 4:06 PM
It sounds to me like you do not have your logging configured to filter out
the stuff from com.opensymphony.xwork2.conversion. It also might depend on
what server you are using. I recall having trouble with GlassFish and
struts2 in regards to this logging in the past. At the moment I am using
over the properties files to the target folder and the converters
would be run. I thought the M2e WTP Plugin would only use my pom.xml
settings.
On Thu, Sep 22, 2011 at 2:02 PM, Carl Ballantyne
carlballant...@gmail.comwrote:
Okay same problem back again. It seems to happen after I have done
Just a thought but make sure hibernate is sending the sql to the database.
Try stepping through your code using the debugger and add relevant logging
to be sure. Call flush() if necessary.
On Sat, Sep 24, 2011 at 1:18 PM, miguel mig...@almeida.at wrote:
On Thu, 2011-09-22 at 10:23 +0200,
I think you can pass request_locale via the URL. So
index.action?request_locale=du_NL. I think this will then keep in in the
session until you change it.
Check out http://struts.apache.org/2.x/docs/faqs.html - localization
section. In particular
Hey Anjib,
1 - Check out the tablib docco (
http://struts.apache.org/2.x/docs/select.html). For example with html:select
you could use listKey and listValue. Should be something similar for
html:options. I always use html:select though as much less code for what I
need.
2 - Have your action
section [1] answer your question?
[1] http://struts.apache.org/dev/builds.html#MavenSnapshots
Maurizio Cucchiara
On 21 September 2011 17:55, Carl Ballantyne carlballant...@gmail.com
wrote:
I am using 2.2.3.
How can I try the nightly build if using Maven? I do not see it listed
Okay same problem back again. It seems to happen after I have done a clean
with Maven. The custom converters are not being run. *scratches head*
I have done a maven install without running the tests to make sure all
classes have been compiled.
On Thu, Sep 22, 2011 at 9:56 AM, Carl Ballantyne
Hi All,
I have an action that I am trying to unit test. However it seems the
converters I have set for the User object that is being create by the action
are not being applied at all when running the unit test. The converters are
run when running the application.
For example I have a test class:
errors etc..
}
}
[1]
https://builds.apache.org/job/Struts2/lastStableBuild/org.apache.struts$struts2-assembly/
Maurizio Cucchiara
On 21 September 2011 17:31, Carl Ballantyne carlballant...@gmail.com
wrote:
Hi All,
I have an action that I am trying to unit test. However
Done - https://issues.apache.org/jira/browse/WW-3402.
Quoting Lukasz Lenart lukasz.len...@googlemail.com:
Could you register a new issue with patch attached?
https://issues.apache.org/jira/browse/WW
*Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999 de
Hi All,
I ran into an issue with the StrutsSpringTestCase class when doing my
unit tests. Basically the memory kept climbing until it crashed the
machine.
This class is actually loading the applicationContext for every test
case that extends it. And because the applicationContext is
log4j.properties in WEB-INF\classes
2. Set log4j.logger.org.apache.struts2=warn, struts in log4j.properties.
Raghuveer
-Original Message-
From: carl ballantyne [mailto:carl.ballant...@cast-info.es]
Sent: Wednesday, March 03, 2010 6:25 PM
To: Struts Users Mailing List
Subject: Struts 2, Log4J
log4j.properties in WEB-INF\classes
2. Set log4j.logger.org.apache.struts2=warn, struts in log4j.properties.
Raghuveer
-Original Message-
From: carl ballantyne [mailto:carl.ballant...@cast-info.es]
Sent: Wednesday, March 03, 2010 6:25 PM
To: Struts Users Mailing List
Subject: Struts 2
,
Carl.
Quoting carl ballantyne carl.ballant...@cast-info.es:
Hi Adam,
Looks to me like it is Struts.
I am using GlassFish 2.1 and went into the admin console and turned the
logging off for the Root ( javax.enterprise; ). But doing that turns of
any logging at all. I cannot set it to another level
Hi All,
I cannot seem to turn off the warning messages Struts 2 is putting in
my log files. This makes it impossible to follow debugging in some
parts of the applications. I keep getting messages like following:
Hi all,
I am having a problem with my JUnit tests. They are not closing the
hibernate session until ALL of the tests have finished. Needless to
say now that I have quite a few tests some are failing because they
cannot connect to the database.
The app is a Struts 2, Spring 2.5.6 app. I
Hi LV,
When you say you set your browser to Chinese are you simply moving
Chinese up the list of prefered languages or are you removing all
english from prefered languages. Because if it is the former then I
think it would still look for an *_en.properties file over the default.
Cheers,
Hi Ben,
Are you throwing a
com.opensymphony.xwork2.conversion.TypeConversionException exception
in your converter class when there is a problem converting the date?
I have the following for my converter class:
public class DateConverter extends StrutsTypeConverter {
private static
Hi Guys,
I have the following spring bean definition files:
myapp-application.xml
myapp-datasource.xml
myapp-datasource-test.xml
When unit testing I want to use myapp-application.xml and
myapp-datasource-test.xml. In the real world I want to use
myapp-application.xml and
enough. The Spring team say they prefer not
to use this approach but since it is only for unit testing I don't see
a big issue with it.
Cheers,
Carl.
Quoting carl ballantyne carl.ballant...@cast-info.es:
Hi Guys,
I have the following spring bean definition files:
myapp-application.xml
myapp
.
Cristian.
On Fri, Nov 20, 2009 at 10:14 AM, carl ballantyne
carl.ballant...@cast-info.es wrote:
Hi Guys,
I have an app with form fields and when submitting them to my Struts 2
actions the values are getting garbled. For example españa becomes
espa?.
I think the problem is with Struts because
. In every JSP you I have the following typical meta tag inside head:
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
I hope it will help.
Cristian.
On Fri, Nov 20, 2009 at 10:14 AM, carl ballantyne
carl.ballant...@cast-info.es wrote:
Hi Guys,
I have an app with form fields
Hi Guys,
I have an app with form fields and when submitting them to my Struts 2
actions the values are getting garbled. For example españa becomes
espa?.
I think the problem is with Struts because when I create a basic jsp
page and submit back to itself and display the form field - it
/jsp-config
4. In every JSP you I have the following typical meta tag inside head:
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
I hope it will help.
Cristian.
On Fri, Nov 20, 2009 at 10:14 AM, carl ballantyne
carl.ballant...@cast-info.es wrote:
Hi Guys,
I have an app
I think you want to try something like addActionMessage(Yay it
worked) in the action.
And then in the jsp use s:actionmessage/ to display it.
Quoting vikrant S shimpi.vikr...@gmail.com:
Hi All, I am using struts2 for my application. However I am stuck at a
place. Guys Please Help me
Hi Ben,
I think I understand your problem. I am have a similar situation where
I have a person class with a birthday.
I ended up writing a Converter to handle the date (because I needed it
in the format dd/mm/). I used the Person-conversion.properties to
say that I want that
Hi Alex,
I think you might need to add constant name=struts.devMode
value=true / in your struts.xml file.
Quoting Alex Parvulescu alex.parvule...@gmail.com:
hello,
I have been looking at Struts2 for a couple of days now, it seems nice
and easy to work with.
I have a problem that I
Hi Alex,
I thought it was supposed to give you more debug information including
when the property does not exist. Looks like I might be wrong then.
Cheers, Carl.
Quoting Alex Parvulescu alex.parvule...@gmail.com:
hello,
I did it and got nothing :)
Can you explain a bit what this
Hi All,
I have a Person object with a birthday attribute which is a Date. In
the form I have a textfield to enter the value. I want the field to
display the date in the format dd/MM/ and the validation to apply
using that format. However everything I am trying does not work.
I tried
The code below works a treat but just to help anyone out who might be
trying to do the same thing you can also use the tag s:fielderror /
which does a similar thing but without the fine control on the
formatting.
Quoting Greg Lindholm greg.lindh...@gmail.com:
So, fieldErrors is a
/ActionSupport.html
[2]
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ValidationAwareSupport.html
On Mon, Oct 26, 2009 at 10:57 AM, carl ballantyne
carl.ballant...@cast-info.es wrote:
Hi Everyone,
I am new to Struts 2 and trying to make the switch from Struts 1.
I cannot
Field Name = s:property value=#entry.key/
Message = s:property value=%{top}/br
/s:iterator
/s:iterator
[1] http://struts.apache.org/2.x/docs/iterator.html
On Tue, Oct 27, 2009 at 4:59 AM, carl ballantyne
carl.ballant...@cast-info.es wrote:
Okay that makes sense. Thanks
Hi Guys,
I am trying to make the switch to Struts2 for an upcoming project.
However I have run into one annoying problem. I am using GlassFish 2.1
and keep getting logs messages from Struts 2 in the server.log instead
of the app specific log myapp.log. This is despite having configured
Hi Everyone,
I am new to Struts 2 and trying to make the switch from Struts 1.
I cannot figure out how to get the validation to display the
messages/errors in the input form with the use of the s:actionerror or
s:actionmessage tags. It never outputs anything despite the validation
36 matches
Mail list logo