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

Today's topics:

* where to find other java api collections like following web address?@@. - 2 
messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6767c71cf20aee44
* Tomcat and jTDS - not that stable... - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4c23245a26d17c26
* Help me improve parsing trick? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8ba6b745fd0b06de
* An efficient computation idea. Please comment - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5d714c128b46864f
* How to get a formatted XML file with TransformerFactory? - 1 messages, 1 
author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/daad9b9e18ce3eb5
* Downloading via proxy with applet - 4 messages, 4 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34aa27ae22932b86
* J2ME system service / listener - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ae6cc82d6ab83b4a
* Regexp and Pattern.class - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/75d34aa3568519a1
* Preventing eternal hang - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7d0a953f95b084b6
* passing different arguments to targets in ant - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cec7a8077c1ba2c6
* looping in ant scripts - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e8de4ddc04064a17
* CVS connection problem in Eclipse using ext or extssh - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f210a50f0bbbf32b
* Avoid executing a job with quartz scheduler - HELP please i am stumped - 1 
messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/86bbfd6bcb86fa17
* DAO pattern - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ba356da99ce3584f
* Expand JPanel on runtime without losing picture - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/74b47eb2c773d3af
* Calling the native Linux mutt module from Java... - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/52d060d3a36936c5
* JSTL tags in output - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5784c409befba099
* switch to editor when renderer gets focus - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/87aef42492149a58

==============================================================================
TOPIC: where to find other java api collections like following web address?@@.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6767c71cf20aee44
==============================================================================

== 1 of 2 ==
Date: Mon, Dec 20 2004 9:27 am
From: "Paul E. Stober"  

on Sun, 19 Dec 2004 19:43:14 -0800 wrote mikeotp:


> where to find other java api collections like following web address?@@.
> 
> http://www.jdocs.com/jdom/1.0b10/api/org/jdom/xpath/XPath.html

Maybee here:
http://jakarta.apache.org/commons/index.html

regards, Paul



== 2 of 2 ==
Date: Mon, Dec 20 2004 6:20 am
From: "Ryan Stewart"  

"mikeotp" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> regards:
>
> where to find other java api collections like following web address?@@.
>
> http://www.jdocs.com/jdom/1.0b10/api/org/jdom/xpath/XPath.html
>
Anywhere that produces Java libraries and follows good code practices (i.e. 
comments their code). Is there something in particular that you are looking 
for? 






==============================================================================
TOPIC: Tomcat and jTDS - not that stable...
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4c23245a26d17c26
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 9:06 am
From: "Alin Sinpalean via JavaKB.com"  

Rico,

If you encounter any problems with jTDS please submit them as bugs on 
SourceForge. We'll be more than glad to help you out.

Cheers,
Alin Sinpalean,
The jTDS Project.

-- 
Message posted via http://www.javakb.com




==============================================================================
TOPIC: Help me improve parsing trick?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8ba6b745fd0b06de
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 10:37 am
From: bugbear  

Aaron Fude wrote:
> Hi,
> 
> I use this trick for parsing mathematical expressions, that when a user 
> enters sin(x) + cos(x) my program pastes that line into a java class 
> "template", writes the code to some file, runs a shell command to compile it 
> and then loads the class. There are several advantages over something like 
> "JEP". First, I can use any java expression. Second, compiled code then runs 
> much faster.

How often is the expression evaluated?

    BugBear




==============================================================================
TOPIC: An efficient computation idea. Please comment
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5d714c128b46864f
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 10:43 am
From: bugbear  

Aaron Fude wrote:

I think a book on numerical analysis would serve
you better than one on compiler design.

     BugBear




==============================================================================
TOPIC: How to get a formatted XML file with TransformerFactory?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/daad9b9e18ce3eb5
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 11:57 am
From: "Zsolt"  

Hi,

I use the code below (jdk-1.4.2-06) to write into XML files. How can I get 
an indented output like below:

<top>
   <sub>Hello</sub>
   <sub2>Hello2</sub2>
   <sub3>
        <sub4>Hello3</sub4>
   </sub3>
</top>

DOMSource source = new DOMSource(root);
  TransformerFactory tFactory = TransformerFactory.newInstance();
  Transformer transformer = tFactory.newTransformer();
  Properties props = new Properties();
  props.setProperty(OutputKeys.ENCODING, "UTF-8");
  props.setProperty(OutputKeys.METHOD, "xml");
  props.setProperty(OutputKeys.INDENT, "yes");

  transformer.setOutputProperties(props);

  StringWriter ascii = new StringWriter();
  StreamResult result = new StreamResult(ascii);
  transformer.transform(source, result);

Zsolt 






==============================================================================
TOPIC: Downloading via proxy with applet
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34aa27ae22932b86
==============================================================================

== 1 of 4 ==
Date: Mon, Dec 20 2004 11:17 am
From: "Sir Ben"  

Hi,

I need to develop an applet that will download data into itself from the web 
via a proxy.

Is this possible?  Or is it against the security constraints set by Java's 
sandbox model?

Thanks,

Sir Ben.





