RE: CRUD with a OneToMany association under Struts 2 / Hibernate 3

2010-03-31 Thread adam pinder
have you got the correct cascade setting on the parent object i use the xml files for hibernate rather than the @ syntax in java classes and i can set cascade="all" which means when i save/update the parent the children are also saved or updated. also remember that for hibernate to realise

Re: CRUD with a OneToMany association under Struts 2 / Hibernate 3

2010-03-31 Thread bruno grandjean
Dear Rene, Thks a lot for replying to me because I am feeling a little bit alone with my CRUD ;-). In fact I am trying to build a dynamic MetaCrud. My pb is simple: in the same jsp page I would like to update a Parent object and its Childs (values):

Re: CRUD with a OneToMany association under Struts 2 / Hibernate 3

2010-03-31 Thread bruno grandjean
Dear Rene, Thks a lot for replying to me because I am feeling a little bit alone with my CRUD ;-). In fact I am trying to build a dynamic MetaCrud. My pb is simple: in the same jsp page I would like to update a Parent object and its Childs (values): name="name" label="Nom" />

Re: Regular expressions - Email Validation

2010-03-31 Thread seeking_solution
xml escape is working fine. thanks. -- View this message in context: http://old.nabble.com/Regular-expressions---Email-Validation-tp28097766p28099880.html Sent from the Struts - User mailing list archive at Nabble.com. - To un

Re: Regarding download for Hibernate!

2010-03-31 Thread Brian Thompson
Funny, I was going to suggest http://tinyurl.com/y8r4o25. -Brian On Wed, Mar 31, 2010 at 1:00 PM, sandeep kotha wrote: > http://sourceforge.net/projects/hibernate/files/hibernate3/ > > On 31 March 2010 20:56, reuben swaroop singh wrote: > >> Hi, >> >> >> I wanna download and use Hibernate.Kind

Re: Regular expressions - Email Validation

2010-03-31 Thread Brian Thompson
Have you tried a simpler regex to make sure that validation is wired up correctly? The one you're currently using will reject valid email addresses (e.g. local+p...@example.com), and it will probably allow invalid ones through (like localp...@example.a.a). See http://tools.ietf.org/html/rfc2822#s

Re: Regarding download for Hibernate!

2010-03-31 Thread sandeep kotha
http://sourceforge.net/projects/hibernate/files/hibernate3/ On 31 March 2010 20:56, reuben swaroop singh wrote: > Hi, > > > I wanna download and use Hibernate.Kindly suggest the webpage where i can > download Hibernate latest version? > > kindly forward this to appropriate mail id. > > In Anticip

Re: Regular expressions - Email Validation

2010-03-31 Thread seeking_solution
tried using - ^([a-zA-Z0-9]([\w\.-]*[a-zA-Z0-9])*...@[a-za-z0-9]([\w\.-&]*[a-zA-Z0-9])*\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z])[\s]*$ OR ^([a-zA-Z0-9]([\w\.-]*[a-zA-Z0-9])*...@[a-za-z0-9]([\w\.-\&]*[a-zA-Z0-9])*\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z])[\s]*$ still not working. validation xml deploys successfully

Re: CRUD with a OneToMany association under Struts 2 / Hibernate 3

2010-03-31 Thread Rene Gielen
I'm not sure if I understand what your actual question is, nor whether it is particularly Struts 2 related (rather than just Hibernate) - but you might want to have a look in the CRUD demo section of the Struts 2 showcase application. Maybe you will also find this demo useful: http://github.com/rgi

Regarding download for Hibernate!

2010-03-31 Thread reuben swaroop singh
Hi, I wanna download and use Hibernate.Kindly suggest the webpage where i can download Hibernate latest version? kindly forward this to appropriate mail id. In Anticipation With Regards Reuben Appadurai

RE: textfield with Date object

2010-03-31 Thread Wick, Dan
That's neato. I can specify the locale in the link to this special page/action & thereby get my date to parse! Thanks! Dan > -Original Message- > From: Rene Gielen [mailto:gie...@it-neering.net] > Sent: Wednesday, March 31, 2010 6:21 AM > To: Struts Users Mailing List > Subject: Re: te

RE: Regular expressions - Email Validation

