comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]

Today's topics:

* Compiler trick - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a2992422eec9fe49
* WYSIWYG content management system; how to put together and make it work - 2 
messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/20484e6dbad0db77
* How to log into a web server? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/405f9dab611b53f3
* gmail anyone? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/edb0463a590e0ea1
* Regular Expression finder - 5 messages, 4 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34a515f2f676856a
* Natural sorting order for alphanumeric fields - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4073d4c9ba733b5
* Problem with XPath JDOM: Always the same value returned when selecting different 
nodes. - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e43bb572dda7f6eb
* Successor to Java? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9151fedffecef56b
* Freelance offshore java/wsad programmer - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c80894e5d5a529cb
* Tablets mean giving up some Java interactivity? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9fce1b75c6f0daef
* Natural sort order - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/68d8751dc77724df
* fullscreen with display mode 8-bit depth - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/393ca8b6a2e6b7bb
* Rolling to different location using DailyRollingFileAppender - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7854fffbd3d59237
* Servlet as Entry point, default Homepage - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cbf76b232d61f207
* inserting a footer into a pdf - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/99dd863ef5337c7a
  
==========================================================================
TOPIC: Compiler trick
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a2992422eec9fe49
==========================================================================

== 1 of 3 ==
Date:   Tues,   Sep 14 2004 5:15 am
From: [EMAIL PROTECTED] (FISH) 

Joona I Palaste <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...

[snipped...]
> - Note that there is no code between the two "if" statements that might
> diverge program flow away from the second "if" statement,

In a multi-threaded environment this is even more of a headache, as
even two consecutive 'if' statements that have inverse logic can be 
either both or neither run.  Okay - this is less of a problem for 
variables of local scope - but even if the OP does comes up with such
a deterministic algorithm, multi-threading would mean it could only
be applied to data members which the compiler could prove would be
unique only to that thread of execution.  Surely?


-FISH-   ><>



== 2 of 3 ==
Date:   Tues,   Sep 14 2004 5:44 am
From: Joona I Palaste <[EMAIL PROTECTED]> 

FISH <[EMAIL PROTECTED]> scribbled the following:
> Joona I Palaste <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> [snipped...]
>> - Note that there is no code between the two "if" statements that might
>> diverge program flow away from the second "if" statement,

> In a multi-threaded environment this is even more of a headache, as
> even two consecutive 'if' statements that have inverse logic can be 
> either both or neither run.  Okay - this is less of a problem for 
> variables of local scope - but even if the OP does comes up with such
> a deterministic algorithm, multi-threading would mean it could only
> be applied to data members which the compiler could prove would be
> unique only to that thread of execution.  Surely?

You are right about this. However, if the variables in question are at
method scope rather than class scope or instance scope, you don't need
to worry about multi-threading. Each thread gets its own private copy
of method-scope variables but has to share class-scope and instance-
scope variables with other threads. And ever since the deprecation of
Thread.stop(), one thread cannot directly force another thread to change
its course of execution against that thread's will. If we have two
threads, one of which does A and B, the other does C and D, then the
actual physical sequence may be A-B-C-D, A-C-B-D, A-C-D-B, C-A-B-D,
C-A-D-B or C-D-A-B. It is always guaranteed that all four operations
are done, A is done before B, and C is done before D. Nothing else
about the ordering is guaranteed. (This is assuming a strictly
sequential intra-thread execution with no control structures.)

-- 
/-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"C++ looks like line noise."
   - Fred L. Baube III



== 3 of 3 ==
Date:   Tues,   Sep 14 2004 6:57 am
From: Chris Smith <[EMAIL PROTECTED]> 

FISH wrote:
> In a multi-threaded environment this is even more of a headache, as
> even two consecutive 'if' statements that have inverse logic can be 
> either both or neither run.  Okay - this is less of a problem for 
> variables of local scope - but even if the OP does comes up with such
> a deterministic algorithm, multi-threading would mean it could only
> be applied to data members which the compiler could prove would be
> unique only to that thread of execution.  Surely?

None of that is wrong, but you make it sound harder than it is.  A local 
variable is *always* unique to a thread of execution, so the "proof" on 
the part of the compiler is trivial.  This isn't like C where you could 
pass around pointers to your local variables; a local variable is only 
accessed by one thread, within the context of a single method 
invocation.  No exceptions.

