Re: Can't concatenate 2 strings together

2002-04-25 Thread Martin Cooper


- Original Message -
From: "Wolfgang Röckelein" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 2:19 AM
Subject: Re: Can't concatenate 2 strings together


> Hi,
>
> Martin Cooper wrote:
> > In JSTL, '+' is a numeric operator only. However, this will do what
> you
> > want:
> >
> > 
>
> In this case this is a solution. However, having a concatening operator
> would be very helpful e.g. when you want to test the result e.g ${(x +
> y) == 'asdfasdfsdf')}.

Yes, I suppose it might be useful in some cases. The operator would have to
be something other than the '+' sign, though, since JSTL wouldn't know what
to do with an expression such as 'x + y' if both 'x' and 'y' were numeric
strings. (Should it add the numbers or concatenate the strings?)

You can still solve the problem you suggested, though, by using an
intermediate:

  
  mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




RE: Discussion forum

2002-04-25 Thread Sandra Cann

You might also have a look at the open source eForum project at
www.jcorporate.com which is based on Struts and Expresso Frameworks. We
would be interested in contributions to work with JSTL.



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




Re: JSTL/Standard not really JSP 1.1?

2002-04-25 Thread martin . cooper

At 02:56 PM 4/25/2002, Lawrence You wrote:
>I think this is more of a labeling issue on the taglibs page than anything 
>else but I'm wondering if there's a way I can get the Standard Taglib to 
>work with JSP 1.1.

I believe at least some of the JSTL tags require features only available in 
JSP 1.2, but I don't know the specifics.

[...snip...]

>So checking with versions of the commercial app servers we're using, it 
>seems like JSP 1.1 is the current version supported by most servers: 
> and double checking with 
>the versions we're using for deployment, looks like that is reality. Even 
>Sun's recent (3/2002) release of iPlanet 6.5 only supports JSP 1.1.

Note that this list is quite out of date. There are at least two containers 
which are listed here as JSP 1.1 but which now support JSP 1.2 (Resin and 
WebLogic). Most likely some others have been upgraded as well.

--
Martin Cooper



>So my choices today seem to be to not use JSTL or to try to see if I can 
>get it to work on JSP 1.1. I think I know what the answer is but is it 
>really possible to use the Standard taglib on JSP 1.1? Perhaps rewrite the 
>JSP 1.2 TLDs into JSP 1.1-compatible TLDs?
>
>-Lawrence
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 




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




Re: JSTL/Standard not really JSP 1.1?

2002-04-25 Thread amishra

This might be good as we are also struggling with this question.  I could
use a scaled version of JSTL ( especially the iterators and conditional
tags) if it is based on JSP1.1.

Asha Mishra,
WebSphere Commerce Suite



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




Re: JSTL/Standard not really JSP 1.1?

2002-04-25 Thread Henri Yandell


I'm sure Shawn will answer this in full, but as a side-topic, is it worth
Jakarta hosting a JSTL-cut-down for JSP 1.1?

Making a JSTL for 1.1 that is as close to the JSTL spec as possible?

On Thu, 25 Apr 2002, Lawrence You wrote:

> I think this is more of a labeling issue on the taglibs page than
> anything else but I'm wondering if there's a way I can get the
> Standard Taglib to work with JSP 1.1.
>
> I started to go down the path of using the "Standard" tag library
> from the daily builds but I'm not so sure I can use it now with what
> I know. I thought it would be compatible with JSP 1.1 simply because
> "Standard" is listed on
>  as being a JSP 1.1 Tag
> Library (on the left side of the page). That was an easy enough
> assumption, but when I got the nightly build last week
> (jakarta-taglibs-20020415.zip), I couldn't get it to work with my app
> server and realized by looking at the TLDs that the library was going
> to require JSP 1.2.
>
> With some more careful reading on
> 
>,
> it says "JSTL 1.0 Beta 2 uses features provided only by the JSP 1.2
> standard draft, so it requires a JSP 1.2 container. We recommend you
> test JSTL with Tomcat 4.0." OK, fair enough.
>
> So checking with versions of the commercial app servers we're using,
> it seems like JSP 1.1 is the current version supported by most
> servers:  and double
> checking with the versions we're using for deployment, looks like
> that is reality. Even Sun's recent (3/2002) release of iPlanet 6.5
> only supports JSP 1.1.
>
> So my choices today seem to be to not use JSTL or to try to see if I
> can get it to work on JSP 1.1. I think I know what the answer is but
> is it really possible to use the Standard taglib on JSP 1.1? Perhaps
> rewrite the JSP 1.2 TLDs into JSP 1.1-compatible TLDs?
>
> -Lawrence
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