2010-03-31 Thread adam pinder
try & instead of & > Date: Wed, 31 Mar 2010 08:41:39 -0700 > From: pankajj.j...@gmail.com > To: user@struts.apache.org > Subject: Regular expressions - Email Validation > > > In struts I have regular expression for validating email like this - > >

Re: Regular expressions - Email Validation

2010-03-31 Thread Chris Pratt
It's in an XML file, so you need to use XML escaping, not C/Java escaping. (*Chris*) On Wed, Mar 31, 2010 at 8:41 AM, seeking_solution wrote: > > In struts I have regular expression for validating email like this - > > EMail > > > ^([a-zA-Z0-9]([\w\.-]*[a-zA-Z0-9])*[...@[a-za-z0-9]([\

Regular expressions - Email Validation

2010-03-31 Thread seeking_solution
In struts I have regular expression for validating email like this - EMail ^([a-zA-Z0-9]([\w\.-]*[a-zA-Z0-9])*[...@[a-za-z0-9]([\w\.-]*[a-zA-Z0-9])*\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z])[\s]*$ Now I want to allow & in the email. I tried like this ^([a-zA-Z0-9&]([\w\.-]*[a-zA-Z0-9&])*

Re: s:if tag syntax help needed

2010-03-31 Thread Dale Newfield
Felipe A. Lorenz wrote: Im not sure that you can use it (instanceof). The problem might not be with instanceof but rather StringElement. Did you try a fully qualified classname? On 31/3/2010 06:49, RogerV wrote: is the closest you listed. Try that one (or replace "structure.elements[#

Re: textfield with Date object

2010-03-31 Thread Rene Gielen
The same problem as with any localized web app. Typical Struts 2 solution to explicitly switch the locale context: Switch to German Locale The value will remain throughout the session. Still would not parse the date manually in the action then. - René Greg Lindholm schrieb: > Don't get me wrong

Re: textfield with Date object

2010-03-31 Thread Greg Lindholm
Don't get me wrong, I think Struts does the best it can, the problem is many developers who have never written an I18N app seem to expect it to "just work" auto-magically and it doesn't. One of the issues is the only "automatic" handling relies on the browsers "accept-language" header. An experienc

Re: s:if tag syntax help needed

2010-03-31 Thread Felipe A. Lorenz
Im not sure that you can use it (instanceof). Why dont you do that in the action class, creating a new collection! On 31/3/2010 06:49, RogerV wrote: Hi I'm iterating over a List with and I want to test that the element returned is an instanceof a specific type of element, so I've tried wit

Re: textfield with Date object

2010-03-31 Thread Rene Gielen
Hi, (copied from an earlier thread on numbers) see http://struts.apache.org/2.1.8.1/docs/formatting-dates-and-numbers.html It is important to know that Struts 2 has always a locale context request for each request, which affects both formating and parsing dates and numbers. The request locale is

Re: [s2] number format s:textfield tag

2010-03-31 Thread Rene Gielen
Hi, see http://struts.apache.org/2.1.8.1/docs/formatting-dates-and-numbers.html It is important to know that Struts 2 has always a locale context request for each request, which affects both formating and parsing dates and numbers. The request locale is determined as follows: 1. Request paramete

RE: textfield with Date object

2010-03-31 Thread Wick, Dan
I accept your answer, but Struts2 should just handle this! :-( I guess I'll write a number of helper methods like you did. > -Original Message- > From: Greg Lindholm [mailto:greg.lindh...@gmail.com] > Sent: Tuesday, March 30, 2010 10:14 AM > To: Struts Users Mailing List > Subject: Re: te

s:if tag syntax help needed

2010-03-31 Thread RogerV
Hi I'm iterating over a List with and I want to test that the element returned is an instanceof a specific type of element, so I've tried with none of which work. Could some kind soul show me the correct syntax for this? Regards -- View this message in context: http://old.nabble.com/s%

Why do I need a refresh to print a display:table ?

2010-03-31 Thread Stephane Cosmeur
Hello, My second message on this webmail and still very new on Struts 2. My problem is, I guess, quite common. I have a simple action which return a jsp containing a display:table. This table calls his data from the list inside the actionclass. The table display perfectly well, but only at the sec