For non-local variables, this might be a concern between threads... but 
if it were, it would mean that you've written broken code.  To read a 
variable twice, when it may have been changed in the interim, without 
crossing a synchronization barrier in the interim (i.e., entering or 
leaving a synchronized method or block) would indicate that your code 
has undefined behavior.  Fix that, and you wouldn't have to worry any 
more.  That said, for non-local variables it *might* be a concern that 
the first 'if' block could modify the state of the condition; and that 
may very well be impossible for the compiler to prove doesn't occur.

Note that I'm not disagreeing that the currently defined rules are quite 
sensible; they are.  Just pointing out that multithreading isn't as 
mysterious as it's being made out.

-- 
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation




==========================================================================
TOPIC: WYSIWYG content management system; how to put together and make it work
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/20484e6dbad0db77
==========================================================================

== 1 of 2 ==
Date:   Tues,   Sep 14 2004 5:16 am
From: Keith Wansbrough <[EMAIL PROTECTED]> 

[EMAIL PROTECTED] (anoniem) writes:

> Are there
> any open-source content management system (CMS) programs around?

"plone" is one well-known one (<http://www.plone.org/>).

--KW 8-)
-- 
Keith Wansbrough <[EMAIL PROTECTED]>
http://www.cl.cam.ac.uk/users/kw217/
University of Cambridge Computer Laboratory.



== 2 of 2 ==
Date:   Tues,   Sep 14 2004 5:58 am
From: "Chris Uppal" <[EMAIL PROTECTED]> 

anoniem wrote:

> Are there
> any open-source content management system (CMS) programs around?

Zope has a fair amount of visibility.

    http://www.zope.org/

    -- chris






==========================================================================
TOPIC: How to log into a web server?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/405f9dab611b53f3
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 5:16 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Tue, 14 Sep 2004 12:58:49 +0100, Alex Hunsley wrote:

>> 'As seen on..'
>> <http://google.com/groups?th=383274bccc94227b>
...
> Ah, I did not know of that feature. How did you generate that link?

A bit of nouse and a large dose of voodoo, 
several black cockerels died.

...OK.  You open the Google link and dispense
with the frames by opening the first post in a 
new window, then you dispense with everything but..
<http://google.com/groups> as well as 
?th='theTHidentifier'. 

If it's a long thread it becomes more tricky, 
and you have to go for the 'selm' parameter, 
and add the anchor, or plough down to that 
post individually.

As I said, a bit of figuring and a lot of luck.

..It was more interesting the first way though.   ;-)

-- 
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology




==========================================================================
TOPIC: gmail anyone?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/edb0463a590e0ea1
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 5:20 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 14 Sep 2004 11:43:50 GMT, Rene wrote:

>  I currently only have 6 invites
> free so first comes first serves. Otherwise, the OP also offered them...

'they breed like gmail invites'?

Naaaah..  Does not quite roll
off the toungue.   ;-)

[ Oh, and ..thanks, no.  I already have one or 
more email addresses attached to each domain,
and a yahoo from long ago, it's enough keeping 
track of them. ]

-- 
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology




==========================================================================
TOPIC: Regular Expression finder
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34a515f2f676856a
==========================================================================

== 1 of 5 ==
Date:   Tues,   Sep 14 2004 5:25 am
From: "Joe Smith" <[EMAIL PROTECTED]> 

Hi,

does anyone know of a tool that would be able to extract the regular
expression that corresponds to a set of Strings?

For instance:

This tool, given
"abc", "aec", "akkc"
would return a regular expression like "a.+c"

Is this possible? Is it done?

Thanks!





== 2 of 5 ==
Date:   Tues,   Sep 14 2004 6:07 am
From: "David Hilsee" <[EMAIL PROTECTED]> 

"Joe Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> does anyone know of a tool that would be able to extract the regular
> expression that corresponds to a set of Strings?
>
> For instance:
>
> This tool, given
> "abc", "aec", "akkc"
> would return a regular expression like "a.+c"
>
> Is this possible? Is it done?

