[ANN] Apache Jakarta Log Taglib release

2003-01-13 Thread Henri Yandell

The Apache Jakarta Taglibs project would like to announce the release of
the Log Taglib. Version 1.0 of the Log Taglib is compiled against the
latest version of Apache's Log4j project [version 1.2.7] and provides
access for JSP developers to write to application logs.

More information may be obtained at the Log Taglib homepage:

http://jakarta.apache.org/taglibs/doc/log-doc/intro.html

More information on Log4j may be obtained at:

http://jakarta.apache.org/log4j/


For users not using Log4j as their logging framework, the CVS HEAD version
of the Log Taglib is being upgraded to support Apache Jakarta Commons
Logging instead of Log4j. More information on this can be obtained on the
Jakarta Taglibs Users mail list <[EMAIL PROTECTED]>.


Henri Yandell


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: x:set var

2003-01-13 Thread bbell
Shawn,

Thanks for both the explanation and the "fix."  This is definitely one of
those "du" moments, after reading your explanation.  Works perfectly
now.

Best regards,
Buck Bell


>-- Original Message --
>Reply-To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>Date: Mon, 13 Jan 2003 13:19:57 -0500 (EST)
>From: Shawn Bayern <[EMAIL PROTECTED]>
>To: Tag Libraries Users List <[EMAIL PROTECTED]>
>Subject: Re: x:set var
>
>
>On Mon, 13 Jan 2003 [EMAIL PROTECTED] wrote:
>
>> All,
>>
>> For the life of me, I cannot figure out why the following examples produce
>> different results.  Many thanks in advance if anyone can help.
>>
>> I'm importing an XML doc with the following:
>>
>> 
>>  
>> 
>>
>> If I use
>>
>> 
>>
>> I get the expected result, "157."
>>
>> However, if I use
>>
>> > />
>>
>> 
>>
>> I get, "[[id: null]]".
>>
>> The xPath syntax is obviously correct, as I'm getting the expected
>> result with the x:out tag.  So, any idea what I'm doing wrong when I
>> try to expose the same result in the variable reportID?
>
>The  tag uses the string-value of the element you have selected.

>
> stores the object representing that node itself, and then 
>prints the toString() value of that node -- which, per the DOM API, isn't
>the same thing as what XPath means by "string-value."
>
>To store the value you expect instead of outputting it immediately, you
>should use a pattern like
>
> 
>  
> 
>
>instead of .  Alternatively, you can wrap the XPath expression in
>the string() function and continue to use .
>
>Hope that helps,
>
>--
>Shawn Bayern
>"JSTL in Action"   http://www.manning.com/bayern
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: x:set var

2003-01-13 Thread Shawn Bayern
On Mon, 13 Jan 2003 [EMAIL PROTECTED] wrote:

> All,
> 
> For the life of me, I cannot figure out why the following examples produce
> different results.  Many thanks in advance if anyone can help.
> 
> I'm importing an XML doc with the following:
> 
> 
>   
> 
> 
> If I use
> 
> 
> 
> I get the expected result, "157."
> 
> However, if I use
> 
>  />
> 
> 
> 
> I get, "[[id: null]]".
> 
> The xPath syntax is obviously correct, as I'm getting the expected
> result with the x:out tag.  So, any idea what I'm doing wrong when I
> try to expose the same result in the variable reportID?

The  tag uses the string-value of the element you have selected.  
 stores the object representing that node itself, and then 
prints the toString() value of that node -- which, per the DOM API, isn't
the same thing as what XPath means by "string-value."

To store the value you expect instead of outputting it immediately, you
should use a pattern like

 
  
 

instead of .  Alternatively, you can wrap the XPath expression in
the string() function and continue to use .

Hope that helps,

-- 
Shawn Bayern
"JSTL in Action"   http://www.manning.com/bayern


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




x:set var

2003-01-13 Thread bbell
All,

For the life of me, I cannot figure out why the following examples produce
different results.  Many thanks in advance if anyone can help.

I'm importing an XML doc with the following:





If I use



I get the expected result, "157."

However, if I use





I get, "[[id: null]]".

The xPath syntax is obviously correct, as I'm getting the expected result
with the x:out tag.  So, any idea what I'm doing wrong when I try to expose
the same result in the variable reportID?

Thanks again,
Buck Bell


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can't call the field from a specific table.

2003-01-13 Thread Shawn Bayern
On Mon, 13 Jan 2003, John Engilis wrote:

> 
> Golf
> 
> 
> When I attempt replacing "amenitiesRow.golf" with "amenitiesRow.oa.golf" it
> does not appear to recognize the data (I don't get any errors).

You really mean ${amenitiesRow["oa.golf"]}.  You need to use the []
operator when the name of your property contains a dot.

Your other two choices are to give aliases to the column names in your SQL
statement and to refer to rows by index.  But using ["oa.golf"] is
probably the easiest in your situation.

-- 
Shawn Bayern
"JSTL in Action"   http://www.manning.com/bayern


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Can't call the field from a specific table.

2003-01-13 Thread John Engilis
In a query like the one below there are various fields where the names are
the same, yet they originate from different tables:


SELECT rn.resort_id, oa.all_inclusive, oa.beach, oa.casino,
oa.child_care, oa.cross_country_skiing, oa.fishing, oa.game_room,
oa.grocery_store, oa.hairdresser, oa.health_club, oa.horseback_riding,
oa.housekeeping, oa.lake, oa.laundry, oa.raquetball, oa.scuba,
oa.ski_school, oa.tennis, oa.whirlpool_hottub, oa.boating, oa.shopping,
oa.auto_rental, oa.golf, oa.sauna, oa.restaurant, na.golf, na.auto_rental,
na.restaurant, na.scuba, na.water_skiing, na.cross_country_skiing,
na.boating, na.ski_school, na.medical_facility, na.beach, na.casino,
na.grocery_store, na.health_club, na.horseback_riding, na.fishing,
na.attractions, na.kareoke, na.wind_surfing, na.shopping, na.lake
 FROM resort_name rn
 LEFT JOIN nearby_amenities na ON rn.resort_id = na.resort_id
 LEFT JOIN onsite_amenities oa ON rn.resort_id = oa.resort_id
 WHERE rn.resort_id = ?
 


In jsp I would normally compare the value of the field from a specific table
like so (after putting it into a resultSet and iterating over the data):

<%  variable = rs.getString("oa.golf");
if (variable.equals("T"))  { %>Golf<% } %>

Using JSTL it seems as though I'm no longer able to specify the field from
the table I desire.  After running my query and iterating over the data in a
forEach, I seem to only be able to specify the field name and not the table
abbreviation with it.


Golf


When I attempt replacing "amenitiesRow.golf" with "amenitiesRow.oa.golf" it
does not appear to recognize the data (I don't get any errors).  If anyone
knows of a way I can call the field as "oa.golf" or "na.golf" (specifiying
the table the field is from) using JSTL, it would be greatly appreciated.

John Engilis