🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7874

problem with regular expression and an applet

#7874
From: Serge Anton
Date: Thu, 10 May 2001 15:18
36 lines
2005 bytes
Hello,

I use the sun package com.sun.server.util.regexp for use regular expression.
It's work very well with Servlet and Standalone application but the same
code in an applet don't work.
I use JBuilder4 professional and it crash.

the jst.jar is in the classpath and he is declared in Jbuilder.
The applet don't work in a navigator and in JBuilder4

the code :

            String myString="here my sentence";
            String kWord="keyWord";
            Boolean  isHere=false;
             try
                {
                   RE r=new RE(kWord);   <---------- here the applet crash
                   r.setMatchFlags(1);
                   if (r.match(myString)){
                      isHere=true;
                    } else {
                      isHere=false;
                   }
                }
              catch (RESyntaxException e)
                {
                      //the Exception
                 };


What is the problem?

Thank you very much

serge
Technical Details
Message-ID: <9debgo$66m$1@s1.read.news.oleane.net>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!sn-xit-01!supernews.com!grolier!oleane.net!oleane!nnrp.oleane.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,282201ee647894b0,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-10 08:22:15 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!sn-xit-01!supernews.com!grolier!oleane.net!oleane!nnrp.oleane.net!not-for-mail
From: "Serge Anton" <serge.anton@takoma.fr>
Newsgroups: borland.public.jbuilder.java.language
Subject: problem with regular expression and an applet
Date: Thu, 10 May 2001 17:18:59 +0200
Organization: Guest of France Telecom Oleane's newsreading service
Lines: 41
Message-ID: <9debgo$66m$1@s1.read.news.oleane.net>
NNTP-Posting-Host: takoma.rain.fr
X-Trace: s1.read.news.oleane.net 989507929 6358 194.250.20.178 (10 May 2001 15:18:49 GMT)
X-Complaints-To: abuse@oleane.net
NNTP-Posting-Date: Thu, 10 May 2001 15:18:49 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400