_The_ regular expression?  There are an infinite number of regular
expressions that match those strings.  Even if there were a tool that could
guess at a regex using heuristics, you'd still need to examine its output to
ensure that its result meets your needs.

Personally, I'd prefer using something that can quickly test the regexes
that your brain comes up with.  The Komodo IDE had such a feature that I
found quite helpful.  I haven't seen anything like it in other IDEs, though.

-- 
David Hilsee





== 3 of 5 ==
Date:   Tues,   Sep 14 2004 6:10 am
From: Michael Borgwardt <[EMAIL PROTECTED]> 

Joe Smith wrote:
> does anyone know of a tool that would be able to extract the regular
> expression that corresponds to a set of Strings?

There is no "the" there.

> For instance:
> 
> This tool, given
> "abc", "aec", "akkc"
> would return a regular expression like "a.+c"

Why not "a[bek].*" or "a.*"?

> Is this possible? Is it done?

It's certainly possible (and very easy) to write a method to
return a regular expression that matches any of a given set of
Strings:

public String getRegexp(String[] strings){
        return ".*";
}

Or did you mean a regexp that matches all of the given Strings
and *only* those? The example you give fails in that regard, but
it's also quite easy to do:

public String getRegexp(String[] strings){
        StringBuffer result = new StringBuffer("(");
        for(int i=0; i<strings.lenght; i++){
                result.append(strings[i]+"|");
        }
        result.setCharAt(result.length()-1, ')');
        return result.toString();
}

(you'd have to add escape sequences for characters that have
meaning in regexps)

The real question is: which if the *infinite* number of regular expressions
that matches a given set of Strings do you want to find?



== 4 of 5 ==
Date:   Tues,   Sep 14 2004 6:44 am
From: "Joe Smith" <[EMAIL PROTECTED]> 

> > does anyone know of a tool that would be able to extract the regular
> > expression that corresponds to a set of Strings?
>
> There is no "the" there.
>
> > For instance:
> >
> > This tool, given
> > "abc", "aec", "akkc"
> > would return a regular expression like "a.+c"
>
> Why not "a[bek].*" or "a.*"?
>
>
> The real question is: which if the *infinite* number of regular
expressions
> that matches a given set of Strings do you want to find?

Ok, ok... it's clear that my idea needs more explanations:

It's true that there's an infinite number of regexps that may match a set of
Strings... So perhaps, what I really want is to extract the common sections
of these strings... And replace the other parts with the "minimum" regexp...
And yes, there will be countless of them!!...
Idea:

"header body1 body2 footer epilogue"

"Prolog header body1 footer"

I would have something like: "(Prolog)? header body1 (body2)? footer
(epilogue)?"

For instance, "diff" is able to find the differences between two files...
The tool I'm thinking off would perform diffs on several inputs, to be able
to extract these common parts...

But well, I guess it's too "abstract" for a program.

Thanks anyway!!





== 5 of 5 ==
Date:   Tues,   Sep 14 2004 7:48 am
From: "Matt Humphrey" <[EMAIL PROTECTED]> 


"Joe Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > > does anyone know of a tool that would be able to extract the regular
> > > expression that corresponds to a set of Strings?
> >
> > There is no "the" there.
> >
> > > For instance:
> > >
> > > This tool, given
> > > "abc", "aec", "akkc"
> > > would return a regular expression like "a.+c"
> >
> > Why not "a[bek].*" or "a.*"?
> >
> >
> > The real question is: which if the *infinite* number of regular
> expressions
> > that matches a given set of Strings do you want to find?
>
> Ok, ok... it's clear that my idea needs more explanations:
>
> It's true that there's an infinite number of regexps that may match a set
of
> Strings... So perhaps, what I really want is to extract the common
sections
> of these strings... And replace the other parts with the "minimum"
regexp...
> And yes, there will be countless of them!!...
> Idea:
>
> "header body1 body2 footer epilogue"
>
> "Prolog header body1 footer"
>
> I would have something like: "(Prolog)? header body1 (body2)? footer
> (epilogue)?"
>
> For instance, "diff" is able to find the differences between two files...
> The tool I'm thinking off would perform diffs on several inputs, to be
able
> to extract these common parts...
>
> But well, I guess it's too "abstract" for a program.

