XML Validation

2009-07-11 Thread Muhammad Owais
Dear All; I wnat to validate a String that is similare to 1,102,Y.I was trying to implement it, but it is not working. field property=scheduleDateStr depends=requiredif arg0 key=label.scheduleDateStr / var

RE: assigning a JSP variable a value coming from s: property

2009-07-11 Thread Farshad Rabbani
Hi Musachy, I appreciate the assistance, it worked. -Farshad Date: Fri, 10 Jul 2009 13:08:00 -0700 Subject: Re: assigning a JSP variable a value coming from s: property From: musa...@gmail.com To: user@struts.apache.org do something like: s:set var=myId

Nothing found to display from display tag with struts 2

2009-07-11 Thread Dimitrios Christodoulakis
Hello list, I am exposing a collection called entries in my action class (SetJournalEntry entries;), with all the appropriate getters and setters. In the result jsp of this action I am using the display tag to output the content of the collection: s:set name=entries value=entries scope=request/

Re: Nothing found to display from display tag with struts 2

2009-07-11 Thread Dimitrios Christodoulakis
Yes, thanks for pointing out. The s:set / tag is not required so I removed it and it works. Kind of wondering how the display tag reaches the valuestack though, or does it access the first property it finds in the scope? Thanks On Sat, Jul 11, 2009 at 12:26 PM, dustydustin_pea...@yahoo.com

Re: Nothing found to display from display tag with struts 2

2009-07-11 Thread dusty
That sounds like a troubling one, based on what you describe it should work. Especially if the struts iterator works on the same JSP page. What version of Struts and DisplayTag are you using. There was a time when you had to use the s:set / tag and a time when you did not. Have you tried

updating or deleting a component from a collection through display tag

2009-07-11 Thread Dimitrios Christodoulakis
Hello list, I have successfully used the display tag to iterate over a collection which is exposed in an action class. On each row in addition to the columns displaying the fields of each object in the collection, I embed two more struts-tag urls: Update and Remove. The objective is to have an

Re: Nothing found to display from display tag with struts 2

2009-07-11 Thread Wes Wannemacher
On Saturday 11 July 2009 14:02:15 Dimitrios Christodoulakis wrote: Yes, thanks for pointing out. The s:set / tag is not required so I removed it and it works. Kind of wondering how the display tag reaches the valuestack though, or does it access the first property it finds in the scope? I

JSP Recursion and the Struts include Tag

2009-07-11 Thread Anthony Frasso
Hello all, and thank you in advance. I'm relatively new to struts 2, as I started working with the framework about 6 months ago on a part time basis. I'm struggling to solve a problem that I would think would be fairly common: displaying a tree within a JSP. Essentially, I have an object (let's

Re: JSP Recursion and the Struts include Tag

2009-07-11 Thread Avlesh Singh
Never thought of using a taglib? Cheers Avlesh On Sun, Jul 12, 2009 at 8:49 AM, Anthony Frasso a...@cornell.edu wrote: Hello all, and thank you in advance. I'm relatively new to struts 2, as I started working with the framework about 6 months ago on a part time basis. I'm struggling to

Re: JSP Recursion and the Struts include Tag

2009-07-11 Thread Anthony Frasso
Thank you for the quick response Avlesh! Again, I'm somewhat new to Struts, so I'm not sure I understand your suggestion. Is there a taglib out there that handles this sort of thing? Or are you suggesting writing a custom taglib? Regards, Anthony Frasso On Sat, Jul 11, 2009 at 23:22, Avlesh

Re: JSP Recursion and the Struts include Tag

2009-07-11 Thread Avlesh Singh
Yes, I am suggesting to write a custom taglib. Cheers Avlesh On Sun, Jul 12, 2009 at 8:55 AM, Anthony Frasso a...@cornell.edu wrote: Thank you for the quick response Avlesh! Again, I'm somewhat new to Struts, so I'm not sure I understand your suggestion. Is there a taglib out there that

Re: JSP Recursion and the Struts include Tag

2009-07-11 Thread Dale Newfield
Anthony Frasso wrote: ...recursion... ...s:include... I'd suggest looking into .tag files: http://onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: XML Validation

2009-07-11 Thread Dave Newton
Muhammad Owais wrote: Dear All; I wnat to validate a String that is similare to 1,102,Y.I was trying to implement it, but it is not working. field property=scheduleDateStr depends=requiredif arg0 key=label.scheduleDateStr / var