Re: Need Jsp/Java Forum

2002-07-16 Thread Dmitry Namiot

See JSOS at http://www.servletsuite.com/servlets.htm

--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: XML parsing in a Tomcat3.2.3 world

2002-07-16 Thread Dmitry Namiot

See Coldtags suite on http://www.servletsuite.com/jsp.htm
There are several XML-related taglibs (DOM, SAX etc.)

--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: XML response

2002-07-16 Thread Himar Carmona Delgado

Hi

Be sure the encoding of the response in the JSP page match the
encoding type in the xml (the encoding attribute). You could have problems
with this. The encoding describes how the characters are represented (bye,
bye, ASCII). Select first an encoding with regards to your app language.

I generate xml from a JSP page. With the contentType set to
'text/xml' the browser will treat the response as XML.

To select the encoding of the response I used
'contentType=text/xml; charset=UTF-8' or whatever encoding you want. 

This code will generate XML from JSP:


%@ page language = java  import = your jars contentType=text/xml;
charset=iso-8859-1 %
%
String salida = new String(?xml version=\1.0\
encoding=\iso-8859-1\ standalone=\yes\?messagesmessage id=\1\
to=\123456\ from=\654321\ msg=\My message\
status=\1\//messages);

out.println(salida);
%

To incorporate your data inbetween, you could do many things:

- Complete the whole string before you println it.
- Combine distincs println and use %= % tags to print
database-specific data.
- If you need such a behavior in many pages, I recommend you to
implement it with a class. 
- Create a custom tag 


Hope this helps.

Himar Carmona Delgado
Analista - Programador


...
DESIC, S.L. (Desarrollos y Sistemas Informáticos Canarios, S.L.)
Pedro de Vera, 36, 2º A - 35003 - Las Palmas de Gran Canaria -
España
Telf.: +34 928 374 026   Fax: +34 928 374 028
[EMAIL PROTECTED]


-Mensaje original-
De: Jan Arenö [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 12 de julio de 2002 13:36
Para: [EMAIL PROTECTED]
Asunto: XML response


Hi

I have a problem regarding a XML response. One of our clients need to get a
response from our Web server in XML format, and I know nothing about XML.
Ok, I know some teori but not so I could do something useful.

What I need is to generate a response message like this
(in their words: The response from your server could look like this)

?xml version=1.0 encoding=iso-8859-1 standalone=yes?
messages
message id=1 to=123456 from=654321 msg=My message
status=1/
/messages

I guess I should generate the String and send it back as a response somehow,
instead of the ordinary HTTP response?

Please help

Regards Jan Arenö

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: XML parsing in a Tomcat3.2.3 world

2002-07-16 Thread Walter Meyer

My understanding is that there are two JSTL 1.0 releases. Sun's is JSP
1.1 compliant and Apache's is JSP 1.2 compliant.

http://java.sun.com/products/jsp/taglibraries.html
http://jakarta.apache.org/taglibs/index.html

Walt

 Gare, Tref [EMAIL PROTECTED] wrote:
 Thanks Joel and Shawn for the responses, however doesn't JSTL require
 Tomcat
 4?

 Tref

  -Original Message-
  Wrom: KSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRT
  Sent: Monday,15 July 2002 11:39
  To:   [EMAIL PROTECTED]
  Subject:  Re: XML parsing in a Tomcat3.2.3 world
 
  On Mon, 15 Jul 2002, Joel Carklin wrote:
 
while they talk about a parse custom tag there's no reference
 as to
where we might locate it.  Looks like we're going to have to
 write a
bean or custom tag to do it ourselves.
  
   Hi, AFAIK The Java Standard Tag Library provides tags that allow
 XML
   parsing and XSL transformation of XML documents. I haven't used
 them
   myself but seem to remember reading about it. The Library can be
 found
   at: http://java.sun.com/products/jsp/jstl/
 
  This is indeed correct.  If your goal is to load and parse an XML
 document
  in your JSP page, then JSTL's XML-manipulation library is appropriate.
  You can use XPath to process the document manually, or you can chain
 to an
  XSLT transformation.
 
  --
  Shawn Bayern
  JSTL reference-implementation lead
  JSTL in Action   http://www.jstlbook.com
  (coming in July 2002 from Manning Publications)
 
  ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: XML parsing in a Tomcat3.2.3 world

2002-07-16 Thread Hans Bergsten

Walter Meyer wrote:
 My understanding is that there are two JSTL 1.0 releases. Sun's is JSP
 1.1 compliant and Apache's is JSP 1.2 compliant.

 http://java.sun.com/products/jsp/taglibraries.html
 http://jakarta.apache.org/taglibs/index.html

Sorry, but that is not correct: JSTL 1.0 requires JSP 1.2, no matter
which implementation or distribution you use (the one Sun distributes
is actually the one developed in the Apache Taglibs project).

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



session from a different context

2002-07-16 Thread Hiren Dossani

hello,

i am setting a session attribute in a jsp page. the location of this jsp page is in 
webapps/base directory of the web server.

i am not too sure if the same session attribute could be retrieved in a servlet which 
is in another context. e.g. the servlet location is in
webapps/esab/WEB-INF/classes directory of the web server.

thanks for all your help.

--
hiren

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: session from a different context

2002-07-16 Thread Hans Bergsten

Hiren Dossani wrote:
 hello,

 i am setting a session attribute in a jsp page. the location of this jsp page is in 
webapps/base directory of the web server.

 i am not too sure if the same session attribute could be retrieved in a servlet 
which is in another context. e.g. the servlet location is in
 webapps/esab/WEB-INF/classes directory of the web server.

 thanks for all your help.

No, sessions are per application; servlets and JSPs in one app can not
see the session data of another app (that would be a security risk).
If you need to share session data between apps, you have to do so
explicitly (e.g., store it in a database, file or EJB, that's available
to both apps).

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: session from a different context

2002-07-16 Thread Robert S. Sfeir

Hum I was under the impression (At least in the Orion server, and it didn't
seem like it was Orion specific) that you can set the sessions to be shared
between apps running in the same app server.  Must be vendor specific I
guess!

R

On 7/16/02 12:38 PM, Hans Bergsten [EMAIL PROTECTED] wrote:

 Hiren Dossani wrote:
 hello,

 i am setting a session attribute in a jsp page. the location of this jsp page
 is in webapps/base directory of the web server.

 i am not too sure if the same session attribute could be retrieved in a
 servlet which is in another context. e.g. the servlet location is in
 webapps/esab/WEB-INF/classes directory of the web server.

 thanks for all your help.

 No, sessions are per application; servlets and JSPs in one app can not
 see the session data of another app (that would be a security risk).
 If you need to share session data between apps, you have to do so
 explicitly (e.g., store it in a database, file or EJB, that's available
 to both apps).

 Hans
 --
 Hans Bergsten   [EMAIL PROTECTED]
 Gefion Software http://www.gefionsoftware.com
 JavaServer Pageshttp://TheJSPBook.com

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: session from a different context

2002-07-16 Thread Hans Bergsten

Robert S. Sfeir wrote:
 Hum I was under the impression (At least in the Orion server, and it didn't
 seem like it was Orion specific) that you can set the sessions to be shared
 between apps running in the same app server.  Must be vendor specific I
 guess!

Yes, the spec spells out that the scope of a session is one application:

   SRV.7.3 Session Scope
   HttpSession objects must be scoped at the application (or servlet
   context) level. The underlying mechanism, such as the cookie used to
   establish the session, can be the same for different contexts, but
   the object referenced, including the attributes in that object, must
   never be shared between contexts by the container.

Hans

 On 7/16/02 12:38 PM, Hans Bergsten [EMAIL PROTECTED] wrote:


Hiren Dossani wrote:

hello,

i am setting a session attribute in a jsp page. the location of this jsp page
is in webapps/base directory of the web server.

i am not too sure if the same session attribute could be retrieved in a
servlet which is in another context. e.g. the servlet location is in
webapps/esab/WEB-INF/classes directory of the web server.

thanks for all your help.

No, sessions are per application; servlets and JSPs in one app can not
see the session data of another app (that would be a security risk).
If you need to share session data between apps, you have to do so
explicitly (e.g., store it in a database, file or EJB, that's available
to both apps).

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com



 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com



--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Deployment descriptors, wars and app servers - oh my...

2002-07-16 Thread Robert S. Sfeir

Ok rookie question I perhaps and here it goes...  I'm trying to figure out a
clean way of deploying my app so that no matter
which app server I deploy it to 2 things happen:

1- The app is bound to a domain name of the user's choice, after they edit
the appropriate descriptor when the war file expands of course.

2- The app is bound to the 'root' of the domain name (i.e.
http://domain.com/ and not http://domain.com/myapp) and not break other apps
already running with their servlets perhaps pointing to the root also.

I am trying to deploy using a war file, and would like for most of the
settings to be in place for the end-user-admin to edit quickly in a couple
of steps.  Don't want the /servlet name in there either.  Just as clean as
can be.

So my question is, is this something that is specific to every app server or
is there something that I need to look at somewhere to get that info?  I
can't seem to find anything in the web.xml dtd and I'm guessing at this
point that this is app server specifc and that this type of info will reside
in appserver-web.xml (i.e. orion-web.xml jboss-web.xml etc...)

Any clues would be helpful.  I'm using JSP 1.2 and Servlet 2.3 code base.

Thanks
R

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: XML parsing in a Tomcat3.2.3 world

2002-07-16 Thread Walter Meyer

Thanks, Hans. I've obviously lost my mind. Not sure why I thought that.

Walt


 Hans Bergsten [EMAIL PROTECTED] wrote:
 Walter Meyer wrote:
  My understanding is that there are two JSTL 1.0 releases. Sun's is
 JSP
  1.1 compliant and Apache's is JSP 1.2 compliant.
 
  http://java.sun.com/products/jsp/taglibraries.html
  http://jakarta.apache.org/taglibs/index.html

 Sorry, but that is not correct: JSTL 1.0 requires JSP 1.2, no matter
 which implementation or distribution you use (the one Sun distributes
 is actually the one developed in the Apache Taglibs project).

 Hans
 --
 Hans Bergsten   [EMAIL PROTECTED]
 Gefion Software http://www.gefionsoftware.com
 JavaServer Pageshttp://TheJSPBook.com

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



replacing a single quote with double quotes

2002-07-16 Thread Ramesh Kadirisani

hi,
i want to replace a single quote with double quotes in a string for inserting into a 
database table(using CallableStatement). i found the following code in javaguru.
=
private String sqlEncode(String a_str){
 int index = -1;
 index = a_str.indexOf('\'');
 if (index == -1)
  return a_str;
 int start = 0;
 while (index != -1) {
  a_str = a_str.substring(0, index + 1) + ' + a_str.substring(index + 1);
  start = index + 2;
  index = a_str.indexOf('\'', start);
 }
 return a_str;
}
=

But i don't know how to use the above code in my jsp program(i am new to jsp and 
java). do i have to create a bean to use the above code? Suppose if i have only the 
following code in my jsp program and i want to use the above code to print Ramesh''s 
program, how do i do that?

%
String msg = Ramesh's program;

//here i want to use the code

out.println (msg);
%

thanks,
Ramesh Kadirisani.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: replacing a single quote with double quotes

2002-07-16 Thread Jay Burgess

Good tip, but I think you mean msg, not test i.e.

msg.replace('\'', '');

Jay

  -Original Message-
  From: Peter Dolukhanov [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 16, 2002 2:39 PM
  To: [EMAIL PROTECTED]
  Subject: Re: replacing a single quote with double quotes
 
 
  Ramesh,
 
  There is a rather handy function on a string called replace,
  it replaces
  a certain character with another in a string.
 
  In your code it would read:
 
  %
  String msg = Ramesh's program;
 
  test.replace('\'', '');
 
  //here i want to use the code
 
  out.println (msg);
  %
 
  Best regards,
  Peter Dolukhanov
 
  -Original Message-
  From: A mailing list about Java Server Pages specification
  and reference
  [mailto:[EMAIL PROTECTED]] On Behalf Of Ramesh Kadirisani
  Sent: 16 July 2002 18:52
  To: [EMAIL PROTECTED]
  Subject: replacing a single quote with double quotes
 
  hi,
  i want to replace a single quote with double quotes in a string for
  inserting into a database table(using CallableStatement). i found the
  following code in javaguru.
  =
  private String sqlEncode(String a_str){
   int index = -1;
   index = a_str.indexOf('\'');
   if (index == -1)
return a_str;
   int start = 0;
   while (index != -1) {
a_str = a_str.substring(0, index + 1) + ' +
  a_str.substring(index +
  1);
start = index + 2;
index = a_str.indexOf('\'', start);
   }
   return a_str;
  }
  =
 
  But i don't know how to use the above code in my jsp
  program(i am new to
  jsp and java). do i have to create a bean to use the above
  code? Suppose
  if i have only the following code in my jsp program and i want to use
  the above code to print Ramesh''s program, how do i do that?
 
  %
  String msg = Ramesh's program;
 
  //here i want to use the code
 
  out.println (msg);
  %
 
  thanks,
  Ramesh Kadirisani.
 
  ==

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: replacing a single quote with double quotes

2002-07-16 Thread Nicholson, Dale

Here is the method I use to do what you are looking for...

private String fixTick( String str ) throws RemoteException  {
StringBuffer strOut=new StringBuffer();
for(int intChar=0; intChar  str.length(); intChar++){
if(str.substring(intChar,intChar+1).equals(')){
strOut.append(');
}
strOut.append(str.substring(intChar,intChar+1));
}
return strOut.toString();
}

Then you can use code like:

String doubleTicked = fixTick(singleTicked);




Dale Nicholson


 -Original Message-
 From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 16, 2002 2:55 PM
 To: [EMAIL PROTECTED]
 Subject: Re: replacing a single quote with double quotes


 hi Peter,
 thanks for the response. i am sorry that i put my problem in the forum
 in a wrong way. my requirement is to replace the single quote with two
 single quotes. replace function can't replace single quote with two
 single quotes. do you know any other way of doing this?
 thanks again,
 Ramesh Kadirisani.

 Peter Dolukhanov wrote:
 
  Ramesh,
 
  There is a rather handy function on a string called
 replace, it replaces
  a certain character with another in a string.
 
  In your code it would read:
 
  %
  String msg = Ramesh's program;
 
  test.replace('\'', '');
 
  //here i want to use the code
 
  out.println (msg);
  %
 
  Best regards,
  Peter Dolukhanov
 
  -Original Message-
  From: A mailing list about Java Server Pages specification
 and reference
  [mailto:[EMAIL PROTECTED]] On Behalf Of Ramesh Kadirisani
  Sent: 16 July 2002 18:52
  To: [EMAIL PROTECTED]
  Subject: replacing a single quote with double quotes
 
  hi,
  i want to replace a single quote with double quotes in a string for
  inserting into a database table(using CallableStatement). i
 found the
  following code in javaguru.
  =
  private String sqlEncode(String a_str){
   int index = -1;
   index = a_str.indexOf('\'');
   if (index == -1)
return a_str;
   int start = 0;
   while (index != -1) {
a_str = a_str.substring(0, index + 1) + ' +
 a_str.substring(index +
  1);
start = index + 2;
index = a_str.indexOf('\'', start);
   }
   return a_str;
  }
  =
 
  But i don't know how to use the above code in my jsp
 program(i am new to
  jsp and java). do i have to create a bean to use the above
 code? Suppose
  if i have only the following code in my jsp program and i
 want to use
  the above code to print Ramesh''s program, how do i do that?
 
  %
  String msg = Ramesh's program;
 
  //here i want to use the code
 
  out.println (msg);
  %
 
  thanks,
  Ramesh Kadirisani.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: replacing a single quote with double quotes

2002-07-16 Thread Ramesh Kadirisani

Hi Margaret,
i tried the following:
%
String msg = Ramesh's program;
msg = msg.replace('\'',);
out.println(msg); //i need two single quotes in the place of the
existing quote
%
which leads to compilation error.
Ramesh Kadirisani.
Margaret Fisk wrote:

 Why can't you escape both single quotes in the replace with?

 -Original Message-
 From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 16, 2002 12:55 PM
 To: [EMAIL PROTECTED]
 Subject: Re: replacing a single quote with double quotes

 hi Peter,
 thanks for the response. i am sorry that i put my problem in the forum
 in a wrong way. my requirement is to replace the single quote with two
 single quotes. replace function can't replace single quote with two
 single quotes. do you know any other way of doing this?
 thanks again,
 Ramesh Kadirisani.

 Peter Dolukhanov wrote:
 
  Ramesh,
 
  There is a rather handy function on a string called replace, it replaces
  a certain character with another in a string.
 
  In your code it would read:
 
  %
  String msg = Ramesh's program;
 
  test.replace('\'', '');
 
  //here i want to use the code
 
  out.println (msg);
  %
 
  Best regards,
  Peter Dolukhanov
 
  -Original Message-
  From: A mailing list about Java Server Pages specification and reference
  [mailto:[EMAIL PROTECTED]] On Behalf Of Ramesh Kadirisani
  Sent: 16 July 2002 18:52
  To: [EMAIL PROTECTED]
  Subject: replacing a single quote with double quotes
 
  hi,
  i want to replace a single quote with double quotes in a string for
  inserting into a database table(using CallableStatement). i found the
  following code in javaguru.
  =
  private String sqlEncode(String a_str){
   int index = -1;
   index = a_str.indexOf('\'');
   if (index == -1)
return a_str;
   int start = 0;
   while (index != -1) {
a_str = a_str.substring(0, index + 1) + ' + a_str.substring(index +
  1);
start = index + 2;
index = a_str.indexOf('\'', start);
   }
   return a_str;
  }
  =
 
  But i don't know how to use the above code in my jsp program(i am new to
  jsp and java). do i have to create a bean to use the above code? Suppose
  if i have only the following code in my jsp program and i want to use
  the above code to print Ramesh''s program, how do i do that?
 
  %
  String msg = Ramesh's program;
 
  //here i want to use the code
 
  out.println (msg);
  %
 
  thanks,
  Ramesh Kadirisani.
 
  
  ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 
 
 ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: replacing a single quote with double quotes

2002-07-16 Thread Ramesh Kadirisani

hi Dale,
following is all the code that exists in my test.jsp which leads to
compilation errors.
%
String singleTicked = Ramesh's testing program;
String doubleTicked = fixTick(singleTicked);
out.println(doubleTicked);

private String fixTick( String str ) throws RemoteException  {
StringBuffer strOut=new StringBuffer();
for(int intChar=0; intChar  str.length(); intChar++){
if(str.substring(intChar,intChar+1).equals(')){
strOut.append(');
}
strOut.append(str.substring(intChar,intChar+1));
}
return strOut.toString();
}
%

Could you please tell me what else to be added to make this to work?

Nicholson, Dale wrote:

 Here is the method I use to do what you are looking for...

 private String fixTick( String str ) throws RemoteException  {
 StringBuffer strOut=new StringBuffer();
 for(int intChar=0; intChar  str.length(); intChar++){
 if(str.substring(intChar,intChar+1).equals(')){
 strOut.append(');
 }
 strOut.append(str.substring(intChar,intChar+1));
 }
 return strOut.toString();
 }

 Then you can use code like:

 String doubleTicked = fixTick(singleTicked);

 Dale Nicholson

  -Original Message-
  From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 16, 2002 2:55 PM
  To: [EMAIL PROTECTED]
  Subject: Re: replacing a single quote with double quotes
 
 
  hi Peter,
  thanks for the response. i am sorry that i put my problem in the forum
  in a wrong way. my requirement is to replace the single quote with two
  single quotes. replace function can't replace single quote with two
  single quotes. do you know any other way of doing this?
  thanks again,
  Ramesh Kadirisani.
 
  Peter Dolukhanov wrote:
  
   Ramesh,
  
   There is a rather handy function on a string called
  replace, it replaces
   a certain character with another in a string.
  
   In your code it would read:
  
   %
   String msg = Ramesh's program;
  
   test.replace('\'', '');
  
   //here i want to use the code
  
   out.println (msg);
   %
  
   Best regards,
   Peter Dolukhanov
  
   -Original Message-
   From: A mailing list about Java Server Pages specification
  and reference
   [mailto:[EMAIL PROTECTED]] On Behalf Of Ramesh Kadirisani
   Sent: 16 July 2002 18:52
   To: [EMAIL PROTECTED]
   Subject: replacing a single quote with double quotes
  
   hi,
   i want to replace a single quote with double quotes in a string for
   inserting into a database table(using CallableStatement). i
  found the
   following code in javaguru.
   =
   private String sqlEncode(String a_str){
int index = -1;
index = a_str.indexOf('\'');
if (index == -1)
 return a_str;
int start = 0;
while (index != -1) {
 a_str = a_str.substring(0, index + 1) + ' +
  a_str.substring(index +
   1);
 start = index + 2;
 index = a_str.indexOf('\'', start);
}
return a_str;
   }
   =
  
   But i don't know how to use the above code in my jsp
  program(i am new to
   jsp and java). do i have to create a bean to use the above
  code? Suppose
   if i have only the following code in my jsp program and i
  want to use
   the above code to print Ramesh''s program, how do i do that?
  
   %
   String msg = Ramesh's program;
  
   //here i want to use the code
  
   out.println (msg);
   %
  
   thanks,
   Ramesh Kadirisani.

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: replacing a single quote with double quotes

2002-07-16 Thread Lai, Kenny

obviously for one thing..

you're not throwing a RemoteException (because there is no RMI involved)

second.. if you're declaring a method in jsp.. you need to use %!


-Original Message-
From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 4:32 PM
To: [EMAIL PROTECTED]
Subject: Re: replacing a single quote with double quotes


hi Dale,
following is all the code that exists in my test.jsp which leads to
compilation errors.
%
String singleTicked = Ramesh's testing program;
String doubleTicked = fixTick(singleTicked);
out.println(doubleTicked);

private String fixTick( String str ) throws RemoteException  {
StringBuffer strOut=new StringBuffer();
for(int intChar=0; intChar  str.length(); intChar++){
if(str.substring(intChar,intChar+1).equals(')){
strOut.append(');
}
strOut.append(str.substring(intChar,intChar+1));
}
return strOut.toString();
}
%

Could you please tell me what else to be added to make this to work?

Nicholson, Dale wrote:

 Here is the method I use to do what you are looking for...

 private String fixTick( String str ) throws RemoteException  {
 StringBuffer strOut=new StringBuffer();
 for(int intChar=0; intChar  str.length(); intChar++){
 if(str.substring(intChar,intChar+1).equals(')){
 strOut.append(');
 }
 strOut.append(str.substring(intChar,intChar+1));
 }
 return strOut.toString();
 }

 Then you can use code like:

 String doubleTicked = fixTick(singleTicked);

 Dale Nicholson

  -Original Message-
  From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 16, 2002 2:55 PM
  To: [EMAIL PROTECTED]
  Subject: Re: replacing a single quote with double quotes
 
 
  hi Peter,
  thanks for the response. i am sorry that i put my problem in the forum
  in a wrong way. my requirement is to replace the single quote with two
  single quotes. replace function can't replace single quote with two
  single quotes. do you know any other way of doing this?
  thanks again,
  Ramesh Kadirisani.
 
  Peter Dolukhanov wrote:
  
   Ramesh,
  
   There is a rather handy function on a string called
  replace, it replaces
   a certain character with another in a string.
  
   In your code it would read:
  
   %
   String msg = Ramesh's program;
  
   test.replace('\'', '');
  
   //here i want to use the code
  
   out.println (msg);
   %
  
   Best regards,
   Peter Dolukhanov
  
   -Original Message-
   From: A mailing list about Java Server Pages specification
  and reference
   [mailto:[EMAIL PROTECTED]] On Behalf Of Ramesh Kadirisani
   Sent: 16 July 2002 18:52
   To: [EMAIL PROTECTED]
   Subject: replacing a single quote with double quotes
  
   hi,
   i want to replace a single quote with double quotes in a string for
   inserting into a database table(using CallableStatement). i
  found the
   following code in javaguru.
   =
   private String sqlEncode(String a_str){
int index = -1;
index = a_str.indexOf('\'');
if (index == -1)
 return a_str;
int start = 0;
while (index != -1) {
 a_str = a_str.substring(0, index + 1) + ' +
  a_str.substring(index +
   1);
 start = index + 2;
 index = a_str.indexOf('\'', start);
}
return a_str;
   }
   =
  
   But i don't know how to use the above code in my jsp
  program(i am new to
   jsp and java). do i have to create a bean to use the above
  code? Suppose
   if i have only the following code in my jsp program and i
  want to use
   the above code to print Ramesh''s program, how do i do that?
  
   %
   String msg = Ramesh's program;
  
   //here i want to use the code
  
   out.println (msg);
   %
  
   thanks,
   Ramesh Kadirisani.


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL 

Re: replacing a single quote with double quotes

2002-07-16 Thread Ramesh Kadirisani

Hi Lai,
thanks for the tip. i used %! and used the following method and now
everything is working fine.

private String sqlEncode(String a_str){
int index = -1;
index = a_str.indexOf('\'');
if (index == -1)
return a_str;
int start = 0;
while (index != -1) {
a_str = a_str.substring(0, index + 1) + ' + a_str.substring(index +
1);
start = index + 2;
index = a_str.indexOf('\'', start);
}
return a_str;
}
---
thanks,
Ramesh Kadirisani.

Lai, Kenny wrote:

 obviously for one thing..

 you're not throwing a RemoteException (because there is no RMI involved)

 second.. if you're declaring a method in jsp.. you need to use %!

 -Original Message-
 From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 16, 2002 4:32 PM
 To: [EMAIL PROTECTED]
 Subject: Re: replacing a single quote with double quotes

 hi Dale,
 following is all the code that exists in my test.jsp which leads to
 compilation errors.
 %
 String singleTicked = Ramesh's testing program;
 String doubleTicked = fixTick(singleTicked);
 out.println(doubleTicked);

 private String fixTick( String str ) throws RemoteException  {
 StringBuffer strOut=new StringBuffer();
 for(int intChar=0; intChar  str.length(); intChar++){
 if(str.substring(intChar,intChar+1).equals(')){
 strOut.append(');
 }
 strOut.append(str.substring(intChar,intChar+1));
 }
 return strOut.toString();
 }
 %

 Could you please tell me what else to be added to make this to work?

 Nicholson, Dale wrote:
 
  Here is the method I use to do what you are looking for...
 
  private String fixTick( String str ) throws RemoteException  {
  StringBuffer strOut=new StringBuffer();
  for(int intChar=0; intChar  str.length(); intChar++){
  if(str.substring(intChar,intChar+1).equals(')){
  strOut.append(');
  }
  strOut.append(str.substring(intChar,intChar+1));
  }
  return strOut.toString();
  }
 
  Then you can use code like:
 
  String doubleTicked = fixTick(singleTicked);
 
  Dale Nicholson
 
   -Original Message-
   From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, July 16, 2002 2:55 PM
   To: [EMAIL PROTECTED]
   Subject: Re: replacing a single quote with double quotes
  
  
   hi Peter,
   thanks for the response. i am sorry that i put my problem in the forum
   in a wrong way. my requirement is to replace the single quote with two
   single quotes. replace function can't replace single quote with two
   single quotes. do you know any other way of doing this?
   thanks again,
   Ramesh Kadirisani.
  
   Peter Dolukhanov wrote:
   
Ramesh,
   
There is a rather handy function on a string called
   replace, it replaces
a certain character with another in a string.
   
In your code it would read:
   
%
String msg = Ramesh's program;
   
test.replace('\'', '');
   
//here i want to use the code
   
out.println (msg);
%
   
Best regards,
Peter Dolukhanov
   
-Original Message-
From: A mailing list about Java Server Pages specification
   and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Ramesh Kadirisani
Sent: 16 July 2002 18:52
To: [EMAIL PROTECTED]
Subject: replacing a single quote with double quotes
   
hi,
i want to replace a single quote with double quotes in a string for
inserting into a database table(using CallableStatement). i
   found the
following code in javaguru.
=
private String sqlEncode(String a_str){
 int index = -1;
 index = a_str.indexOf('\'');
 if (index == -1)
  return a_str;
 int start = 0;
 while (index != -1) {
  a_str = a_str.substring(0, index + 1) + ' +
   a_str.substring(index +
1);
  start = index + 2;
  index = a_str.indexOf('\'', start);
 }
 return a_str;
}
=
   
But i don't know how to use the above code in my jsp
   program(i am new to
jsp and java). do i have to create a bean to use the above
   code? Suppose
if i have only the following code in my jsp program and i
   want to use
the above code to print Ramesh''s program, how do i do that?
   
%
String msg = Ramesh's program;
   
//here i want to use the code
   
out.println (msg);
%
   
thanks,
Ramesh Kadirisani.
 
 
 ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   

Re: replacing a single quote with double quotes

2002-07-16 Thread Greg Dunn

CallableStatement extends PreparedStatement.  Doesn't the setString method
of CallableStatement escape quotes for you?

Greg


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Ramesh Kadirisani
Sent: Tuesday, July 16, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: replacing a single quote with double quotes


Hi Lai,
thanks for the tip. i used %! and used the following method and now
everything is working fine.

private String sqlEncode(String a_str){
int index = -1;
index = a_str.indexOf('\'');
if (index == -1)
return a_str;
int start = 0;
while (index != -1) {
a_str = a_str.substring(0, index + 1) + ' +
a_str.substring(index +
1);
start = index + 2;
index = a_str.indexOf('\'', start);
}
return a_str;
}
---
thanks,
Ramesh Kadirisani.

Lai, Kenny wrote:

 obviously for one thing..

 you're not throwing a RemoteException (because there is no RMI involved)

 second.. if you're declaring a method in jsp.. you need to use %!

 -Original Message-
 From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 16, 2002 4:32 PM
 To: [EMAIL PROTECTED]
 Subject: Re: replacing a single quote with double quotes

 hi Dale,
 following is all the code that exists in my test.jsp which leads to
 compilation errors.
 %
 String singleTicked = Ramesh's testing program;
 String doubleTicked = fixTick(singleTicked);
 out.println(doubleTicked);

 private String fixTick( String str ) throws RemoteException  {
 StringBuffer strOut=new StringBuffer();
 for(int intChar=0; intChar  str.length(); intChar++){
 if(str.substring(intChar,intChar+1).equals(')){
 strOut.append(');
 }
 strOut.append(str.substring(intChar,intChar+1));
 }
 return strOut.toString();
 }
 %

 Could you please tell me what else to be added to make this to work?

 Nicholson, Dale wrote:
 
  Here is the method I use to do what you are looking for...
 
  private String fixTick( String str ) throws RemoteException  {
  StringBuffer strOut=new StringBuffer();
  for(int intChar=0; intChar  str.length(); intChar++){
  if(str.substring(intChar,intChar+1).equals(')){
  strOut.append(');
  }
  strOut.append(str.substring(intChar,intChar+1));
  }
  return strOut.toString();
  }
 
  Then you can use code like:
 
  String doubleTicked = fixTick(singleTicked);
 
  Dale Nicholson
 
   -Original Message-
   From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, July 16, 2002 2:55 PM
   To: [EMAIL PROTECTED]
   Subject: Re: replacing a single quote with double quotes
  
  
   hi Peter,
   thanks for the response. i am sorry that i put my problem in the forum
   in a wrong way. my requirement is to replace the single quote with two
   single quotes. replace function can't replace single quote with two
   single quotes. do you know any other way of doing this?
   thanks again,
   Ramesh Kadirisani.
  
   Peter Dolukhanov wrote:
   
Ramesh,
   
There is a rather handy function on a string called
   replace, it replaces
a certain character with another in a string.
   
In your code it would read:
   
%
String msg = Ramesh's program;
   
test.replace('\'', '');
   
//here i want to use the code
   
out.println (msg);
%
   
Best regards,
Peter Dolukhanov
   
-Original Message-
From: A mailing list about Java Server Pages specification
   and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Ramesh Kadirisani
Sent: 16 July 2002 18:52
To: [EMAIL PROTECTED]
Subject: replacing a single quote with double quotes
   
hi,
i want to replace a single quote with double quotes in a string for
inserting into a database table(using CallableStatement). i
   found the
following code in javaguru.
=
private String sqlEncode(String a_str){
 int index = -1;
 index = a_str.indexOf('\'');
 if (index == -1)
  return a_str;
 int start = 0;
 while (index != -1) {
  a_str = a_str.substring(0, index + 1) + ' +
   a_str.substring(index +
1);
  start = index + 2;
  index = a_str.indexOf('\'', start);
 }
 return a_str;
}
=
   
But i don't know how to use the above code in my jsp
   program(i am new to
jsp and java). do i have to create a bean to use the above
   code? Suppose
if i have only the following code in my jsp program and i
   want to use
the above code to print Ramesh''s program, how do i do that?
   
%
String msg = Ramesh's program;
   
//here i want to use the code
   
out.println (msg);
%
   
thanks,
Ramesh Kadirisani.
 
 


Re: XML parsing in a Tomcat3.2.3 world

2002-07-16 Thread Gare, Tref

Thanks All for the various help and advice,

We've decided to upgrade to Tomcat 4.01 so we can play nicely with all the
toys available.

Regards

Tref

 -Original Message-
 From: Walter Meyer [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,17 July 2002 3:39
 To:   [EMAIL PROTECTED]
 Subject:  Re: XML parsing in a Tomcat3.2.3 world

 Thanks, Hans. I've obviously lost my mind. Not sure why I thought that.

 Walt


  Hans Bergsten [EMAIL PROTECTED] wrote:
  Walter Meyer wrote:
   My understanding is that there are two JSTL 1.0 releases. Sun's is
  JSP
   1.1 compliant and Apache's is JSP 1.2 compliant.
  
   http://java.sun.com/products/jsp/taglibraries.html
   http://jakarta.apache.org/taglibs/index.html
 
  Sorry, but that is not correct: JSTL 1.0 requires JSP 1.2, no matter
  which implementation or distribution you use (the one Sun distributes
  is actually the one developed in the Apache Taglibs project).
 
  Hans
  --
  Hans Bergsten   [EMAIL PROTECTED]
  Gefion Software http://www.gefionsoftware.com
  JavaServer Pageshttp://TheJSPBook.com
 
 
 ==
 =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Daemon Process

2002-07-16 Thread Shamshad Alam

Hello All
Could anyone tell me how to write a Daemon process in java?
Thank you
--Shamshad

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



algorithms analysis

2002-07-16 Thread Oscar González Herrera

Hi everybody:

I'm interested in data structures and algorithm analysis (b-trees, sorting
and searching, etc.), does anybody know some link(s) or web sites related
to?.

Thanks, best regards.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: algorithms analysis

2002-07-16 Thread Carol Geng

There is a good book Introduction to Algorithms by Thomas H. Cormen, 
Charles E. Leiserson and Ronald L. Rivest.


At 18:37 2002-7-16 -0500, Oscar González Herrera wrote:
Hi everybody:

I'm interested in data structures and algorithm analysis (b-trees, sorting
and searching, etc.), does anybody know some link(s) or web sites related
to?.

Thanks, best regards.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: algorithms analysis

2002-07-16 Thread Ng Wei Tze, Zac

Yup, this book is used by MIT in their algorithmic courses for postgrad
as well.



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Carol Geng
Sent: Wednesday, July 17, 2002 7:40 AM
To: [EMAIL PROTECTED]
Subject: Re: algorithms analysis


There is a good book Introduction to Algorithms by Thomas H. Cormen, 
Charles E. Leiserson and Ronald L. Rivest.


At 18:37 2002-7-16 -0500, Oscar González Herrera wrote:
Hi everybody:

I'm interested in data structures and algorithm analysis (b-trees, 
sorting and searching, etc.), does anybody know some link(s) or web 
sites related to?.

Thanks, best regards.

===

To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

=
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set
JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found
at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: XML parsing in a Tomcat3.2.3 world

2002-07-16 Thread Vikramjit Singh

I think its much better to try tc 4.1.x, since many new features are
available in 4.1.x. And my personal experience is that jndi/context works
really smoothly in 4.1.x, which for me didnt happen in 4.0.x.

Regards,
Vikram


-Original Message-
From: Gare, Tref [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 3:50 PM
To: [EMAIL PROTECTED]
Subject: Re: XML parsing in a Tomcat3.2.3 world


Thanks All for the various help and advice,

We've decided to upgrade to Tomcat 4.01 so we can play nicely with all the
toys available.

Regards

Tref

 -Original Message-
 From: Walter Meyer [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,17 July 2002 3:39
 To:   [EMAIL PROTECTED]
 Subject:  Re: XML parsing in a Tomcat3.2.3 world

 Thanks, Hans. I've obviously lost my mind. Not sure why I thought that.

 Walt


  Hans Bergsten [EMAIL PROTECTED] wrote:
  Walter Meyer wrote:
   My understanding is that there are two JSTL 1.0 releases. Sun's is
  JSP
   1.1 compliant and Apache's is JSP 1.2 compliant.
  
   http://java.sun.com/products/jsp/taglibraries.html
   http://jakarta.apache.org/taglibs/index.html
 
  Sorry, but that is not correct: JSTL 1.0 requires JSP 1.2, no matter
  which implementation or distribution you use (the one Sun distributes
  is actually the one developed in the Apache Taglibs project).
 
  Hans
  --
  Hans Bergsten   [EMAIL PROTECTED]
  Gefion Software http://www.gefionsoftware.com
  JavaServer Pageshttp://TheJSPBook.com
 
 
 ==
 =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



session error

2002-07-16 Thread Vaishali S. Pandya

hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
  session.putValue(utype,utype);
and in all other pages(like emp.jsp) i getValue.
  String utype = (String)session.getValue(utype);
  if (utype==null || utype.equals()){
response.sendRedirect(login.jsp);
  }
but...
here when i try to open this emp.jsp or any other page directly it should
go to login.jsp but
it takes to much time and at last gives me page not found type browser
error and hangs up.

Can anybody help me please?
Thanks
Vaishali
Reliance Ind Ltd
Ahmedabad

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: algorithms analysis

2002-07-16 Thread Ritesh Gupta

Hi Oscar,

The following link is gud for starters :
http://www.theparticle.com/javadata2.html

Regards,
Ritesh
- Original Message -
From: Oscar González Herrera [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 5:07 AM
Subject: algorithms analysis


Hi everybody:

I'm interested in data structures and algorithm analysis (b-trees, sorting
and searching, etc.), does anybody know some link(s) or web sites related
to?.

Thanks, best regards.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: session error

2002-07-16 Thread Ritesh Gupta

Hi Vaishali,

I dont think you should be getting a page not found due to the value
being put in the session or being retreived from it. Are you able to
access any page at all after the login page? What is the exact error
code thrown on the browser ?

Regards,
Ritesh


- Original Message -
From: Vaishali S. Pandya [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 10:16 AM
Subject: session error


hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
  session.putValue(utype,utype);
and in all other pages(like emp.jsp) i getValue.
  String utype = (String)session.getValue(utype);
  if (utype==null || utype.equals()){
response.sendRedirect(login.jsp);
  }
but...
here when i try to open this emp.jsp or any other page directly it should
go to login.jsp but
it takes to much time and at last gives me page not found type browser
error and hangs up.

Can anybody help me please?
Thanks
Vaishali
Reliance Ind Ltd
Ahmedabad

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: session error

2002-07-16 Thread Bhushan_Bhangale

Is the login.jsp in same directory as of emp.jsp? If not then the sendRedirect path of 
login.jsp is wrong.

But in any case the browser should not hang.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: session error


hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
  session.putValue(utype,utype);
and in all other pages(like emp.jsp) i getValue.
  String utype = (String)session.getValue(utype);
  if (utype==null || utype.equals()){
response.sendRedirect(login.jsp);
  }
but...
here when i try to open this emp.jsp or any other page directly it should
go to login.jsp but
it takes to much time and at last gives me page not found type browser
error and hangs up.

Can anybody help me please?
Thanks
Vaishali
Reliance Ind Ltd
Ahmedabad

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: session error

2002-07-16 Thread Vaishali S. Pandya

jsp:forword is working fine
thanks



  Rakesh Menon
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]
  o.incc:
   Subject:  Re: session error
  07/17/02 10:43 AM






Hi ,

Try using forward tag instead of sendRedirect

if (utype==null || utype.equals()){ %
jsp:forward page=/login.jsp/
% }

Rakesh

Vaishali S. Pandya wrote:

 hi
 i've used session in my app.
 i putValue in session in login.jsp page after successfull login
   session.putValue(utype,utype);
 and in all other pages(like emp.jsp) i getValue.
   String utype = (String)session.getValue(utype);
   if (utype==null || utype.equals()){
 response.sendRedirect(login.jsp);
   }
 but...
 here when i try to open this emp.jsp or any other page directly it should
 go to login.jsp but
 it takes to much time and at last gives me page not found type
browser
 error and hangs up.

 Can anybody help me please?
 Thanks
 Vaishali
 Reliance Ind Ltd
 Ahmedabad


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: session error

2002-07-16 Thread Vaishali S. Pandya

yes the both files are in same dir

and jsp:forword is working but
sendRedirect was NOT working and belive me it hangs up my tomcat.
and because of tomcat it gives me error





  Bhushan_Bhangale
  Bhushan_Bhangale@ITo:   [EMAIL PROTECTED]
  NFOSYS.COMcc:
  Sent by: A mailing Subject:  Re: session error
  list about Java
  Server Pages
  specification and
  reference
  JSP-INTEREST@JAVA.
  SUN.COM


  07/17/02 11:27 AM
  Please respond to A
  mailing list about
  Java Server Pages
  specification and
  reference






Is the login.jsp in same directory as of emp.jsp? If not then the
sendRedirect path of login.jsp is wrong.

But in any case the browser should not hang.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: session error


hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
  session.putValue(utype,utype);
and in all other pages(like emp.jsp) i getValue.
  String utype = (String)session.getValue(utype);
  if (utype==null || utype.equals()){
response.sendRedirect(login.jsp);
  }
but...
here when i try to open this emp.jsp or any other page directly it should
go to login.jsp but
it takes to much time and at last gives me page not found type browser
error and hangs up.

Can anybody help me please?
Thanks
Vaishali
Reliance Ind Ltd
Ahmedabad

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

=To unsubscribe: mailto
[EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com