This is a research area, particular in user interfaces.  You may find
something useful here:
http://www.ics.uci.edu/~dhilbert/papers/EDEM-UCI-ICS-98-13.pdf  in section
4.4

Cheers,
Matt Humphrey  [EMAIL PROTECTED]  http://www.iviz.com/






==========================================================================
TOPIC: Natural sorting order for alphanumeric fields
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4073d4c9ba733b5
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 5:41 am
From: Rogan Dawes <[EMAIL PROTECTED]> 

Paul wrote:

> I have a field that contains both numeric and alphanumeric entries, so
> e.g. when I do an 'order by' in sql I would get the following order
> 
> 1.2
> 1.25
> 1.3
> 3
> 50
> 6
> ALMERA
> FOCUS
> 
> But in this case , the 6 should be above the 50, but the order by
> looks at the first digit only.
> 
> To get around this, I tried two implemetations of the comparator class
> that I found on the web
> http://pierre-luc.paour.9online.fr/NaturalOrderComparator.java and
> http://www.davekoelle.com/alphanum.jsp. These seemed to work well
> EXCEPT for the cases containing decimal points
> i.e. in the following order 
> 1.2
> 1.3
> 1.25
> 
> Does anyone know of a sort that gets around this problem.

How about something like:

public class Sorter implements Comparator {

     int compare(Object o1, Object o2) {

         if (o1 instanceof Number && o2 instanceof Number) {
             return ((Number)o1).compareTo(o2);
         } else {
             return o1.toString().compareTo(o2.toString());
         }

     }

}

This assumes that your objects are the right type. If they are not, you 
need to determine whether they are numbers or not, before comparing them.

Rogan
-- 
Rogan Dawes

*ALL* messages to [EMAIL PROTECTED] will be dropped, and added
to my blacklist. Please respond to "nntp AT dawes DOT za DOT net"




==========================================================================
TOPIC: Problem with XPath JDOM: Always the same value returned when selecting 
different nodes.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e43bb572dda7f6eb
==========================================================================

== 1 of 2 ==
Date:   Tues,   Sep 14 2004 6:10 am
From: [EMAIL PROTECTED] (Olivier Wulveryck) 

Problem with JDOM 1.0 and XPath
-------------------------------

Hello,

I'm a newbie to JDOM and not so advance in Java.
I've got a problem when using the implementation of the
org.jdom.xpath.XPath API.

Action: Doing a loop to get multiple nodes.
        For each node, try to get the TEXT node of a child

Result: Always the same text is returned

Infos: JDOM: version 1.0
         JRE: 1.4.2_05
         Windows 2000

It sound like the xpath is keeping a value in memory somewhere and
that this value is never released.
Did I miss something with XPath?

Here is what i'm doing

------------------------------ cut here ------------------------
CLASS 1{
        public Vector getSupportedBusObjs()
                                                           throws JDOMException
        {
                Vector temp = new Vector();
                SupportedBusObj sb;
                XPath xpath = null;
                Iterator iter;
                Iterator iter2;
                String debug;
                List bod;
                Namespace cw = Namespace.getNamespace("cw",
"http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";);
                xpath = 
XPath.newInstance("//cw:ContainerConfig/cw:ConnectorConfig/cw:supportedBusinessObjects");
                this.mySupportedBusObjs = xpath.selectNodes(this.jdomDocument);
                iter = mySupportedBusObjs.iterator();

                while (iter.hasNext()) {
                        Element currentElement = (Element)(iter.next());
                        XMLOutputter fmt = new XMLOutputter();
                        bod = currentElement.getChildren("boDetails", cw);
                        iter2 = bod.iterator();

                        while (iter2.hasNext()) {
                                currentElement = (Element)iter2.next();
                                debug = fmt.outputString(currentElement);
                                System.out.println("<debug
name=\"Connector.getSupportedBusObjs().currentElement\">" + debug +
"</debug>");
                                sb = new SupportedBusObj(currentElement);
                                System.out.println("<debug comment=\"Liste des Bos 
ajoutés dans le
vecteur\">" + sb.getNom() + "</debug>");
                                temp.addElement(sb);
                                sb = null;
                                currentElement = null;
                        }
                }
                return temp;
        }
}
------------------------------ cut here ------------------------
class SupportedBusObj{
        public String getNom() throws JDOMException
        {
                XPath xpath2 = XPath.newInstance("//cw:boDetails/cw:name");
                
xpath.addNamespace("cw","http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";);
                System.out.println("<debug meth=\"SupportedBusObj.getNom().1\">" +
this.toXMLString() + "</debug>");
                System.out.println("<debug meth=\"SupportedBusObj.getNom().2\">" +
((Element)xpath2.selectSingleNode(this.getSupportedBusObjElement())).getText()
+ "</debug>");
                
this.setNom(((Element)xpath2.selectSingleNode(this.getSupportedBusObjElement())).getText());
                System.out.println("<debug meth=\"SupportedBusObj.getNom().3\">" +
this.sNom + "</debug>");
                xpath2 = null;
                return this.sNom;
        }
        public String toXMLString()
        {
                if (this.supportedBusObjElement != null) {
                        // Output the document, use standard formatter
                        XMLOutputter fmt = new XMLOutputter();
                        return fmt.outputString(this.supportedBusObjElement);
                } else {
                        return "";
                }
        }
}
------------------------------ cut here ------------------------
Sample XML file:

