Re: looping on a list of lists (or accessing custom attributes of a list)

2006-06-03 Thread Luca Passani
Martin Cooper wrote: Hmm... ;-) Two suggestions: 1) Instead of extending ArrayList, just encapsulate it. In other words, add a property to LinkWithIconList for the list, so that you can access the list explicitly using ${sub_list.list} or something. This seems like the simplest approach.

Re: looping on a list of lists (or accessing custom attributes of a list)

2006-06-03 Thread Martin Cooper
On 6/3/06, Luca Passani <[EMAIL PROTECTED]> wrote: Hi guys, here is my big problem today. I have a list the items of two kinds (with and without icons) which gets turned into a list of lists. [x , x, y, x,y, y, y, y,x, x,y] becomes [[x,x],[y],[x],[y,y,y,y],[x],[y]] When I render the list of

looping on a list of lists (or accessing custom attributes of a list)

2006-06-03 Thread Luca Passani
Hi guys, here is my big problem today. I have a list the items of two kinds (with and without icons) which gets turned into a list of lists. [x , x, y, x,y, y, y, y,x, x,y] becomes [[x,x],[y],[x],[y,y,y,y],[x],[y]] When I render the list of lists in my JSP, I need to understand which kind

AW: AW: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Olaf Bergner
von Robert Simmons Jr. > Gesendet: Dienstag, 4. Januar 2005 18:53 > An: taglibs-user@jakarta.apache.org > Betreff: Re: AW: AW: Newbie Question: EL in attributes for a custom tag > not being evaluated?? > > > Olaf; > > I did what you said but now Im getting a transient erro

Re: AW: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Hassan Schroeder
Robert Simmons Jr. wrote: I changed the web.xml as you suggested but now the JSTL tags blow so I obviously need a version of the JSTL that works with 2.4. Which Jakarta taglibs version works with that ? On the left menu you'll see JCP Standardized