JSTL/Standard not really JSP 1.1?

2002-04-25 Thread Lawrence You

I think this is more of a labeling issue on the taglibs page than 
anything else but I'm wondering if there's a way I can get the 
Standard Taglib to work with JSP 1.1.

I started to go down the path of using the "Standard" tag library 
from the daily builds but I'm not so sure I can use it now with what 
I know. I thought it would be compatible with JSP 1.1 simply because 
"Standard" is listed on 
 as being a JSP 1.1 Tag 
Library (on the left side of the page). That was an easy enough 
assumption, but when I got the nightly build last week 
(jakarta-taglibs-20020415.zip), I couldn't get it to work with my app 
server and realized by looking at the TLDs that the library was going 
to require JSP 1.2.

With some more careful reading on
,
 
it says "JSTL 1.0 Beta 2 uses features provided only by the JSP 1.2 
standard draft, so it requires a JSP 1.2 container. We recommend you 
test JSTL with Tomcat 4.0." OK, fair enough.

So checking with versions of the commercial app servers we're using, 
it seems like JSP 1.1 is the current version supported by most 
servers:  and double 
checking with the versions we're using for deployment, looks like 
that is reality. Even Sun's recent (3/2002) release of iPlanet 6.5 
only supports JSP 1.1.

So my choices today seem to be to not use JSTL or to try to see if I 
can get it to work on JSP 1.1. I think I know what the answer is but 
is it really possible to use the Standard taglib on JSP 1.1? Perhaps 
rewrite the JSP 1.2 TLDs into JSP 1.1-compatible TLDs?

-Lawrence


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




Re: getColumn

2002-04-25 Thread Shawn Bayern

On Thu, 25 Apr 2002, Carole E. Mah wrote:

> I forgot to state the most obvious fact when I posted this just now.
> 
> The crux of the problem is that I want to access the object (or String if
> I cast it using Morgan's example) inside template content (i.e. inside a
> plain HTML attribute value) rather than inside a tag from a tag library.
> 
> (i.e. I want to essentially say:
>   $myValue
> )
> 
> It does not seem like this is possible.

Right - this is not possible under JSP 1.2; there's no way to handle it
consistently with the current version of JSP.  JSP 1.3 will make this
possible; in fact, I'm working now on adding this feature to a working
version of the JSP 1.3 reference implementation.

Shawn


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




Re: getColumn

2002-04-25 Thread Shawn Bayern

DBTags doesn't support the JSTL expression language.  It could, but it
would currently require modifications to DBTags.  If you use JSTL tags,
you can use the expression language, but the syntax is now '${a}', no
longer just '$a'.

Hope that helps,

-- 
Shawn Bayern
"JSP Standard Tag Library"   http://www.jstlbook.com
(coming this summer from Manning Publications)


On Thu, 25 Apr 2002, Carole E. Mah wrote:

> So, then I guess my question is to either Morgan or Shawn.
> 
> Sun's Java Web Services Tutorial
> (http://java.sun.com/webservices/docs/ea1/tutorial/doc/JSTL4.html)
> shows that a typical expression language syntax for accessing an object
> would be to use $ syntax, in their example,
>   
> which is highly preferable to
>   ">
> since the latter is horribly invalid, not well-formed XML, and too verbose
> anyway.
> 
> However, using the DBTags tag library, I have been unable to get the $
> syntax to work and have been forced to resort to the awful nested scriplet
> inside the attribute value.
> 
> Do you Morgan, Shawn, or anyone, have any advice?
> 
> Thank you,
> -Carole
> 
> 
> On Tue, 23 Apr 2002, Morgan Delagrange wrote:
> 
> > Servlet attributes are not Servlets, they are Objects which you access via
> > the getAttribute(String) and findAttribute(String) methods in the Servlet
> > API.  In this case, DBTags assigns your column value to an attribute named
> > "myValue", which you can access via the following scriptlet:
> > 
> > <%
> >String theValue = pageContext.findAttribute("myValue");
> > %>
> > 
> > You might want to look at the Servlet spec for more detail.  Servlet
> > attributes are an integral part of many tag libraries, especially Taglibs'
> > "standard" tag library.
> > 
> > - Morgan
> > 
> > - Original Message -
> > From: "Carole E. Mah" <[EMAIL PROTECTED]>
> > To: "Morgan Delagrange" <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 23, 2002 2:00 PM
> > Subject: Re: getColumn
> > 
> > 
> > >
> > > But I don't have any  definitions in my web.xml, just a
> > >  definition:
> > >
> > >   
> > > http://jakarta.apache.org/taglibs/dbtags
> > > /WEB-INF/tlds/dbtags.tld
> > >   
> > >
> > > So how do I go about creating a special  definition for a class
> > > (dbtags) that is used as a tag library rather than a class I write myself?
> > >
> > > Thanks!
> > > -carole
> > >
> > > On Tue, 23 Apr 2002, Morgan Delagrange wrote:
> > >
> > > > Yes, the "to" attribute of the getColumn tag writes to a Servlet
> > attribute,
> > > > not a scripting variable.  A scripting variable would have been awkward
> > > > because the "to" attribute is optional; by default the tag will simply
> > write
> > > > to the current writer.
> > > >
> > > > - Original Message -
> > > > From: "Carole E. Mah" <[EMAIL PROTECTED]>
> > > > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, April 23, 2002 1:35 PM
> > > > Subject: getColumn
> > > >
> > > >
> > > > >
> > > > > I don't understand how to use the "to" attribute.
> > > > >
> > > > > <%
> > > > >  String myValue = request.getParameter("bar");
> > > > > %>
> > > > >
> > > > > 
> > > > >
> > > > > This is the sort of thing I want to do, I think. But it does not work,
> > > > > i.e. the string "foo" has a value "bar" and that ought to get written
> > over
> > > > > by the value of colName "blort" but it does not.
> > > > >
> > > > > Basically what I want is to get each row value of the 'blort' column
> > from
> > > > > my "blah" DBtable, and write that to an  value.
> > > > >
> > > > > In PHP, this would be:
> > > > > $query = "SELECT farble, blort FROM blah";
> > > > > $my_result = mysql_db_query ($dbname, $query, $linkid);
> > > > > echo "";
> > > > > while ($my_row =mysql_fetch_object($my_result)) {
> > > > > $myValue = $my_row->blort;
> > > > > echo "$myValue
> > > > > }
> > > > > echo "";
> > > > >
> > > > > Clearly "to" writes somewhere other than a scriplet variable.
> > > > >
> > > > > ?? I am not very smart today.
> > > > >
> > > > > Thanks for any advice,
> > > > > -Carole
> > > > >
> > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > > > Carole E. Mah [EMAIL PROTECTED]
> > > > >Senior Programmer/Analyst
> > > > >Brown University Scholarly Technology Group
> > > > >phn 401-863-2669
> > > > >fax 401-863-9313
> > > > > http://www.stg.brown.edu/
> > > > >   personal: http://www.stg.brown.edu/~carolem/
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > 
> > > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > 
> > > > For additional commands, e-mail:
> > 
> > > >
> > > >
> > >
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > Carole E. Mah

Re: getColumn

2002-04-25 Thread Carole E. Mah


I forgot to state the most obvious fact when I posted this just now.

The crux of the problem is that I want to access the object (or String if
I cast it using Morgan's example) inside template content (i.e. inside a
plain HTML attribute value) rather than inside a tag from a tag library.

(i.e. I want to essentially say:
  $myValue
)

It does not seem like this is possible.

-carole

On Thu, 25 Apr 2002, Carole E. Mah wrote:

> 
> So, then I guess my question is to either Morgan or Shawn.
> 
> Sun's Java Web Services Tutorial
> (http://java.sun.com/webservices/docs/ea1/tutorial/doc/JSTL4.html)
> shows that a typical expression language syntax for accessing an object
> would be to use $ syntax, in their example,
>   
> which is highly preferable to
>   ">
> since the latter is horribly invalid, not well-formed XML, and too verbose
> anyway.
> 
> However, using the DBTags tag library, I have been unable to get the $
> syntax to work and have been forced to resort to the awful nested scriplet
> inside the attribute value.
> 
> Do you Morgan, Shawn, or anyone, have any advice?
> 
> Thank you,
> -Carole
> 
> 
> On Tue, 23 Apr 2002, Morgan Delagrange wrote:
> 
> > Servlet attributes are not Servlets, they are Objects which you access via
> > the getAttribute(String) and findAttribute(String) methods in the Servlet
> > API.  In this case, DBTags assigns your column value to an attribute named
> > "myValue", which you can access via the following scriptlet:
> > 
> > <%
> >String theValue = pageContext.findAttribute("myValue");
> > %>
> > 
> > You might want to look at the Servlet spec for more detail.  Servlet
> > attributes are an integral part of many tag libraries, especially Taglibs'
> > "standard" tag library.
> > 
> > - Morgan
> > 
> > - Original Message -
> > From: "Carole E. Mah" <[EMAIL PROTECTED]>
> > To: "Morgan Delagrange" <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 23, 2002 2:00 PM
> > Subject: Re: getColumn
> > 
> > 
> > >
> > > But I don't have any  definitions in my web.xml, just a
> > >  definition:
> > >
> > >   
> > > http://jakarta.apache.org/taglibs/dbtags
> > > /WEB-INF/tlds/dbtags.tld
> > >   
> > >
> > > So how do I go about creating a special  definition for a class
> > > (dbtags) that is used as a tag library rather than a class I write myself?
> > >
> > > Thanks!
> > > -carole
> > >
> > > On Tue, 23 Apr 2002, Morgan Delagrange wrote:
> > >
> > > > Yes, the "to" attribute of the getColumn tag writes to a Servlet
> > attribute,
> > > > not a scripting variable.  A scripting variable would have been awkward
> > > > because the "to" attribute is optional; by default the tag will simply
> > write
> > > > to the current writer.
> > > >
> > > > - Original Message -
> > > > From: "Carole E. Mah" <[EMAIL PROTECTED]>
> > > > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, April 23, 2002 1:35 PM
> > > > Subject: getColumn
> > > >
> > > >
> > > > >
> > > > > I don't understand how to use the "to" attribute.
> > > > >
> > > > > <%
> > > > >  String myValue = request.getParameter("bar");
> > > > > %>
> > > > >
> > > > > 
> > > > >
> > > > > This is the sort of thing I want to do, I think. But it does not work,
> > > > > i.e. the string "foo" has a value "bar" and that ought to get written
> > over
> > > > > by the value of colName "blort" but it does not.
> > > > >
> > > > > Basically what I want is to get each row value of the 'blort' column
> > from
> > > > > my "blah" DBtable, and write that to an  value.
> > > > >
> > > > > In PHP, this would be:
> > > > > $query = "SELECT farble, blort FROM blah";
> > > > > $my_result = mysql_db_query ($dbname, $query, $linkid);
> > > > > echo "";
> > > > > while ($my_row =mysql_fetch_object($my_result)) {
> > > > > $myValue = $my_row->blort;
> > > > > echo "$myValue
> > > > > }
> > > > > echo "";
> > > > >
> > > > > Clearly "to" writes somewhere other than a scriplet variable.
> > > > >
> > > > > ?? I am not very smart today.
> > > > >
> > > > > Thanks for any advice,
> > > > > -Carole
> > > > >
> > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > > > Carole E. Mah [EMAIL PROTECTED]
> > > > >Senior Programmer/Analyst
> > > > >Brown University Scholarly Technology Group
> > > > >phn 401-863-2669
> > > > >fax 401-863-9313
> > > > > http://www.stg.brown.edu/
> > > > >   personal: http://www.stg.brown.edu/~carolem/
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > 
> > > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > 
> > > > For additional commands, e-mail:
> > 
> > > >
> > > >
> > >
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: getColumn

2002-04-25 Thread Carole E. Mah


So, then I guess my question is to either Morgan or Shawn.

Sun's Java Web Services Tutorial
(http://java.sun.com/webservices/docs/ea1/tutorial/doc/JSTL4.html)
shows that a typical expression language syntax for accessing an object
would be to use $ syntax, in their example,
  
which is highly preferable to
  ">
since the latter is horribly invalid, not well-formed XML, and too verbose
anyway.

However, using the DBTags tag library, I have been unable to get the $
syntax to work and have been forced to resort to the awful nested scriplet
inside the attribute value.

Do you Morgan, Shawn, or anyone, have any advice?

Thank you,
-Carole


On Tue, 23 Apr 2002, Morgan Delagrange wrote:

> Servlet attributes are not Servlets, they are Objects which you access via
> the getAttribute(String) and findAttribute(String) methods in the Servlet
> API.  In this case, DBTags assigns your column value to an attribute named
> "myValue", which you can access via the following scriptlet:
> 
> <%
>String theValue = pageContext.findAttribute("myValue");
> %>
> 
> You might want to look at the Servlet spec for more detail.  Servlet
> attributes are an integral part of many tag libraries, especially Taglibs'
> "standard" tag library.
> 
> - Morgan
> 
> - Original Message -
> From: "Carole E. Mah" <[EMAIL PROTECTED]>
> To: "Morgan Delagrange" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 23, 2002 2:00 PM
> Subject: Re: getColumn
> 
> 
> >
> > But I don't have any  definitions in my web.xml, just a
> >  definition:
> >
> >   
> > http://jakarta.apache.org/taglibs/dbtags
> > /WEB-INF/tlds/dbtags.tld
> >   
> >
> > So how do I go about creating a special  definition for a class
> > (dbtags) that is used as a tag library rather than a class I write myself?
> >
> > Thanks!
> > -carole
> >
> > On Tue, 23 Apr 2002, Morgan Delagrange wrote:
> >
> > > Yes, the "to" attribute of the getColumn tag writes to a Servlet
> attribute,
> > > not a scripting variable.  A scripting variable would have been awkward
> > > because the "to" attribute is optional; by default the tag will simply
> write
> > > to the current writer.
> > >
> > > - Original Message -
> > > From: "Carole E. Mah" <[EMAIL PROTECTED]>
> > > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, April 23, 2002 1:35 PM
> > > Subject: getColumn
> > >
> > >
> > > >
> > > > I don't understand how to use the "to" attribute.
> > > >
> > > > <%
> > > >  String myValue = request.getParameter("bar");
> > > > %>
> > > >
> > > > 
> > > >
> > > > This is the sort of thing I want to do, I think. But it does not work,
> > > > i.e. the string "foo" has a value "bar" and that ought to get written
> over
> > > > by the value of colName "blort" but it does not.
> > > >
> > > > Basically what I want is to get each row value of the 'blort' column
> from
> > > > my "blah" DBtable, and write that to an  value.
> > > >
> > > > In PHP, this would be:
> > > > $query = "SELECT farble, blort FROM blah";
> > > > $my_result = mysql_db_query ($dbname, $query, $linkid);
> > > > echo "";
> > > > while ($my_row =mysql_fetch_object($my_result)) {
> > > > $myValue = $my_row->blort;
> > > > echo "$myValue
> > > > }
> > > > echo "";
> > > >
> > > > Clearly "to" writes somewhere other than a scriplet variable.
> > > >
> > > > ?? I am not very smart today.
> > > >
> > > > Thanks for any advice,
> > > > -Carole
> > > >
> > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > > Carole E. Mah [EMAIL PROTECTED]
> > > >Senior Programmer/Analyst
> > > >Brown University Scholarly Technology Group
> > > >phn 401-863-2669
> > > >fax 401-863-9313
> > > > http://www.stg.brown.edu/
> > > >   personal: http://www.stg.brown.edu/~carolem/
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > 
> > > > For additional commands, e-mail:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> 
> > > For additional commands, e-mail:
> 
> > >
> > >
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > Carole E. Mah [EMAIL PROTECTED]
> >Senior Programmer/Analyst
> >Brown University Scholarly Technology Group
> >phn 401-863-2669
> >fax 401-863-9313
> > http://www.stg.brown.edu/
> >   personal: http://www.stg.brown.edu/~carolem/
> >
> >
> 
> 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Carole E. Mah [EMAIL PROTECTED]
   Senior Programmer/Analyst
   Brown University Scholarly Technology Group
   phn 401-863-2669
   fax 401-863-9313
http://www.stg.brown.edu/
  personal: http://www.stg.brown.edu/~carolem/



--
To unsubscribe, e-mail:   

IO Tags....talking to a password protected site

2002-04-25 Thread Rajesh Kalluri manduca

Hi,

I am trying to use the io tags to publish a dynamic jsp page to a static
html thru filewrite, the tag works fine.

Can any one tell me how to pass a username/password when talking to a
password protected site its basic browser based authentication like
htpasswd.


Also this jsp is in the same web application as i am using IO tags, is there
a work around for my problem



http://204.221.75.65/godavari/portal/titulares/PrincipalTxt.jsp"/>


Regards
Rajesh


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




Re: Discussion forum

2002-04-25 Thread Glenn Nielsen

The Jive Forum software is a robust API for online discussion
forums.  I don't know how easily it would integrate in with JSTL.

http://www.jiveforum.com/

Regards,

Glenn

[EMAIL PROTECTED] wrote:

> Does anyone of you know where I can find a discussion forum that
> 
> a) works with JSTL
> b) can be associated to certain pages - we want our users to discuss news
> items, and of course every thread is "glued" to a news item
> c) works with a database (JBDC or JDO)
> 
> Thanks & regards,
> Eric
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