<?xml version="1.0" encoding="utf-8" standalone="no" ?> 
- <cw:ContainerConfig
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";
xmlns:tns="http://www.ibm.com/websphere/crossworlds/2002/HierarchicalProperties";>
- <cw:ConnectorConfig maxTranLevel="">
- <cw:supportedBusinessObjects>
- <cw:boDetails>
  <cw:name>CodaEnrichissement</cw:name> 
  <cw:isMappingRequired>true</cw:isMappingRequired> 
  </cw:boDetails>
- <cw:boDetails>
  <cw:name>FrCODA_SAS_FRN_ENR_JDBC</cw:name> 
  <cw:isMappingRequired>false</cw:isMappingRequired> 
  </cw:boDetails>
- <cw:boDetails>
  <cw:name>FrCODA_SAS_FRN_JDBC</cw:name> 
  <cw:isMappingRequired>false</cw:isMappingRequired> 
  </cw:boDetails>
  </cw:supportedBusinessObjects>
...
------------------------ Result of execution -------------------------
<debug 
name="Connector.getSupportedBusObjs().currentElement"><cw:supportedBusinessObjects
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:boDetails> <cw:name>CodaEnrichissement</cw:name>
<cw:isMappingRequired>true</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_ENR_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
</cw:supportedBusinessObjects></debug>
<debug name="SupportedBusObj.elementSB()"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>CodaEnrichissement</cw:name>
<cw:isMappingRequired>true</cw:isMappingRequired>
</cw:boDetails></debug>
<debug meth="SupportedBusObj.getNom().1"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>CodaEnrichissement</cw:name>
<cw:isMappingRequired>true</cw:isMappingRequired>
</cw:boDetails></debug>

<debug meth="SupportedBusObj.getNom().2">CodaEnrichissement</debug> 
<debug meth="SupportedBusObj.getNom().3">CodaEnrichissement</debug> 

<debug comment="Liste des Bos ajoutés dans le
vecteur">CodaEnrichissement</debug>
<debug name="SupportedBusObj.elementSB()"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>FrCODA_SAS_FRN_ENR_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired>
</cw:boDetails></debug>
<debug meth="SupportedBusObj.getNom().1"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>FrCODA_SAS_FRN_ENR_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired>
</cw:boDetails></debug>

<debug meth="SupportedBusObj.getNom().2">CodaEnrichissement</debug> 
<debug meth="SupportedBusObj.getNom().3">CodaEnrichissement</debug> 

<debug comment="Liste des Bos ajoutés dans le
vecteur">CodaEnrichissement</debug>
<debug name="SupportedBusObj.elementSB()"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>FrCODA_SAS_FRN_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired>
</cw:boDetails></debug>
<debug meth="SupportedBusObj.getNom().1"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>FrCODA_SAS_FRN_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired>
</cw:boDetails></debug>

<debug meth="SupportedBusObj.getNom().2">CodaEnrichissement</debug> 
<debug meth="SupportedBusObj.getNom().3">CodaEnrichissement</debug> 

