Re: JSP not loading

2009-08-10 Thread Eduard Neuwirt
Hi, are you sure that the answer is sent to the correct JSP. Please check your struts.xml for the action and make sure that the correct result is chosen. In case of Chinese and if you are using the dynamic method invocation the result may be incorrect. Regards Eduard Kavita Mehta schrieb:

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread Eduard Neuwirt
Hi Wong, perhaps would the following entries from decorators.xml help you : decorators defaultdir=/jsp/decorators excludes pattern/styles/*/pattern pattern/scripts/*/pattern pattern/images/*/pattern pattern/index.html/pattern /excludes ... /decorators Regards Eduard Neuwirt CS

Re: struts 2.1.5 type conversion error

2009-08-17 Thread Eduard Neuwirt
Hi Sandy, please use additionally to the conversion xml the of the declaration corresponding member attributes as double, int etc. I think there are several examples for the class-name.properties files. Regards Eduard Neuwirt sandy.verfai...@roularta.be schrieb: Martin, Then why

Re: validation

2009-08-17 Thread Eduard Neuwirt
Hi all, if you declare a field as int and pass a non int value, the described error occurs. Either use string or be sure to put the correct value. Regards Eduard musom...@aol.com schrieb: That looks like a question -- it is meant to be an assertion but somehow question marks crept in. C.

Create new theme in struts Tutorial

2009-09-30 Thread Eduard Neuwirt
Hello, I am trying to create my own Struts theme. The topic seems to be rather rarely. I am looking for an tutorial or how to guide describing this. Does a tutorial exist ? Is it useful to create a won theme ? Regards Eduard

Re: Create new theme in struts Tutorial

2009-09-30 Thread Eduard Neuwirt
Hi Martin, I have two kinds of forms. Table view and Entity View for different entities and tables. The look-and-feel shall be the same, only the content and columns differ. I don't use any template library. CSS is planned. Eduard Neuwirt Martin Gainty schrieb: i would have to agree

Re: Struts 1 new bean in form.

2009-10-05 Thread Eduard Neuwirt
Hi, perhaps a simple type : omg.alocation try with allocation (twin l) Regards Eduard SanJ.SANJAY schrieb: I am setting this new bena in form like this: private NewBean omg= new NewBean (); public NewBean getOmg() { return omg; } public void

Behaviour of Double conversion

2009-10-11 Thread Eduard Neuwirt
Hi all, I am facing the following interesting behavior of struts 2.1.8. I am using in action a list containing beans with setting of Double. Additionally I set German locale. So the value of double will be displayed in the English-Locale for example 5.55, but the conversion of value is done

Re: Behaviour of Double conversion

2009-10-12 Thread Eduard Neuwirt
Hello Martin, yes i did. The converter works partially. For displaying the dot-notification is used. For input the comma notification is used. Any Idea ? Martin Gainty schrieb: did you use xwork DoubleConverter? @Conversion() public class ConversionAction implements Action { private

Double conversion

2009-10-14 Thread Eduard Neuwirt
Hello all, so I am still facing the problem with Double conversion ins Struts. So I am trying to describe the situation: 1. double will be converted without consideration of localization, i.e. input and display form are using dot-notification. 2. Double will be convvrted with partial

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

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 Eduard Neuwirt
triple-check to make sure that jar is loaded. --Dennis On Fri, Oct 23, 2009 at 2:35 PM, Eduard Neuwirt eduard.neuw...@googlemail.com wrote: Hi, Obviously there is a gap between Hibernate and Web-Application. OpenSessionInViewFilter working well, almost. I am using this filter

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
implements this. --Dennis From: Eduard Neuwirt eduard.neuw...@googlemail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, October 23, 2009 3:08:44 PM Subject: Re: Struts2 / Hibernate Question Hi, please have a look to the https

Re: Struts2 / Hibernate Question

2009-10-24 Thread Eduard Neuwirt
and standard way of dealing with it, but so far it seems not. --Dennis From: Eduard Neuwirt eduard.neuw...@googlemail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, October 23, 2009 3:19:09 PM Subject: Re: Struts2 / Hibernate Question Hi

Re: excute method

2009-11-27 Thread Eduard Neuwirt
Hello, try to find you message in the Servlet-Container log file. I am not sure abot the target of system.out in the jee context, i suppose it would be the log file. Regards Eduard Nguyen Xuan Son schrieb: dear all in struts.xml i have action name=C0002_Home

Re: Why s:actionmessage / did not show action message?

2009-12-11 Thread Eduard Neuwirt
Did you send your success message from the action ? Emi Lu schrieb: Good afternoon, With struts2.1.81, in action class: addActionMessage(Success!); in JSP, display s:actionmessage /. But the success message never show up? Any clues? Thanks a lot! -- Lu Ying

Interesting behavior of struts 2.1

2010-03-24 Thread Eduard Neuwirt
Hello all, I am facing a strange problem. If I redefine in web.xml the struts-filters (see following xml-snip), the struts works fine, but I loose my location settings after FORWARDING. Any idea ? Please advice. Regards Eduard P.S.: I haven't debugged the struts code. filter-mapping

Re: Access to two diffrent beans in one form

2010-03-27 Thread Eduard Neuwirt
Hello Stephane, I think this a small differ approach would be better. I would declare only once Action for example DisplayAction. Within this class define two member variables clients and lists. Access to these beans via select in the *.jsp. Something like that: class DisplayAction ... {

Re: [s2] number format s:textfield tag

2010-03-30 Thread Eduard Neuwirt
Hi, This is very diffcult issue in struts. First you have to set your locale correctly. Second you have to use in the jsp the correct calls for number formatting. The struts docummenattion explains this point in FAQ (I hold in mind so). Alternatively you can write your own converter for

Re: Spring configuration error

2010-08-17 Thread Eduard Neuwirt
Hello Rakesh, are you using spring 3.x version ? If yes, please make sure, you have already included all spring 3.0 jars. The entire list of jars can be found here: http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/ Listener not cofigured means that one of

Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Eduard Neuwirt
Hello, I am looking for an elegant solution for the following situation. I have a multitenant struts/spring/hibernate application. Every tenant is stored in own database within the same RDBMS. All databases has the same schema. At the spring layer every tenant is represented as a datasource.

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Eduard Neuwirt
Hi Li, thanks for the answer. I didn't get how does it work within the struts-spring plugins ? In this case ist the the question is how to access to the application context directly from struts session. I could not find any information in the docu. Regards Eduard 2010/10/15 Li Ying

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Eduard Neuwirt
Hi Frans, would you mind to explain it ? Different implementation of what ? Regards Eduard 2010/10/15 Frans Thamura fr...@meruvian.org How about make different implementation So Tenant1 extends tenanta Tenant2 extends tenantb /m/ -Original Message- From: Eduard Neuwirt

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-17 Thread Eduard Neuwirt
and telecom application. I used a data object to table mapping to do DB routing vertically, pk hashing to route horizontally. The routing operation should not be done by Struts, but by persistent layer. 2010/10/15, Eduard Neuwirt

Re: how to access spring beans from inside a custom validator

2010-11-01 Thread Eduard Neuwirt
Hello Jake, It is simple. Use struts/spring plug in. Declare your bean within your validator and let spring inject your validator. That's all Regards Eduard P.S.: Do not forget to define the corresponding setter method for injection Am 01.11.2010 08:37, schrieb Jake Vang: i have a custom

Re: how to access spring beans from inside a custom validator

2010-11-01 Thread Eduard Neuwirt
getting a NullPointer (after I get the field and try to use it). Are there any other configurations that I need in web.xml? Right now, among other things, I have the listener org.springframework.web.context.ContextLoaderListener defined in web.xml. Thanks, On Mon, Nov 1, 2010 at 4:17 AM, Eduard

Re: Strategy to consume JSON/REST SErver

2011-02-10 Thread Eduard Neuwirt
Hi, I think the spring-web is better candidate for REST. I have not seen until now a well Struts2-REST prototype. Eduard Am 10.02.2011 20:31, schrieb Frans Thamura: hi all we know REST is getting popular, and we know Struts2 can produce REST/JSON but.. any idea to consume REST/JSON in