-- 
--
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder|
MOREnet System Programming   |  * if iz ina coment.  |
Missouri Research and Education Network  |  */   |
--


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




RE: Discussion forum

2002-04-25 Thread Shawn Bayern

On Thu, 25 Apr 2002 [EMAIL PROTECTED] wrote:

> Given the stage of the JSTL - I would say no, but looking at the
> specs, I would say this is about 1 day worth of work.

Indeed.  It's actually one of the examples in my upcoming book.  :-)

-- 
Shawn Bayern
"JSP Standard Tag Library"   http://www.jstlbook.com
(coming this summer from Manning Publications)


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




RE: Discussion forum

2002-04-25 Thread ceska

Given the stage of the JSTL - I would say no, but looking at the specs, I would say 
this is about 1 day worth of work.

-chris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 9:41 AM
To: [EMAIL PROTECTED]
Subject: Discussion forum

Does anyone of you know where I can find a discussion forum that

a) works with JSTL
b) can be associated to certain pages - we want our users to discuss news
items, and of course every thread is "glued" to a news item
c) works with a database (JBDC or JDO)

Thanks & regards,
Eric


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

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




RE: doesn't seem to work w/ beta 2

2002-04-25 Thread Shawn Bayern

On Thu, 25 Apr 2002, Matt Raible wrote:

> So what you're saying is that  is the
> recommended syntax.  I can live with this, but is  value="${requestScope.myAttribute}"/> more efficient?

It depends on the container; on Tomcat, it very well might be more
efficient.

-- 
Shawn Bayern
"JSP Standard Tag Library"   http://www.jstlbook.com
(coming this summer from Manning Publications)


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




doesn't seem to work w/ beta 2

2002-04-25 Thread Matt Raible

With the beta 2 release, the following doesn't work:



However, this does:



Is this "as designed" and if so, is this an efficient way - I'd rather
search the specific scope, probably more efficient.

Thanks,

Matt




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




Does jstl provide anything like "request.isUserInRole()"?

2002-04-25 Thread Matt Raible

Does jstl provide anything like "request.isUserInRole()"?  I know I can
use Struts'  or the taglibs  tag,
but wondering if JSTL is providing an equivalent.

Thanks,

Matt



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




Re: doesn't seem to work w/ beta 2

2002-04-25 Thread Shawn Bayern

On Thu, 25 Apr 2002, Matt Raible wrote:

> With the beta 2 release, the following doesn't work:
> 
> 
> 
> However, this does:
> 
> 
> 
> Is this "as designed" and if so, is this an efficient way - I'd rather
> search the specific scope, probably more efficient.