<debug comment="Liste des Bos ajoutés dans le
vecteur">CodaEnrichissement</debug>
<debug name="SupportedBusObj.elementSB()"><cw:supportedBusinessObjects
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:boDetails> <cw:name>CodaEnrichissement</cw:name>
<cw:isMappingRequired>true</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_ENR_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
</cw:supportedBusinessObjects></debug>
<debug meth="SupportedBusObj.getNom().1"><cw:supportedBusinessObjects
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:boDetails> <cw:name>CodaEnrichissement</cw:name>
<cw:isMappingRequired>true</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_ENR_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
</cw:supportedBusinessObjects></debug>

<debug meth="SupportedBusObj.getNom().2">CodaEnrichissement</debug> 
<debug meth="SupportedBusObj.getNom().3">CodaEnrichissement</debug> 

<debug name="sbo" iter="1">CodaEnrichissement</debug> 
<debug 
name="Connector.getSupportedBusObjs().currentElement"><cw:supportedBusinessObjects
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:boDetails> <cw:name>CodaEnrichissement</cw:name>
<cw:isMappingRequired>true</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_ENR_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails> <cw:name>FrCODA_SAS_FRN_JDBC</cw:name>
<cw:isMappingRequired>false</cw:isMappingRequired> </cw:boDetails>
<cw:boDetails><cw:name>SuperBOBOBOBOBOBOBOBOBOBOBOBOBOBOBOBOBOBO</cw:name><cw:isMappingRequired>true</cw:isMappingRequired></cw:boDetails></cw:supportedBusinessObjects></debug>
<debug name="SupportedBusObj.elementSB()"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>CodaEnrichissement</cw:name>
<cw:isMappingRequired>true</cw:isMappingRequired>
</cw:boDetails></debug>
<debug meth="SupportedBusObj.getNom().1"><cw:boDetails
xmlns:cw="http://www.ibm.com/websphere/crossworlds/2002/ComponentSchemas";>
<cw:name>CodaEnrichissement</cw:name> <cw:isMappingRequired>true
...

Olivier Wulveryck
AtosOrigin Systems Integration
[EMAIL PROTECTED]



== 2 of 2 ==
Date:   Tues,   Sep 14 2004 6:34 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 14 Sep 2004 06:10:58 -0700, Olivier Wulveryck wrote:

