Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hm, interesting. I checked against my configurations. I have in my WEB-INF/lib spring.jar, all necessary hibernate archives and the configuration of filters is done as described in the link I already posted. Best Eduard Dennis Atkinson schrieb: OK, that's good. So -- uh - how would I conf

Re: Localization

2009-10-23 Thread Jiunn Haur Lim
I see. Thanks! On Fri, Oct 23, 2009 at 9:53 PM, Greg Lindholm wrote: > Each validator makes different properties available but it's a little bit of > detective work to figure out which ones are available.  I often find myself > browsing thru the source to figure this out. > > If you look at the d

AJAX Validation example

2009-10-23 Thread shenxiaojing
Hello, all Is anybody using the example from http://struts.apache.org/2.1.8/docs/ajax-validation.html ? It doesn't work at all. Or anybody can send a successful example to me? Thank you -Karen - To unsubscribe, e-mail: user-u

i18n within dojo attribute

2009-10-23 Thread larryreed
I have a text field which I would like to 'dojo-ize' by turning it into a ValidationTextBox. One of the parameters, 'promptMessage' is a text message that is put up as a help when the focus enters the text box. My problem is that I would like to internationalize this message. My thought was

General Question About Creating Projects

2009-10-23 Thread Thomas Sattler
Greetings. I am the developer of the "Struts2Builder" project. In the Struts2Builder documentation, I tell people to create projects using the "struts2-archetype-starter" Maven archetype. I have found this to be a solid, reliable method of initially creating Struts2 projects. However, I have no

escape with s:textarea

2009-10-23 Thread monika budhiraja
Hi: I am using "s:textarea" to show bigger text. I have some html characters in my data. so, If I use : value in field1= "Hello" Jsp comes back with &amb;lt;b&amb;gt;Hello&amb;lt;/b&amb;gt; This looks like it is doing double escaping. I know we have an optional field with prop

Re: Struts 2 Validation issues

2009-10-23 Thread Konstantyn Harasevich
Hello Struts 2 in action is good book to resolve yours questions. Greeting - Original Message - From: "Eileen Hurley" To: Sent: Thursday, October 22, 2009 10:07 AM Subject: Struts 2 Validation issues All, I have problems with xml validation and Struts 2 (2.0.14). The validat

Re: Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
OK, that's good. So -- uh - how would I configure OpenSessionInView? I attempted to do it, but even after I loaded the spring-hibernate3-2.0.8.jar file, I got a ClassNotFound error, so I couldn't even get past that. And you are absolutely correct about it being rather interesting. But it see

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hi Dennis, sorry i don't know anything about FullHibernatePlugin. I am using only the OpenSessionInView-approach. The Google delivers several threads to this topic. It seems to be rather interesting problem. Regards Eduard Dennis Atkinson schrieb: Eduard, I thought the FullHibernatePlugin

Re: Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
Eduard, I thought the FullHibernatePlugin implements this. --Dennis From: Eduard Neuwirt To: Struts Users Mailing List Sent: Fri, October 23, 2009 3:08:44 PM Subject: Re: Struts2 / Hibernate Question Hi, please have a look to the https://www.hibernate.org

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hi, please have a look to the https://www.hibernate.org/43.html Regards Eduard Thomas Sattler schrieb: So it sounds like both the FullHibernatePlugin and the OpenSessionInViewFilter class work. Thanks for the quick replies. Do you remember how these are configured? The FullHibernatePlugin w

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hello Johannes, I am a little bit confusing. I thougth that Spring + Hibernate do not solve the LazyInitializationException-issue because the hibernate session is attached to request scope, so it leads to the problem ? Do you store the session in the session scope ? Regards Eduard Johannes

Re: Struts2 / Hibernate Question

2009-10-23 Thread Thomas Sattler
So it sounds like both the FullHibernatePlugin and the OpenSessionInViewFilter class work. Thanks for the quick replies. Do you remember how these are configured? The FullHibernatePlugin wiki says only a few lines of configuration are required, but it doesn't say what those lines are. With Open

Re: Struts2 / Hibernate Question