== 2 of 4 ==
Date: Mon, Dec 20 2004 1:18 pm
From: Patrick Hofmann  

Sir Ben wrote:
> Hi,
> 
> I need to develop an applet that will download data into itself from the
> web via a proxy.
> 
> Is this possible?  Or is it against the security constraints set by Java's
> sandbox model?

sure it is possible, but the user will be asked to accept the security-risks
(and you have to sign your applet)

greets,
paff



== 3 of 4 ==
Date: Mon, Dec 20 2004 1:20 pm
From: Stefan Schulz  

On Mon, 20 Dec 2004 13:18:06 +0100
Patrick Hofmann <[EMAIL PROTECTED]> wrote:

> > I need to develop an applet that will download data into itself from
> > the web via a proxy.
> > 
> > Is this possible?  Or is it against the security constraints set by
> > Java's sandbox model?
> 
> sure it is possible, but the user will be asked to accept the
> security-risks(and you have to sign your applet)

Unless you have a server-side component that serves as the Proxy, which
is situated on the host the Applet gets downloaded from.

-- 
In pioneer days they used oxen for heavy pulling, and when one ox
couldn't budge a log, they didn't try to grow a larger ox. We shouldn't
be trying for bigger computers, but for more systems of computers.
           --- Rear Admiral Grace Murray Hopper



== 4 of 4 ==
Date: Mon, Dec 20 2004 9:07 am
From: "John C. Bollinger"  

Sir Ben wrote:

> I need to develop an applet that will download data into itself from the web 
> via a proxy.
> 
> Is this possible?  Or is it against the security constraints set by Java's 
> sandbox model?

An unprivileged applet may make network connections only to the server 
from which it was downloaded.  If you use that server as your proxy, or 
if you establish a relay on that server (which you could characterize as 
a second proxy) then you can do what you describe within the security 
constraints applied by default to applets.  To allow your applet to make 
connections to other hosts you will need to sign it, and clients will 
need at runtime to accept the signed applet as trusted.


John Bollinger
[EMAIL PROTECTED]




==============================================================================
TOPIC: J2ME system service / listener
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ae6cc82d6ab83b4a
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 7:15 am
From: "Darryl L. Pierce"  

[EMAIL PROTECTED] wrote:
> Which handsets support that ?

I don't know. I meant that it depends on whether the handset's operating 
system lets you write applications that will run as a daemon.

> Are all handsets running Symbian Series 60 act the same way ?

I don't know. Sorry, I'm not a Symbian expert.

-- 
Darryl L. Pierce <[EMAIL PROTECTED]>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
     - Peter Abelard




==============================================================================
TOPIC: Regexp and Pattern.class
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/75d34aa3568519a1
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 4:28 am
From: [EMAIL PROTECTED] 

Hi Tilman

??' in the input results in ?????' in the output file and ???' in the
input file results in ???????' in the output.

Regards
Roger





==============================================================================
TOPIC: Preventing eternal hang
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7d0a953f95b084b6
==============================================================================

== 1 of 2 ==
Date: Mon, Dec 20 2004 12:34 pm
From: "Ike"  

Is there a way I can  wrap the following in such a manner such that if no
value is returned by after X seconds, the method throws an IOException ?

 private  InputStream  getFromServlet( URLConnection uc) throws
java.io.IOException {
        return uc.getInputStream();
}

I know in 1.5 this is built into getInputStream, but I need compatibility to
lower-version JVMs. Thanks, Ike





== 2 of 2 ==
Date: Mon, Dec 20 2004 2:39 pm
From: Andrea Desole  

I would put it in a separate thread. You can interrupt this thread after 
a timeout. It should work


Ike wrote:
> Is there a way I can  wrap the following in such a manner such that if no
> value is returned by after X seconds, the method throws an IOException ?
> 
>  private  InputStream  getFromServlet( URLConnection uc) throws
> java.io.IOException {
>         return uc.getInputStream();
> }
> 
> I know in 1.5 this is built into getInputStream, but I need compatibility to
> lower-version JVMs. Thanks, Ike
> 
> 




==============================================================================
TOPIC: passing different arguments to targets in ant
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cec7a8077c1ba2c6
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 5:04 am
From: "sri"  

is there any way we can call the same ant target many times(in some
kind of loop) each time the target should execute with different
parameter.
and how to loop in ant





==============================================================================
TOPIC: looping in ant scripts
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e8de4ddc04064a17
==============================================================================

== 1 of 2 ==
Date: Mon, Dec 20 2004 5:30 am
From: "sri"  

this is the target in ant script to create a single jar file for a
module

<target name="deployjar">
<jar jarfile="${deploy}/PTS${moduleTitle}-${DSTAMP}-${TSTAMP}.jar" >
<fileset dir="${build}" >
<exclude name="${web}/**/*.*" />
</fileset>

<fileset dir="${src}\ejb\${moduleName}\META-INF" />
</jar>
</target>

the problem is i have 10 such modules
should i repeat this script for each of the 10 modules to create 10 jar
files or
is there some way to loop or invoke the target with different module
names
and create different jar with different module titles
if there is a way how can we pass different property values for each
invocation?




