RE: attributes required but not both.

2003-02-25 Thread Karr, David
You would have to have both set to "false", correct. You don't actually "run" the "isValid" method, the JSP translator will run that for you. > -Original Message- > From: Jeff Born [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 2:02 PM > To: Tag Libraries Users List > Subjec

RE: attributes required but not both.

2003-02-25 Thread Dave Newton
On Tue, 2003-02-25 at 17:02, Jeff Born wrote: > Is it best practices to have both attributes have a "false" required > attribute and then run isValid() to check if one or the other was supplied? I think you'd have to, otherwise you'd have to decide which one was pseudo-required, and that would pro

RE: attributes required but not both.

2003-02-25 Thread Jeff Born
Cool thanks for the information. One point of clarification after looking at the sparse information I could find on the web is: Is it best practices to have both attributes have a "false" required attribute and then run isValid() to check if one or the other was supplied? Thanks, jb

RE: attributes required but not both.

2003-02-25 Thread Karr, David
Well, if you want to validate this at translation time, then I guess a "TagExtraInfo" class would do it. This will have a "isValid()" method, which takes a "TagData" object, which is basically a hashmap of attributes and values. You specify the presence of the TEI class in the TLD. > -Origin

attributes required but not both.

2003-02-25 Thread Jeff Born
I have two attributes that one or the other is required, not both. Where do I define this? I know I read this is possible, but haven't been able to figure out where I saw that information. Thanks in advance for any insight into this, Jeff Born

Re: fmt:parseNumber

2003-02-25 Thread Eddie Barna
Thanks it works. Also i found another way around it. Just love JSTL - Original Message - From: "Pierre Delisle" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 8:57 PM Subject: Re: fmt:parseNumber > > > Eddie Barna wrote: > > I thoug

Re: Session

2003-02-25 Thread Sloan Seaman
Cool. It worked. Thanks! - Original Message - From: "Karr, David" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 12:15 PM Subject: RE: Session Use the JSTL. It would be as simple as this: Or if you wanted to make sure you

RE: Session

2003-02-25 Thread Karr, David
Use the JSTL. It would be as simple as this: Or if you wanted to make sure you got it from session scope: > -Original Message- > From: Sloan Seaman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 9:16 AM > To: [EMAIL PROTECTED] > Subject: Session > > What is the bes

Session

2003-02-25 Thread Sloan Seaman
What is the best way to get an object out of the session? The session taglib only has the tag which will print it. I want to do more along the lines of: I have written my own tag to do this but I ma curious if there are any apache tags to do this and if not, why? You can store more than