2009-10-23 Thread Johannes Geppert
I use the FullHibernatePlugin in some small Projects, this is working very well for me. In larger Projects today I prefer Hibernate in combination with Spring Framework. Best Regards Johannes Geppert -- http://www.jgeppert.com http://twitter.com/jogep Dennis Atkinson wrote: > > Hello all. >

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hi, Obviously there is a gap between Hibernate and Web-Application. OpenSessionInViewFilter working well, almost. I am using this filter and in the most cases it is enough. Sometimes I have to load Collection with size(). The another solution is to store only keys in the session and load the o

Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
Hello all. I am running into the infamous "closed session" issue, whereby I get a LazyInitializationException on a lazy-initialized foreign key relationship. The issue, as I understand it, is that the session is closed before the lazy-initialized objects need to be read from the database, so t

UTF-8 encoding problem for property tag and alike (e.g. iterator)

2009-10-23 Thread Qunhuan Mei
This problem was hit when utf-8 encoded string was sent to Android emulator and Android could not correctly display the message. Basically, when using tag to output message from utf-8 encoded properties file, it right output hexadecimal utf-8 encoded message (in the form of, for example, "\

Re: Can't view the image after uploading the image in netbeans 6.7 using struts 1.3.8 + hibernate both in windows and linux machine.

2009-10-23 Thread Dale Newfield
swamy007 wrote: My question is while we uplaod some image it got refelected in the database but we are not able to view the image. Only after deploying the project in netbeans it is been viewable. A file uploaded to your server by a browser as part of a POST is put in a temporary location for

Re: Localization

2009-10-23 Thread Greg Lindholm
Each validator makes different properties available but it's a little bit of detective work to figure out which ones are available. I often find myself browsing thru the source to figure this out. If you look at the doc for RequiredStringValidator [1] you will see is has a parameter fieldName. [

Re: Struts2 Validation Problem - validation errors not being cleared when corrected!

2009-10-23 Thread Murray Furtado
Hehe, I've just resolved my own issue! The problem was my spring configuration. I needed to specify scope="prototype" on each of my Struts 2 Action declarations. Singleton actions were being created and thus previous field errors were being carried over between requests. I'm surprised this isn't a

Struts 2 Validation issues

2009-10-23 Thread Eileen Hurley
All, I have problems with xml validation and Struts 2 (2.0.14). The validation as I see it is not displaying the error messages (I extend ActionSupport). The defaultstack includes the validation interceptor. I believe the problem is related to my struts.xml configuration and the interceptor

[DispatchAction] no handler parameter

2009-10-23 Thread Sachi N
Hello I posted this question 9months ago but could not get any solutions. I wonder if anyone can give me some clue now. My client reported that they have received this error only once. Request[/app/Keyword] does not contain handler paramet

Struts2 Validation Problem - validation errors not being cleared when corrected!

2009-10-23 Thread Murray Furtado
Hi, I'm using Struts 2.0.14 and validation annotations. I have a UpdateUserAction class which implements ModelDriven and declares the execute() method with the following : @Validations( visitorFields = { @VisitorFieldValidator(message="", fieldName="model")} ) My model is a User class which has

Re: How can I get the selected value from a scroll down list ?

2009-10-23 Thread Hanen Ben Rhouma
Thanks Sandeep for this suggestion, I will digg further in this direction. On Fri, Oct 23, 2009 at 12:29 PM, Sandeep Shenvi < sandeep.she...@lntinfotech.com> wrote: > Hi, > If I understand ur problem correctly then u want to jump from > ChangesFilterAction class to some other Action class... bef

Re: access wildcard mapped params in interceptor in struts2

2009-10-23 Thread swapna_here
swapna_here wrote: > > Hi all, > can any body explain how to access wild card mapped params in interceptor > in struts2 > Here is my action mapping : > > method="myMethod"> > {1} > /pages/news_wire.jsp > > > when i use interceptor which executes first and use

Localization

2009-10-23 Thread Jiunn Haur Lim
Hi! I am new to Struts 2 and would appreciate a little help here. >From the Struts2 tutorial (http://struts.apache.org/2.1.8/docs/localizing-output.html), I learnt that if I have the following messages in my resource bundle: requiredstring = ${getText(fieldName)} is required. password = Password

Re: How can I get the selected value from a scroll down list ?

2009-10-23 Thread Sandeep Shenvi
Hi, If I understand ur problem correctly then u want to jump from ChangesFilterAction class to some other Action class... before reloading the page... If this is the case then I think you should go for MappingDispatchAction class... It enables you to group logical Actions within the same Class and

How can I get the selected value from a scroll down list ?

2009-10-23 Thread Hanen Ben Rhouma
Hello, Please, how can I get the selected value from a scroll down list (it's a collection of values extracted dynamically : and submit it to another action?? (the problem is that I can extract the value