The short answer is "request was changed to requestScope".

The longer answer is that you really should, in most cases, treat all
scopes as a single namespace.  But there are situations where you only
want to retrieve a value if it comes from a specific scope -- hence the
top-level objects.  They've been renamed to pageScope, requestScope,
sessionScope, and applicationScope, as described in the PFD spec.

-- 
Shawn Bayern
"JSP Standard Tag Library"   http://www.jstlbook.com
(coming this summer from Manning Publications)


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




RE: doesn't seem to work w/ beta 2

2002-04-25 Thread Matt Raible

So what you're saying is that  is the
recommended syntax.  I can live with this, but is  more efficient?

Thanks,

Matt

P.S.  Loving JSTL ;)

> -Original Message-
> From: Shawn Bayern [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, April 25, 2002 11:47 AM
> To: Tag Libraries Users List; [EMAIL PROTECTED]
> Subject: Re:  doesn't seem to 
> work w/ beta 2
> 
> 
> On Thu, 25 Apr 2002, Matt Raible wrote:
> 
> > With the beta 2 release, the following doesn't work:
> > 
> > 
> > 
> > However, this does:
> > 
> > 
> > 
> > Is this "as designed" and if so, is this an efficient way - 
> I'd rather 
> > search the specific scope, probably more efficient.
> 
> The short answer is "request was changed to requestScope".
> 
> The longer answer is that you really should, in most cases, 
> treat all scopes as a single namespace.  But there are 
> situations where you only want to retrieve a value if it 
> comes from a specific scope -- hence the top-level objects.  
> They've been renamed to pageScope, requestScope, 
> sessionScope, and applicationScope, as described in the PFD spec.
> 
> -- 
> Shawn Bayern
> "JSP Standard Tag Library"   http://www.jstlbook.com
> (coming this summer from Manning Publications)
> 
> 



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




Re: Mail Tag CC error

2002-04-25 Thread Rich Catlett

The setRecipientTag resets the value of the address to null after each 
use, so the tag itself can bereused.  I don't  know why it is not 
working for you.  I have never used orion.   My suggestion is if you are 
familiar with java to add some System.out.println() to the setRecipient 
tag and check the value of the address variable at different points. 
 Sorry I can't be more helpful.

Rich Catlett

Chris Evans wrote:

>I get the same results with the 20020423 build as with version 1.
>
>I'm running it under Orion 1.5.2, if that's any help.
>The cc parameter, coming from premailer.html to mailer.jsp, is correct.
>
>--
>Web.xml
>--
>
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
>
>   
>   dat
> com.canlink.framework.platform.ProxyServlet
>   
>   
> lm
> 1
>
>com.canlink.framework.platform.RemoteAccessServletlass>
>
>registryPort
>15989
>
>   
>   
>   sendMail
> com.canlink.framework.util.MailServlet
>   
>Mailer Tag Library
>
> Example web application illustrating the use of tag in the "mailer"
> custom tag library for sending mail, from the JAKARTA-TAGLIBS project.
>
>
>index.jsp
>index.html
>index.htm
>
>
>
>http://jakarta.apache.org/taglibs/mailer-1.0
>/WEB-INF/mailer.tld
>
>
>--
>mailer.jsp
>--
>
>
><%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.0"; prefix="mt" %>
><%@ page language="java" %>
> 
>  Example JSP using mailer taglib
> 
> 
> 
> 
> ">
> type="to"><%=request.getParameter("to")%>
> <%=request.getParameter("from")%>
> type="cc"><%=request.getParameter("cc")%>
> <%=request.getParameter("subject")%>
> <%=request.getParameter("message")%>
> 
>   The following errors occured
>   
> 
>   
>   Please back up a page, fix the error and resubmit.
> 
> 
>
> The message has been successfully sent.
> 
>
>--
>
>Chris Evans
>Canlink Interactive Technologies
>www.canlink.com
>Work: 613-549-7883 ext 32
>Cell:613-539-3900
>
>Codito, Ergo Sum
>
>
>- Original Message -
>From: "Chris Evans" <[EMAIL PROTECTED]>
>To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, April 24, 2002 1:28 PM
>Subject: Re: Mail Tag CC error
>
>
>| I picked up version 1.  I'm going to try the latest.
>|
>|
>|
>|
>| Chris Evans
>| Canlink Interactive Technologies
>| www.canlink.com
>| Work: 613-549-7883 ext 32
>| Cell:613-539-3900
>|
>| Codito, Ergo Sum
>|
>|
>| - Original Message -
>| From: "Rich Catlett" <[EMAIL PROTECTED]>
>| To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>| Sent: Wednesday, April 24, 2002 11:00 AM
>| Subject: Re: Mail Tag CC error
>|
>|
>| | How old is the version you are using, that was fixed a while ago..
>| |  Address values in the setRecipient tag are reset to null after each
>use.
>| |
>| | Rich Catlett
>| |
>| | Chris Evans wrote:
>| |
>| | >Hey everybody,
>| | >
>| | >I've setup the mailer tag library example(premailer.html, mailer.jsp)
>and
>| it works, for the most part.  Here's the problem:
>| | >No matter what I put in the CC field, it uses the TO field instead.  Is
>| this a bug?
>| | >
>| | >Thanks,
>| | >
>| | >
>| | >
>| | >Chris Evans
>| | >Canlink Interactive Technologies
>| | >www.canlink.com
>| | >Work: 613-549-7883 ext 32
>| | >Cell:613-539-3900
>| | >
>| | >Codito, Ergo Sum
>| | >
>| | >
>| | >
>| |
>| |
>| |
>| |
>| | --
>| | To unsubscribe, e-mail:
>| 
>| | For additional commands, e-mail:
>| 
>| |
>|
>|
>| --
>| To unsubscribe, e-mail:
>
>| For additional commands, e-mail:
>
>|
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>




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




RE: Mailer Taglib SecurityException

2002-04-25 Thread Renick, Garrel

Derek,

Rich was instructing you to turn on security debug in your Tomcat 
startup options so that any security violations are clearly indicated
in your logs. To do that, modify the startup file for Tomcat. For example, 
I use the following in my starttomcat.bat file so that security.debug is 
set to access, failure:

start %JAVA_HOME%\bin\java.exe -Djava.io.tmpdir=%CATALINA_HOME%\work\temp 
-Dcatalina.home=%CATALINA_HOME% -Djava.security.debug=access,failure 
-Djava.security.manager -Djava.security.policy==%CATALINA_HOME%\conf\catalina.policy 
org.apache.catalina.startup.Bootstrap start -config %CATALINA_HOME%\conf\server.xml > 
%CATALINA_HOME%\logs\jvmstderr.log

Review your startup file and make the appropriate change to the 
-Djava.security.debug option. After you do this, any security violations 
will be clearly indicated in your logs, such as logs/localhost_log.2002-04-24.txt. 
You will see the domain that failed and it should be simple for you to copy 
and paste the needed permission into your catalina.policy file. If you're 
uncertain what to put in your policy, send the offending stack trace 
to the list and I'm sure someone will help.

Regards,
Garrel Renick
[EMAIL PROTECTED]

-Original Message-
From: Derek Doerr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 6:48 PM
To: Tag Libraries Users List
Subject: Re: Mailer Taglib SecurityException



 Rich,
I'm running Tomcat 4.0.2.  I suspect that the security changes that you reference, 
below, should be made to the catalina.policy file.  Do you know what the change would 
be?  Also, do you know where, in the server.xml file I would turn on security 
debugging?
Thanks!
- Derek

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




RE: Using c:import to include the contents of a file

2002-04-25 Thread Matt Raible

Great - thanks again!

> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, April 24, 2002 8:53 PM
> To: Tag Libraries Users List; [EMAIL PROTECTED]
> Subject: Re: Using c:import to include the contents of a file
> 
> 
> Yes, you can do this. You need to use three slashes at the 
> front, so your example would be:
> 
> 
> 
> From the remaining separators, you can use either '/' or '\', 
> but personally I always use '/' because then I don't have to 
> worry about which I can use where.
> 
> --
> Martin Cooper
> 
> 
> - Original Message -
> From: "Matt Raible" <[EMAIL PROTECTED]>
> To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 24, 2002 7:14 PM
> Subject: Using c:import to include the contents of a file
> 
> 
> > I want to do the following:
> >
> > 
> >
> > However, I get an UnknownHostException - is it possible to do this 
> > with JSTL?  My only solution (so far) is to use an iframe and do:
> >
> > 
> >
> > It's the only way I've found to read a file from the 
> filesystem when 
> > it's outside Tomcat's webapps directory.
> >
> > Thanks,
> >
> > Matt
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 



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




RE: Can't concatenate 2 strings together

2002-04-25 Thread Matt Raible

Perfect, worked like a charm - thanks!

> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, April 24, 2002 9:06 PM
> To: Tag Libraries Users List; [EMAIL PROTECTED]
> Subject: Re: Can't concatenate 2 strings together
> 
> 
> In JSTL, '+' is a numeric operator only. However, this will 
> do what you
> want:
> 
> 
> 
> --
> Martin Cooper
> 
> 
> - Original Message -
> From: "Matt Raible" <[EMAIL PROTECTED]>
> To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 24, 2002 6:41 PM
> Subject: Can't concatenate 2 strings together
> 
> 
> > This seems like it should work:
> >
> > 
> >
> > However, I'm getting the following error - any ideas?
> >
> > [ServletException in:/viewer/coursePage.jsp] Attempt to 
> apply operator 
> > "+" to arguments of type "java.lang.String" and "java.lang.String"'
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 



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




Discussion forum

2002-04-25 Thread Eric . Lewis

Does anyone of you know where I can find a discussion forum that

a) works with JSTL
b) can be associated to certain pages - we want our users to discuss news
items, and of course every thread is "glued" to a news item
c) works with a database (JBDC or JDO)