>               System.out.println("<debug meth=\"SupportedBusObj.getNom().2\">" +

Please note, Olivier, that your lines are
far too long to reach news readers without
word-wrap.  This necessitates the reader to
reconstruct the broken lines to see your 
example, and reduces their motivation to help.

For tips on preparing examples for others, ..
<http://www.physci.org/codes/sscce.jsp>

HTH

-- 
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology




==========================================================================
TOPIC: Successor to Java?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9151fedffecef56b
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 6:16 am
From: [EMAIL PROTECTED] (Jesper Nordenberg) 

"George W. Cherry" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Is the successor to Java on anyone's horizon?

I don't see any successor to Java right now. The Java language is
pretty good (with Java 5), the platform implementations (JVM's) are
the best available for any VM language, the available class libraries
are of very high quality and the developer tools are the best
available. As long as Java keeps developing it could remain the most
popular developer platform.

C# is an alternative to Java for developers who don't mind being in
the control of Microsoft. It's not a successor to Java, more like a
clone.

With Java 5 I think some big issues are fixed in the Java language,
like covariant return types, generics and enums. Sure, there are
better, cleaner languages available, but Java is good enough to stick
around until some new revolutionary programming paradigm is invented
(I don't see aspect oriented programming as anything revolutionary).
Maybe the biggest drawback is the lack of access control. The public,
private etc. access control system is too limited. There should be
something similar to C++'s 'friend'.

/Jesper Nordenberg




==========================================================================
TOPIC: Freelance offshore java/wsad programmer
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c80894e5d5a529cb
==========================================================================

== 1 of 2 ==
Date:   Tues,   Sep 14 2004 6:19 am
From: [EMAIL PROTECTED] (Ralph) 

Hi All,

I have several java projects and would like to outsource to offshore
java developer. I am looking for one java programmer to do the
projects one by one.

if you are a j2ee developer and has the following skills
- WSAD 5.1.1
- design pattern, j2ee best practice.
- talent and has time after work.
- would like to do freelance project.

please contact email me.



== 2 of 2 ==
Date:   Tues,   Sep 14 2004 7:09 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 14 Sep 2004 06:19:18 -0700, Ralph wrote:

> I have several java projects and would 
> like to outsource to offshore ..

Off what shore?  

And, why 'offshore'?  Is it something they'd 
get arrested for doing in your country?  ;-)

-- 
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology




==========================================================================
TOPIC: Tablets mean giving up some Java interactivity?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9fce1b75c6f0daef
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 6:21 am
From: "Mickey Segal" <[EMAIL PROTECTED]> 

One of the advantages of Java is being able to add interactivity to programs 
more than is possible with other Web technologies.  As an example, an applet 
can examine input to a TextField and change the TextField contents to flag 
or fix errors.  However, this ability is impaired by the way input from 
Tablet computers (or external pen/tablets) has been implemented.

Input from Tablet computers to Java TextFields triggers only 
textValueChanged events, not Key events (in any reliable or useful way).  In 
addition, modifying the contents of the TextField using setText also 
triggers only textValueChanged events.  So if you want input from a Tablet 
to TextField to be modified by setText you get into infinite recursion of 
textValueChanged calling setText which calls textValueChanged ....

This problem is illustrated with a working applet (without the infinite 
recursion), source code, and examples of output at:
http://www.segal.org/java/tablet_events3/

Are there any good solutions other than giving up calling setText from 
textValueChanged?  Some possible approaches are discussed at the URL above, 
but none seem satisfactory.  A change in the Java specification to create 
new Tablet events or mandate Key events for Tablet input would solve the 
problem, but such changes are not easy. 






==========================================================================
TOPIC: Natural sort order
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/68d8751dc77724df
==========================================================================

== 1 of 2 ==
Date:   Tues,   Sep 14 2004 6:27 am
From: [EMAIL PROTECTED] (Paul) 

I have a field that contains both numeric and alphanumeric entries, so
e.g. when I do an 'order by' in sql I would get the following order

1.2, 1.25, 3, 50, 6, ALMERA, FOCUS

But in this case , the 6 should be above the 50, but the order by
looks at the first digit only.

To get around this, I used the java.util.comparator implementations
that i found on the web at http://www.davekoelle.com/alphanum.jsp and
http://sourcefrog.net/projects/natsort/ -
http://pierre-luc.paour.9online.fr/NaturalOrderComparator.java ,
however both of these fall down when there are decimal points involved
i.e. I'm getting

'1.2', '1.3', '1.25' 

when I should get
'1.2', '1.25', '1.3' 

Because they compare the '3' with '25' and find '25' to be bigger.
Does anyone know of a solution to this ?



== 2 of 2 ==
Date:   Tues,   Sep 14 2004 7:44 am
From: Stefan Schulz <[EMAIL PROTECTED]> 

Paul wrote:

> '1.2', '1.3', '1.25' 
> 
> when I should get
> '1.2', '1.25', '1.3' 
> 
> Because they compare the '3' with '25' and find '25' to be bigger.
> Does anyone know of a solution to this ?

Only one suggestion: If you have a pure number, you can parse it by 
useing Double.parseDouble(String), and then compare the resultant 
doubles. If that fails, you have a "normal" String, and can use the 
default string Comparison. Now all you need to do is make all doubles 
smaller then any String.

Implementing that in a Comparator is left to the reader ;)

See you
Stefan




==========================================================================
TOPIC: fullscreen with display mode 8-bit depth
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/393ca8b6a2e6b7bb
==========================================================================

== 1 of 2 ==
Date:   Tues,   Sep 14 2004 6:37 am
From: [EMAIL PROTECTED] (Thomeer) 

Dear,

I created a Swing application whose window is in fullscreen mode. The
display mode is 1024x768 pixels, 8-bit depth (this is set by the
application itself using setDisplayMode, not through control panel in
Windows). The application contains a toolbar, a slide bar, panels etc.

There is something wrong with the color of the buttons' borders, of
the lines composing the slide bar, etc., and with the icons on the
buttons. When I have the application set a display mode of 16-bit or
32-bit depth, those things look normal (e.g. the buttons have a black
border, the icons on the buttons are partially transparent to only
show a part of the icon). When I have the application set 8-bit depth,
the buttons get a green or blue border, the transparent part of the
button icons becomes black, even text is displayed differently (blue
rather than black). When I change to 8-bit depth *before* starting the
application (in control panel->display->settings), everything is
displayed normally.

Apparently, there is some conflict when the application is started
while Windows is in 32-bit mode, and the display mode is changed to
8-bit by the application. Any ideas on how I can prevent the color
changes in the GUI ?

Thanks,

Tom



== 2 of 2 ==
Date:   Tues,   Sep 14 2004 7:18 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 14 Sep 2004 06:37:56 -0700, Thomeer wrote:

> I created a Swing application 

b) Code?
<http://www.physci.org/codes/sscce.jsp>

