> On Thu, Oct 20, 2011 at 7:42 PM, Carl Ballantyne
> wrote:
>
> > 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
> >
> &
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 wrote:
> If I add any html tags such as , etc., all these tags gets
> displayed
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
Tomcat
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
wrote:
> Okay same problem back again. It seems to happen after I have done a clean
> with
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
http://struts.apache.org/2.x/docs/how-do-we-change-l
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 wrote:
>
> On Thu, 2011-09-22 at 10:23 +0200, Maurizio Cucchiara wr
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 implem
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
our question?
> [1] http://struts.apache.org/dev/builds.html#MavenSnapshots
>
> Maurizio Cucchiara
>
>
>
> On 21 September 2011 17:55, Carl Ballantyne
> wrote:
> > I am using 2.2.3.
> >
> > How can I try the nightly build if using Maven? I do not see it list
ction");
>
> // asserts to check 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
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:
Done - https://issues.apache.org/jira/browse/WW-3402.
Quoting Lukasz Lenart :
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
Proteccion de Datos de Caracter Person
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 stati
,
Carl.
Quoting carl ballantyne :
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 because the level
WARNING is
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,
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 and turning off WARNING messages
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:
[#|2010-03-03T13:45:10.345+0100|WARNING|sun-appserver2.1|org.apache.struts2.ut
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 am
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,
C
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
only for unit testing I don't see
a big issue with it.
Cheers,
Carl.
Quoting carl ballantyne :
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
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 myapp-datasource.xml
properties.
By default in tomcat it is ISO-8859-1
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
In worst case test some thing like this in your action file.
String strTemp=new String(strProperty.getBytes("ISO-8859-1"), "UTF-8&q
codingFilter
/*
Tomcat already comes with such an example filter of
SetCharacterEncodingFilter.
3. Also in my application's web.xml I have set that JSPs use UTF-8
as a default:
*.jsp
UTF-8
4. In every JSP you I have the following typical tag inside :
I hop
ngFilter
encoding
UTF-8
encodingFilter
/*
Tomcat already comes with such an example filter of
SetCharacterEncodingFilter.
3. Also in my application's web.xml I have set that JSPs use UTF-8
as a default:
*.jsp
UTF-8
4. In every JSP you I have the following typ
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
I think you want to try something like addActionMessage("Yay it
worked") in the action.
And then in the jsp use to display it.
Quoting vikrant S :
Hi All, I am using struts2 for my application. However I am stuck at a
place. Guys Please Help me out.
I have three buttons in my jsp page
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 converter
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 :
hello,
I did it and got nothing :)
Can you explain a bit what this property does?
Hi Alex,
I think you might need to add value="true" /> in your struts.xml file.
Quoting Alex Parvulescu :
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 don't really understand, maybe I'm missing
some config set
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 p
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
which does a similar thing but without the fine control on the
formatting.
Quoting Greg Lindholm :
So, fieldErrors is a Map>, the key is the field name
and the value
ttribute.
You could try something like this
Field Name =
Message =
[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 for that!
Bu
g/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 figure out how to get the validation
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
appearin
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
lo
36 matches
Mail list logo