Thanks & regards,
Eric


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




Re: Can't concatenate 2 strings together

2002-04-25 Thread Wolfgang Röckelein

Hi,

Martin Cooper wrote:
> In JSTL, '+' is a numeric operator only. However, this will do what you
> want:
> 
> 

In this case this is a solution. However, having a concatening operator
would be very helpful e.g. when you want to test the result e.g ${(x +
y) == 'asdfasdfsdf')}.

Greetings,
  Wolfgang


smime.p7s
Description: S/MIME Cryptographic Signature


escape SQL

2002-04-25 Thread tony

OK so I think that I understand.

I must use the preparedStatement and the query tag from dbtags
in order to get escapeSQL to work.

I don't want or need them I just want a quick and nasty way of escaping '

Does anyone have a solution to this very common task (at least in French 
and some other languages)

TIA and sorry for the waste of time 

Tony

PS any one who writes a simple taglib for escaping ' in sql queries wins
my immediate estime =:-D

-- 
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html


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




getting further

2002-04-25 Thread tony

I feel that I'm getting somewhere

"org.apache.jasper.JasperException: No such tag escapeSql in the tag
library imported with prefix sql"

Excuse me? Well it is in the TLD!!! It is advertized as being in the
jar...

Tomcat 4.0.2 container BTW

Any clues?

Cheers

Tony Grant

-- 
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html


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