> Apparently, there is some conflict when the application is started
> while Windows is in 32-bit mode, and the display mode is changed to
> 8-bit by the application. Any ideas on how I can prevent the color
> changes in the GUI ?

Try 
<http://google.com/groups?th=50dda9410b0efa64#link6>
if that fails, go to plan b)

-- 
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology




==========================================================================
TOPIC: Rolling to different location using DailyRollingFileAppender
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7854fffbd3d59237
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 6:51 am
From: [EMAIL PROTECTED] (Dharmveer Jain) 

I am using DailyRollingFileAppender. I want to know how can I enable
rolling done to some different location (not at the path specified in
log4j.appender.xxx.File).  So whenever date has been changed the
rolled file should get created at some other  location and the new log
file gets created in the original location.




==========================================================================
TOPIC: Servlet as Entry point, default Homepage
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cbf76b232d61f207
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 6:53 am
From: Bryce <[EMAIL PROTECTED]> 

Have you considered using Filters?

On 14 Sep 2004 04:01:46 -0700, [EMAIL PROTECTED] (Robert Kattke) wrote:

>Need a little help on the Architecture of this WebApp!
>I am building a website, in which I wanted to track stats on the
>Referer.
>  String refString = req.getHeader("Referer");
>
>I also need a particular variable "Metro Code" or "mcod", set before
>any of the data-driven pages start to do queries and display
>information. "mcod" can be set, stored and retrieved via either a
>Cookie or Session variable.
>
>Since I was doing some processing, I chose a Servlet as Entry point
>(actually wrapped in a jsp).
>  <jsp:include page="servlet/ReffServ" flush="true" />
>
>However, if "mcod" is not set, I need to direct the user to a pageform
>to let them choose one, otherwise proceed to the main page.  Any
>attempt to Forward or Include either in Serlvet or JSP  is giving me
>errors like:
>StackTrace java.io.IOException: Error: Attempt to clear a buffer
>that's already been flushed
>StackTrace java.lang.IllegalStateException: Cannot forward after
>response has been committed
>
>Suggestions ? Is there an Elegant Solution ? or not so Elegant one ?
>TIA


--
now with more cowbell




==========================================================================
TOPIC: inserting a footer into a pdf
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/99dd863ef5337c7a
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 7:38 am
From: [EMAIL PROTECTED] (Vishnu) 

Hi group

The question may sound too newbish,do excuse me :-)

Iam a Livelink developer and not exactly familiar with Java.And i need
to implement the following functionality.

-> I have large number of pdf documents.I need to insert a small text
as footer into each page of the pdf documents.

Are there libraries which are available *free*,and which can do this
exact functionality?

(I checked out some libraries which actually enables you to create a
new pdf file.So i thought of implementing this by copying the whole
content of the old one into a new file and then inserting footer into
the new one.But then,wont i loose the original formatting information
if the original document doesnt contain any footers?And wont it
overwrite any original footers present?)

Thanks in advance for any pointers.

-Vishnu-



=======================================================================

You received this message because you are subscribed to the
Google Groups "comp.lang.java.programmer".  

comp.lang.java.programmer
[EMAIL PROTECTED]

Change your subscription type & other preferences:
* click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

Report abuse:
* send email explaining the problem to [EMAIL PROTECTED]

Unsubscribe:
* click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe


=======================================================================
Google Groups: http://groups-beta.google.com 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BCfwlB/TM
--------------------------------------------------------------------~-> 

<a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/kumpulan/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to