Re: AW: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
news [mailto:[EMAIL PROTECTED] Auftrag von Robert Simmons Jr. Gesendet: Dienstag, 4. Januar 2005 17:00 An: taglibs-user@jakarta.apache.org Betreff: Re: AW: Newbie Question: EL in attributes for a custom tag not being evaluated?? Addendum: My web.xml is here ... http://ja

Re: AW: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
karta.apache.org Betreff: Re: AW: Newbie Question: EL in attributes for a custom tag not being evaluated?? Addendum: My web.xml is here ... http://java.sun.com/dtd/web-app_2_3.dtd";> Apache-Axis org.apache.axis.transport.http.AxisHTTPSessionList ener Main Data Source j

Re: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Kris Schneider
responsibility > >to evaluate EL expressions in JSP 2.0 this is the servlet container's job. > >That's exactly why tags which call themselves EL enabled usually won't work > >in a JSP 2.0 environment. These tags handle EL evaluation intern

AW: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Olaf Bergner
Robert Simmons Jr. > Gesendet: Dienstag, 4. Januar 2005 17:00 > An: taglibs-user@jakarta.apache.org > Betreff: Re: AW: Newbie Question: EL in attributes for a custom tag not > being evaluated?? > > > Addendum: > > My web.xml is here ... > > &g

Re: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
53 An: Tag Libraries Users List Betreff: Re: Newbie Question: EL in attributes for a custom tag not being evaluated?? Robert, Since it looks like you're using javax.servlet.jsp.tagext.SimpleTagSupport, I'll assume your're running on a JSP 2.0 container. I haven't looked closely at the

Re: AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
his makes things a little clearer, Olaf -Ursprüngliche Nachricht- Von: Kris Schneider [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 4. Januar 2005 13:53 An: Tag Libraries Users List Betreff: Re: Newbie Question: EL in attributes for a custom tag not being evaluated?? Robert,

AW: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Olaf Bergner
; Gesendet: Dienstag, 4. Januar 2005 13:53 > An: Tag Libraries Users List > Betreff: Re: Newbie Question: EL in attributes for a custom tag not > being evaluated?? > > > Robert, > > Since it looks like you're using > javax.servlet.jsp.tagext.SimpleTagSupport, I'll

Re: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Kris Schneider
b newbie and I have a problem. Namely when I use EL > expressions in my tag attributes, they get passed verbatim to the tag > and never evaluated. > > For example, if I use: > > descriptionVar="subDesc"/> > > Then targetID gets passed the literal string ${subID} w

Re: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
Shetty Robert Simmons Jr. wrote: Greetings; I have a tag that I created to allow integration with my back end. I am using the Jakarta astandard taglibs extensively in the application but I am a bit of a taglib newbie and I have a problem. Namely when I use EL expressions in my tag attributes, they

Re: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Keshav Shetty
reetings; I have a tag that I created to allow integration with my back end. I am using the Jakarta astandard taglibs extensively in the application but I am a bit of a taglib newbie and I have a problem. Namely when I use EL expressions in my tag attributes, they get passed verbatim to the tag an

Re: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
etings; I have a tag that I created to allow integration with my back end. I am using the Jakarta astandard taglibs extensively in the application but I am a bit of a taglib newbie and I have a problem. Namely when I use EL expressions in my tag attributes, they get passed verbatim to the tag and n

Re: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
am a bit of a taglib newbie and I have a problem. Namely when I use EL expressions in my tag attributes, they get passed verbatim to the tag and never evaluated. For example, if I use: Then targetID gets passed the literal string ${subID} which causes the page to explode since targetID needs to be

Re: Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Keshav Shetty
egards Keshav Shetty Robert Simmons Jr. wrote: Greetings; I have a tag that I created to allow integration with my back end. I am using the Jakarta astandard taglibs extensively in the application but I am a bit of a taglib newbie and I have a problem. Namely when I use EL expressions in my tag

Newbie Question: EL in attributes for a custom tag not being evaluated??

2005-01-04 Thread Robert Simmons Jr.
Greetings; I have a tag that I created to allow integration with my back end. I am using the Jakarta astandard taglibs extensively in the application but I am a bit of a taglib newbie and I have a problem. Namely when I use EL expressions in my tag attributes, they get passed verbatim to the

Re: Adding attributes to an XML element in JSTL

2004-05-24 Thread Murray Lang
Struts helps if I re-start the whole application from scratch. It's not a bad fit for what I'm doing, but it seemed to me when I was initially looking at the options that JSTL would be sufficient. It didn't seem sensible to complicate a fairly simple application with all the Struts fiddly bits.

Re: Adding attributes to an XML element in JSTL

2004-05-24 Thread Kris Schneider
I'm not sure how Struts is going to help you here. IIRC, you wanted to update a cached document with values from request parameters, or at least represent the request parameters as a document, is that right? If so, it seems like the place to do that sort of thing would be in a Servlet Filter. Depen

Re: Adding attributes to an XML element in JSTL

2004-05-23 Thread Murray Lang
tion layer (where you probibly shouldn't be placing such logic). http://jakarta.apache.org/commons/jxpath/ Good Luck -Mark Murray Lang wrote: Hi I've been using the XML tags in JSTL and found them very useful, however now I need to add an attribute to an XML element and have hit a brick wa

Re: Adding attributes to an XML element in JSTL

2004-05-12 Thread Murray Lang
add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL view of bean properti

Re: Adding attributes to an XML element in JSTL

2004-05-12 Thread Murray Lang
r now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL

Re: Adding attributes to an XML element in JSTL

2004-05-12 Thread Pierre Delisle
: Hi I've been using the XML tags in JSTL and found them very useful, however now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementa

Re: Adding attributes to an XML element in JSTL

2004-05-12 Thread Pierre Delisle
he XML tags in JSTL and found them very useful, however now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't le

Re: Adding attributes to an XML element in JSTL

2004-05-10 Thread Murray Lang
ever now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL

Re: Adding attributes to an XML element in JSTL

2004-05-09 Thread Murray Lang
; >> shouldn't be placing such logic). > >> > >> http://jakarta.apache.org/commons/jxpath/ > >> > >> Good Luck > >> -Mark > >> > >> Murray Lang wrote: > >> > >>> Hi > >>> I've been using the XM

Re: Adding attributes to an XML element in JSTL

2004-05-09 Thread Murray Lang
lement and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL view of bean properties. It seems to me that

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Mark R. Diggory
ribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL view of bean properties. It

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Kris Schneider
JSP, Servlet or Struts Action, which gives you the fredom to move it out of the Presentation layer (where you probibly shouldn't be placing such logic). http://jakarta.apache.org/commons/jxpath/ Good Luck -Mark Murray Lang wrote: Hi I've been using the XML tags in JSTL and found t

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Kris Schneider
ul, however now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple E

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Mark R. Diggory
h/ Good Luck -Mark Murray Lang wrote: Hi I've been using the XML tags in JSTL and found them very useful, however now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is im

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Mark R. Diggory
c). http://jakarta.apache.org/commons/jxpath/ Good Luck -Mark Murray Lang wrote: Hi I've been using the XML tags in JSTL and found them very useful, however now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM obje

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Mark R. Diggory
od Luck -Mark Murray Lang wrote: Hi I've been using the XML tags in JSTL and found them very useful, however now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-depen

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Kris Schneider
apache.org/commons/jxpath/ > >> > >> Good Luck > >> -Mark > >> > >> Murray Lang wrote: > >> > >>> Hi > >>> I've been using the XML tags in JSTL and found them very useful, > >>> however now I need to add an

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Kris Schneider
n of the > >>content of a DOM object. the nice thing is that JXPath can be scripted > >>into a JSP, Servlet or Struts Action, which gives you the fredom to move > >>it out of the Presentation layer (where you probibly shouldn't be > >>placing such lo

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Stefan Frank
ect as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL view of bean properties. It seems to me that needs to have a "target"attribute along the same lines as , but accepting an XP

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Murray Lang
;ve tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL view of bean properties. It seems to me that needs to have a "target"attri

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Murray Lang
in JSTL and found them very useful, however > now I need to add an attribute to an XML element and have hit a brick wall. > > I've tried using and EL, treating a DOM object as a bean, but the > DOM interface is implementation-dependent and my implementation (xerces) > doesn&#

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Mark R. Diggory
it a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the simple EL view of bean properties. It seems to me that needs to have a

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Kris Schneider
ow I need to add an attribute to an XML element and have hit > > a brick wall. > > > > I've tried using and EL, treating a DOM object as a bean, but > > the DOM interface is implementation-dependent and my implementation > > (xerces) doesn't lend itself

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Mark R. Diggory
ery useful, however now I need to add an attribute to an XML element and have hit a brick wall. I've tried using and EL, treating a DOM object as a bean, but the DOM interface is implementation-dependent and my implementation (xerces) doesn't lend itself to adding attributes with the sim

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Kris Schneider
> I've tried using and EL, treating a DOM object as a bean, but the > DOM interface is implementation-dependent and my implementation (xerces) > doesn't lend itself to adding attributes with the simple EL view of bean > properties. > > It seems to me that needs to h

Adding attributes to an XML element in JSTL

2004-05-05 Thread Murray Lang
on (xerces) doesn't lend itself to adding attributes with the simple EL view of bean properties. It seems to me that needs to have a "target"attribute along the same lines as , but accepting an XPath expression. eg where: - select can be either an XPath expression or an immediate

Re: Variables for attributes in own tags

2004-01-05 Thread Martin Cooper
On Mon, 5 Jan 2004, Matthias Winkler wrote: > Hello, > > I have some tags that create X+V form elements (mixed > XHTML and VXML). To name my form elements I want to > use names passed by an application. They are available > inside a bean. (struts application - values passed by > action form) > Alo

Variables for attributes in own tags

2004-01-05 Thread Matthias Winkler
Hello, I have some tags that create X+V form elements (mixed XHTML and VXML). To name my form elements I want to use names passed by an application. They are available inside a bean. (struts application - values passed by action form) Along with the name more information is passed on to the user.

Re: AW: Multiple attributes within an element - Is this a legal thingto do?

2003-10-20 Thread Mark R. Diggory
e the XML standard then your tags cannot be used in JSP's which adhere to XML standards. In a world where designs are rapidly moving towards XML (with the introduction of EL and jsp tags to replace <%%> scriptlets, thinking ahead would be a wise thing to do. At least multiple at

AW: Multiple attributes within an element - Is this a legal thingto do?

2003-10-20 Thread Frank Börncke
Thanks for your reply. >Sorry, from all my understanding, thats just not allowed in XML. JSP looks like XML but is it required for JSP to exactly match the XML restrictions? At least multiple attributes work in Tomcat 4.1.12 quite fine. If I use this feature(?) in our project, I am am not s

Re: Multiple attributes within an element - Is this a legal thing to do?

2003-10-20 Thread Mark R. Diggory
Sorry, from all my understanding, thats just not allowed in XML. Attributes always have to be unique keys. When trying to build "sets" on a "key" I would recommend separate nested tags You can make a "public Collection getDefineset()" method in th

Multiple attributes within an element - Is this a legal thing to do?

2003-10-20 Thread Frank Börncke
Hello, defining a custom tag "DEFINESET" in a taglib having an attribute called ELEMENT we want to use this attribute multiple times as follows: Deployed in a Tomcat environment this results in multiple calls of the setter 'setELEMENT'. This allows us to collect the elements in e.g. a HashSet.

Re: attributes..

2003-07-29 Thread Rick Ross
Thanks.. I just wrapped the xpath in the string function Which did the trick - Original Message - From: "James Smith" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 7:12 AM Subject

Re: attributes..

2003-07-29 Thread James Smith
Oops! That example I sent was supposed to have a To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 8:31 PM Subject: X: attributes.. I'm trying to use the value of an xml attribute in calculations later on in the page. Perhaps I'm mistaken, but given the following xml:

Re: attributes..

2003-07-29 Thread James Smith
July 28, 2003 8:31 PM Subject: X: attributes.. I'm trying to use the value of an xml attribute in calculations later on in the page. Perhaps I'm mistaken, but given the following xml: and the following JSP: SELECT * FROM orders WHERE date = ? I get no

Re: attributes..

2003-07-28 Thread Rick Ross
As a follow up, all of the XPath testers I have used return a simple string for that Xpath statement. - Original Message - From: "Rick Ross" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 8:31 PM Subject: X: attributes.. I'm trying

X: attributes..

2003-07-28 Thread Rick Ross
I'm trying to use the value of an xml attribute in calculations later on in the page. Perhaps I'm mistaken, but given the following xml: and the following JSP: SELECT * FROM orders WHERE date = ? I get no rows returned. I realize that the x:set is settin

RE: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Steve Raeburn
st > Subject: Re: Accessing scope attributes with dotted names using JSTL > > As shown by all emails on the topic, accessing scoped variables with a > dotted name is not as easy as it should be right out of the box. > > I'll submit the issue to the JSP spec leads to see if may

Re: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Pierre Delisle
Serge Knystautas wrote: Steve Raeburn wrote: Thanks, but that's not what I'm trying to accomplish. It's very common to place beans into session or application scopes with names such as "org.apache.struts.action.ACTION_MESSAGE". This is similar to the Java package naming convention and accomplish

Re: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Pierre Delisle
Serge Knystautas wrote: Steve Raeburn wrote: Thanks, but that's not what I'm trying to accomplish. It's very common to place beans into session or application scopes with names such as "org.apache.struts.action.ACTION_MESSAGE". This is similar to the Java package naming convention and accomplish

Re: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Serge Knystautas
Steve Raeburn wrote: Thanks, but that's not what I'm trying to accomplish. It's very common to place beans into session or application scopes with names such as "org.apache.struts.action.ACTION_MESSAGE". This is similar to the Java package naming convention and accomplishes the same purpose of avo

RE: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Karr, David
does not seem to be addressed. As this is a very common requirement, > I'm surprised that it's not covered. > > Steve > > > > -Original Message- > > From: Daniel Montero [mailto:[EMAIL PROTECTED] > > Sent: June 5, 2003 10:24 AM > > To: Tag Libraries

RE: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Steve Raeburn
EMAIL PROTECTED] > Sent: June 5, 2003 10:24 AM > To: Tag Libraries Users List; [EMAIL PROTECTED] > Subject: Re: Accessing scope attributes with dotted names using JSTL > > > You could access a variable as ${mydomain.mybean} if you created a bean > "mydomain" (Hashtable, for

Re: Accessing scope attributes with dotted names using JSTL

2003-06-06 Thread Daniel Montero
You could access a variable as ${mydomain.mybean} if you created a bean "mydomain" (Hashtable, for example), and set any attributes you want there. <% Hashtable mydomainVar = new Hashtable(); String mybeanVariable="this is a test"; mydomainVar.put("mybean", mybe

RE: Accessing scope attributes with dotted names using JSTL

2003-06-05 Thread Steve Raeburn
No. I wanted to use the EL if possible. I guess I could use this as a last resort. Thanks for pointing it out. Steve > -Original Message- > From: N. Chen [mailto:[EMAIL PROTECTED] > Sent: June 4, 2003 1:27 PM > To: Tag Libraries Users List > Subject: Re: Accessing scope

Re: Accessing scope attributes with dotted names using JSTL

2003-06-05 Thread N. Chen
have you try > I asked this on the list awhile back and surprisingly the answer was no > [short of writing one's own taglib to get it done]. > > See http://marc.theaimsgroup.com/?l=taglibs-user&m=104939902508483&w=2 > > Brian > > > > > > >

Re: Accessing scope attributes with dotted names using JSTL

2003-06-05 Thread Brian Buckley
> Is there any way to do it without specifying the scope? > As in http://marc.theaimsgroup.com/?l=taglibs-user&m=104939902508483&w=2 Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: Accessing scope attributes with dotted names using JSTL

2003-06-05 Thread Steve Raeburn
: Accessing scope attributes with dotted names using JSTL > > > Try this: > > > > > "requestScope" is an EL implicit object. > > Bruce > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Accessing scope attributes with dotted names using JSTL

2003-06-04 Thread Bruce Perry
Try this: "requestScope" is an EL implicit object. Bruce On Wednesday, June 4, 2003, at 05:10 AM, Steve Raeburn wrote: Is it possible to access a scoped attribute if the attribute name contains a dot? For example, if I set a request attribute: request.setAttribute("mydomain.mybean", bean)

Accessing scope attributes with dotted names using JSTL

2003-06-04 Thread Steve Raeburn
Is it possible to access a scoped attribute if the attribute name contains a dot? For example, if I set a request attribute: request.setAttribute("mydomain.mybean", bean); I'd like to access it like this:

RE: attributes required but not both.

2003-02-25 Thread Karr, David
2003 2:02 PM > To: Tag Libraries Users List > Subject: RE: attributes required but not both. > > 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 ha

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 pseud

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? Th

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 presen

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: Attributes with Spaces in Their Names

2003-02-20 Thread Karr, David
Yes. In this case, you could use: '${applicationScope["theRestaurantCollectionPacific Rim"].collection}' > -Original Message- > From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 12:35 PM > To: Taglibs > Subject: At

RE: Attributes with Spaces in Their Names

2003-02-19 Thread Jerome Jacobsen
I very much doubt it. Have you tried something like this? <% pageContext.setAttribute("theCollectionPacificRim", pageContext.findAttribute("theCollection PacificRim")); %> mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 3:35 PM > To: Ta

Re: Attributes with Spaces in Their Names

2003-02-19 Thread Hans Bergsten
Hunter Hillegas wrote: One of the applications I am working on has application scope attributes that have spaces in their names, such as: "theCollection PacificRim". When accessing from JSTL's forEach tag, I get this: 'forEach' / attribute = 'items': An

Attributes with Spaces in Their Names

2003-02-19 Thread Hunter Hillegas
One of the applications I am working on has application scope attributes that have spaces in their names, such as: "theCollection PacificRim". When accessing from JSTL's forEach tag, I get this: 'forEach' / attribute = 'items': An error occurred while parsing c

Re: JSTL and boolean Attributes ???

2003-01-22 Thread Travis McCauley
This should work. Do you get an exception? What is it? Are you sure checker refers to a scoped variable that exists? Here's a handy way I use to check that the object is there. If checker indeed references an object you should get some hex output as if you called toString() on the object lik

Re: JSTL and boolean Attributes ???

2003-01-22 Thread Martin Cooper
Where is your 'checker' object, and how did you create it and put it there? -- Martin Cooper On Wed, 22 Jan 2003, Leif Hanack wrote: > Hello, > > i want to access a boolean attribute through JSTL. > > If my class looks like: > > class Checker { > private boolean m_isValid = false; > >

Re: JSTL and boolean Attributes ???

2003-01-22 Thread Pierre Delisle
This should work. Do you get an exception? What is it? Are you sure checker refers to a scoped variable that exists? -- Pierre Leif Hanack wrote: > > Hello, > > i want to access a boolean attribute through JSTL. > > If my class looks like: > > class Checker { > private boolean

RE: JSTL and boolean Attributes ???

2003-01-22 Thread Wendy Smoak
> Out of curiosity, have you tried ? > Maybe it will recognise the 'is' prefix and not turn it into getIsValid. Me again. Does this work? Valid! Invalid Perhaps it only knows about the 'is' construct when it is expecting a boolean value? -- Wendy Smoak Applications Syst

RE: JSTL and boolean Attributes ???

2003-01-22 Thread Wendy Smoak
Leif wrote: > i want to access a boolean attribute through JSTL. > If my class looks like: > class Checker { > private boolean m_isValid = false; > > public void setValid( boolean p_isValid ) { > m_isValid = p_isValid; > } > > public boolean isValid() { >

RE: JSTL and boolean Attributes ???

2003-01-22 Thread Jerome Jacobsen
I think it should work too. Perhaps changing the isValid to getValid would fix it. What error are you getting? > -Original Message- > From: Leif Hanack [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 11:24 AM > To: [EMAIL PROTECTED] > Subject: JSTL and boo

JSTL and boolean Attributes ???

2003-01-22 Thread Leif Hanack
Hello, i want to access a boolean attribute through JSTL. If my class looks like: class Checker { private boolean m_isValid = false; public void setValid( boolean p_isValid ) { m_isValid = p_isValid; } public boolean isValid() {

RE: Issue in giving runtime expression for custom tag attributes

2002-09-27 Thread Gideon, Thomas
> To: Tag Libraries Users List > Subject: Re: Issue in giving runtime expression for custom tag > attributes > > > > I do not know off hand what the relevant JSP spec says > about runtime > > expressions in tag attributes (maybe Hans can chime in, if he's on >

Re: Issue in giving runtime expression for custom tag attributes

2002-09-27 Thread Hans Bergsten
> I do not know off hand what the relevant JSP spec says about runtime > expressions in tag attributes (maybe Hans can chime in, if he's on > this list), [...] He is :-) All you say is correct. The only thing I can add is that the JSP spec says that mixing scripting expressi

RE: Issue in giving runtime expression for custom tag attributes

2002-09-27 Thread Gideon, Thomas
I do not know off hand what the relevant JSP spec says about runtime expressions in tag attributes (maybe Hans can chime in, if he's on this list), but what you described matches my experience under the web container provided by Weblogic 6.1. It should be trivial, especially in the exampl

Issue in giving runtime expression for custom tag attributes

2002-09-27 Thread shanmugampl
Hi All, I am developing some custom tags for my application. For one of my tag attributes i have the rtexprvalue set to true. The following scenario does not work Usage: <% String userName = "Shan" %> When i see the generated code, the value for userName is not re

RE: Using Dynamic Variables as Attributes for Custom Tags...?

2002-06-03 Thread Shawn Bayern
On Mon, 3 Jun 2002, Hughes, Matt wrote: > > If the latter, and you're really using the JSTL tags to perform the > > No that is the real code. I'm not using the SQL Tags from Jakarta... Just FYI -- Be careful not to confuse DBTags from Jakarta Taglibs with the JSP Standard Tag Library (JSTL).

RE: Using Dynamic Variables as Attributes for Custom Tags...?

2002-06-03 Thread Hughes, Matt
uated within it...ie <%= parameterValue %> ...? -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:44 AM To: Tag Libraries Users List Subject: Re: Using Dynamic Variables as Attributes for Custom Tags...? At 11:23 -0400 6/3/02, Hughes, Matt wrote: &

Re: Using Dynamic Variables as Attributes for Custom Tags...?

2002-06-03 Thread Paul DuBois
At 11:23 -0400 6/3/02, Hughes, Matt wrote: >Ok, so I've got my nesting problem fixed (see below if interested) but I'm >still stuck on one thing. I've got three nested tables: > >Company (primary key: company_id) > Addresses (primary key: address_id) > Contacts (primary key: c

Using Dynamic Variables as Attributes for Custom Tags...?

2002-06-03 Thread Hughes, Matt
Ok, so I've got my nesting problem fixed (see below if interested) but I'm still stuck on one thing. I've got three nested tables: Company (primary key: company_id) Addresses (primary key: address_id) Contacts (primary key: contact_id) So...for each company there could b

Attributes translation time validation

2002-03-07 Thread Thomas Colin de Verdiere
Hi, Does the jsp container have to validate attribute : and i have in my tag public void setAttr1(int value) {attr1 = value;} for example what happen if i put In my tag i expected an int but the attribute attr1 value is a string. About validation what are the keys to make validation ( and te

Re: Newlines in attributes

2002-01-29 Thread bayard
Of course, there is: Which seems a bit bad. Bay On Tue, 29 Jan 2002 [EMAIL PROTECTED] wrote: > > In my example for the string-taglib, I stupidly gave an example of: > > > > without testing. Where db:get is a hypothetical tag creating data. > The example doesn't work because the \n in the t

Newlines in attributes

2002-01-29 Thread bayard
In my example for the string-taglib, I stupidly gave an example of: without testing. Where db:get is a hypothetical tag creating data. The example doesn't work because the \n in the tag gets turned into a normal 'n' before it hits the Tag object. Is there a way to solve this that I am missin

Taglibs with attributes using iPlanet

2001-11-14 Thread Yoli
Hi all. I am trying to develop taglibs using iPlanet. The problem is the following: Although i can execute taglibs without attributes correctly when trying to execute one with attributes i have the following sequence of errors: [14/nov/2001:13:19:57] info ( 353): Internal Info: loading servlet

Re: Custom attributes and nested tags

2001-01-29 Thread Richard Sand
y and doAfterBody methods: pageContext.setAttribute(getVarName(), new Integer(count)); That's about it. It works fine. Hope this helps. Best regards, Richard - Original Message - From: "Alex Tang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Mond