== 2 of 2 ==
Date: Mon, Dec 20 2004 9:11 am
From: "John C. Bollinger"  

sri wrote:

> this is the target in ant script to create a single jar file for a
> module

[...]

> is there some way to loop or invoke the target with different module
> names
> and create different jar with different module titles
> if there is a way how can we pass different property values for each
> invocation?

Ant 1.6 has a macro feature that might get you where you want to go.  If 
you're using 1.6 then look up <MacroDef> among the core tasks.


John Bollinger
[EMAIL PROTECTED]




==============================================================================
TOPIC: CVS connection problem in Eclipse using ext or extssh
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f210a50f0bbbf32b
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 5:34 am
From: "fivepopes"  

In lack of a solution, I've registeret this problem as a bug in
Eclipse. If you're interested, you can follow this thread at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=80670





==============================================================================
TOPIC: Avoid executing a job with quartz scheduler - HELP please i am stumped
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/86bbfd6bcb86fa17
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 6:03 am
From: [EMAIL PROTECTED] (Harri) 

Hello, 

i have an webapplication using the quartz scheduler and implemented a
job that is triggered by a crontrigger every minute. Sometimes i want
to avoid executing the job for one time. how can i achieve that?

 
Thanks for your help!




==============================================================================
TOPIC: DAO pattern
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ba356da99ce3584f
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 5:07 pm
From: "Alexey J.1001958768"  

Hello!

Question addresses primary to object relation mappers users.

Does anyone explain me why business objects shouldn't have a dependency on
the persistent layer (DAO objects).
I want to exclude business logic from a controller and concentrate it into a
business objects. Methods of the business object
must intensively use DAOs. But it violates this dogma.

And question: how could I able to write more complicated business methods
without access to DAO objects?

Thanks.
Sorry for my poor English.






==============================================================================
TOPIC: Expand JPanel on runtime without losing picture
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/74b47eb2c773d3af
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 3:24 pm
From: "Adrian M. Hanslik"  

Hello there,

I have a JPanel which shows a GeneralPath.
As the path sometimes is bigger than the canvas,
I'd like to expand it on demand (during runtime)
to the left or right.

My only idea was to copy the GeneralPath,
resize the canvas and put the path onto it.
But are there any easier or better ways to do it?

Thanks a lot
Adrian






==============================================================================
TOPIC: Calling the native Linux mutt module from Java...
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/52d060d3a36936c5
==============================================================================

== 1 of 2 ==
Date: Mon, Dec 20 2004 2:42 pm
From: K2  

First, please don't flame me (I love folks who start posts like this) if 
you feel this is not completely on topic, as it is related.

I'm attempting to perform a command-line operation from the Linux based 
mutt module which simply sends an email with attachment via a call with 
Runtime.getRuntime().exec()
The command as formatted performs flawlessly when run directly within 
the Linux shell environment, but fails when run from the Java process. 
The only thing I've determined is that the return code is "1" which I 
assume simply means "error" (I've been flamed by the mutt group who had 
this remarkable insight for me).

Anyone here used this or a similar module with success or have some 
recommendations as to how to debug this?


-- 
If replying directly, please edit out the cleverly
decorated bits from my email address.



== 2 of 2 ==
Date: Mon, Dec 20 2004 7:11 am
From: Gordon Beaton  

On Mon, 20 Dec 2004 14:42:48 GMT, K2 wrote:
> I'm attempting to perform a command-line operation from the Linux
> based mutt module which simply sends an email with attachment via a
> call with Runtime.getRuntime().exec()
>
> The command as formatted performs flawlessly when run directly
> within the Linux shell environment, but fails when run from the Java
> process. The only thing I've determined is that the return code is
> "1" which I assume simply means "error" (I've been flamed by the
> mutt group who had this remarkable insight for me).
> 
> Anyone here used this or a similar module with success or have some
> recommendations as to how to debug this?

Read from the child process' stdout and stderr streams, the program
probably tells you why it fails. You should do that anyway, since
failing to do so could cause it to hang.

Other than that, post the relevant code and the exact command line
that fails.

/gordon

-- 
[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e




==============================================================================
TOPIC: JSTL tags in output
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5784c409befba099
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 7:04 am
From: [EMAIL PROTECTED] 

Hi,

What are some of the more common reasons for JSTL tags appearing in the
final generated HTML? Where should I start to look?

Thank you,
Kate





==============================================================================
TOPIC: switch to editor when renderer gets focus
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/87aef42492149a58
==============================================================================

== 1 of 1 ==
Date: Mon, Dec 20 2004 7:14 am
From: [EMAIL PROTECTED] 


John McGrath wrote:
>
> Have you tried table.setSurrendersFocusOnKeystroke(true) ?
>
> --
> Regards,
>
> John McGrath

I use it all the time.  It is especially useful for changing the editor
to the renderer on columns that are no longer being edited.  However,
it has no effect for changing the renderer to the editor on columns
that have focus.

THX




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

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

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.java.programmer

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

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

Reply via email to