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

Today's topics:

* OT: Valid filenames on operating systems - 4 messages, 4 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/938eed95c48901c5
* NetBeans 4.0 totally blows. What other IDE's are available? - 7 messages, 5 
authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd46bbd76ba757ee
* [OT] Using hobby source code in your job ? - 3 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60dfe865a7807c4
* Unable to establish a socket connection - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3db1070c05ec0b49
* Rules Engines - Best Practices? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a79bfcda56e2b81c
* Data Structures for Stateful Inspection - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/425c393c88a4243e
* test - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/09a1deda52e95204
* Struts and mapped property - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/737ddf3578199404
* jsp servlet code seperation confusion - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e71d75f30f442d21
* execute shell script from a java app - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/93621a8ac6badf10
* Beginning EJB - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d49babfdb472b21c
* can setter method have more than 1 parameter in JavaBeans? - 1 messages, 1 
author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a3615012bac90dec
* math.pow rounding problem - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3e00e118892196bb

==============================================================================
TOPIC: OT: Valid filenames on operating systems
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/938eed95c48901c5
==============================================================================

== 1 of 4 ==
Date: Sat, Dec 4 2004 5:35 am
From: "Bruce Lee"  


"Joona I Palaste" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Bruce Lee <[EMAIL PROTECTED]> scribbled the following:
> > Windows doesn't allow filename's containing the following characters:
> > \/:*?"<>|
>
> > Is this the same on all operating systems?
>
> > I'm asking because I'm writing a html parser which needs to find valid
urls.
>
> No. AmigaOS only disallows : and /. Unix only disallows /, although with
> clever trickery - in practice accessing the file system's name table
> directly - it's possible to use even / in filenames. You won't be able
> to access that file from the command line, though.
>
> --
> /-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\
> \-------------------------------------------------------- rules! --------/
> "Normal is what everyone else is, and you're not."
>    - Dr. Tolian Soran

Cheers Joona





== 2 of 4 ==
Date: Sat, Dec 4 2004 7:42 am
From: "Ann"  


"Bruce Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Joona I Palaste" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Bruce Lee <[EMAIL PROTECTED]> scribbled the following:
> > > Windows doesn't allow filename's containing the following characters:
> > > \/:*?"<>|
> >
> > > Is this the same on all operating systems?
> >
> > > I'm asking because I'm writing a html parser which needs to find valid
> urls.
> >
> > No. AmigaOS only disallows : and /. Unix only disallows /, although with
> > clever trickery - in practice accessing the file system's name table
> > directly - it's possible to use even / in filenames. You won't be able
> > to access that file from the command line, though.
> >

Let us know how you handle the space character.
(How do you tell the end of the filename.)





== 3 of 4 ==
Date: Sat, Dec 4 2004 9:12 am
From: "Thomas G. Marshall"  

Ann coughed up:
> "Bruce Lee" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>>
>> "Joona I Palaste" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>> Bruce Lee <[EMAIL PROTECTED]> scribbled the following:
>>>> Windows doesn't allow filename's containing the following
>>>> characters: \/:*?"<>|
>>>
>>>> Is this the same on all operating systems?
>>>
>>>> I'm asking because I'm writing a html parser which needs to find
>>>> valid urls.
>>>
>>> No. AmigaOS only disallows : and /. Unix only disallows /, although
>>> with clever trickery - in practice accessing the file system's name
>>> table directly - it's possible to use even / in filenames. You
>>> won't be able to access that file from the command line, though.
>>>
>
> Let us know how you handle the space character.
> (How do you tell the end of the filename.)

If it's a string, presumably then it's the end of the string.

I'm not sure what you're asking/implying.....Unix can clearly use the space
character.  From a shell, you just have to be crafty.  But within an app?
You can do "anything"....

-- 
"Gentlemen, you can't fight in here! This is the War Room!"





== 4 of 4 ==
Date: Sat, Dec 4 2004 11:21 am
From: Joona I Palaste  

Thomas G. Marshall <[EMAIL PROTECTED]> scribbled the following:
> Ann coughed up:
>> "Bruce Lee" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>> "Joona I Palaste" <[EMAIL PROTECTED]> wrote in message
>>> news:[EMAIL PROTECTED]
>>>> Bruce Lee <[EMAIL PROTECTED]> scribbled the following:
>>>>> Windows doesn't allow filename's containing the following
>>>>> characters: \/:*?"<>|
>>>>
>>>>> Is this the same on all operating systems?
>>>>
>>>>> I'm asking because I'm writing a html parser which needs to find
>>>>> valid urls.
>>>>
>>>> No. AmigaOS only disallows : and /. Unix only disallows /, although
>>>> with clever trickery - in practice accessing the file system's name
>>>> table directly - it's possible to use even / in filenames. You
>>>> won't be able to access that file from the command line, though.
>>
>> Let us know how you handle the space character.
>> (How do you tell the end of the filename.)

Putting the filename in double quotes "" works for both AmigaOS and
Unix. If the filename itself contains double quotes, you have to
escape them. The escape character is * for AmigaOS and \ for Unix.
Escaping the escape character itself is done by doubling it.

-- 
/-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"It sure is cool having money and chicks."
   - Beavis and Butt-head




==============================================================================
TOPIC: NetBeans 4.0 totally blows. What other IDE's are available?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd46bbd76ba757ee
==============================================================================

== 1 of 7 ==
Date: Sat, Dec 4 2004 6:21 am
From: Thomas Kellerer  

xarax wrote on 04.12.2004 14:14:
> I had to go back to 3.6 temporarily, but it
> doesn't understand J2SE 5.0.
> 
> If you have anything in NB 3.6 projects that
> is more complicated than "Hello World!", then
> migrating to 4.0 is a nightmare and impossible.
> They changed the whole project paradigm into
> a braindead disaster.

I have to agree here. The idea of having an Ant based project system itself 
is quite nice, but the implementation lacks the usability the old 
"mounting" system had.

Thomas



== 2 of 7 ==
Date: Sat, Dec 4 2004 6:44 am
From: Michael Rauscher  

Thomas Kellerer wrote:
> xarax wrote on 04.12.2004 14:14:
> 
[...]
>> migrating to 4.0 is a nightmare and impossible.
>> They changed the whole project paradigm into
>> a braindead disaster.
> 
> 
> I have to agree here. The idea of having an Ant based project system 
> itself is quite nice, but the implementation lacks the usability the old 
> "mounting" system had.

Why?

Bye
Michael



== 3 of 7 ==
Date: Sat, Dec 4 2004 6:40 am
From: Steve  

Thomas Kellerer wrote:

( concerning netbeans 4.0 changes )

> I have to agree here. The idea of having an Ant based project system 
> itself is quite nice, but the implementation lacks the usability the old 
> "mounting" system had.

Why?

Many people found having to mount directories confusing and worse needless.

What was it about netbeans 3.6 not being automatically connected/mounted 
to a directory structure had more usability.

I'm not being sarcastic, I'm legitamitely curious about your opinion.

Steve

-- 
Be A Healthy Vegan Or Vegetarian
http://www.geocities.com/beforewisdom/Veg/healthyVeg.html

Steve's Home Page
http://www.geocities.com/beforewisdom/

"The great American thought trap:  It is not real
unless it can be seen on television or bought in a
shopping mall"





== 4 of 7 ==
Date: Sat, Dec 4 2004 7:30 am
From: Thomas Kellerer  



Steve wrote on 04.12.2004 15:40:

> Thomas Kellerer wrote:
> 
>> I have to agree here. The idea of having an Ant based project system 
>> itself is quite nice, but the implementation lacks the usability the 
>> old "mounting" system had.
> 
> Why?
> 
> Many people found having to mount directories confusing and worse needless.
> 
That's only because the NB developers chose to use the word "mounting" instead
of "add to classpath". I believe if they had chosen the latter, nobody 
would have complained about the concept.

I liked the concept. You need another directory in your classpath? Right 
click on the root node, choose mount directory, done.

You can have any number of directories in there without going through three 
different tabs of a "project wizard" where you need to specify much more 
then really necessary.

The "mounting" paradigm was as close to the classpath idea as one could 
imagine. That's why I liked it.

The problem with the old concept was, that you could not move a project 
definition from one computer to another. But the complicated setup in 4.0 
doesn't make that better. If I want to add another directory with Java 
sources, I have to create a new project. Which might make sense in some 
cases but not in all (this deficiency has onyl recently been taken care of)

There are so many little features that were simply discarded with the new 
system that were essential to the usability of NB. Some of them have been 
added during the beta phase due to the outcry of the user community (e.g. 
missing the "run file" possibility in a Web Project)

it's more the implementation then the actual concept that I don't like. Why 
do I have different types of projects? I have different types of 
directories (e.g. "regular" class definitions and web modules) but 
attaching this to the whole project doesn't make sense in my eyes.

My guess is that NB will take at least 2 or 3 more versions until the NB 
developers (whose work is very much appreciated from my side, don't get me 
wrong) will have included all the features that users loved in the old 
version.

I know that there are a lot of people out there who like the new style 
better, and that's fine. In the end everybody choses the products/tools 
that suits his/her style of work best, but I reserve the right for me to 
find the new project system much more complicated then the old one.

Thomas




== 5 of 7 ==
Date: Sat, Dec 4 2004 7:30 am
From: [EMAIL PROTECTED] 

Andrew Thompson <[EMAIL PROTECTED]> wrote:
> Unfortunately, I don't know of any IDE's that suck,
> but for a lighterweight editor you might try TextPad.  
> (OK.. it is shareware, but close to free)

I'll chime in here and say I've had good luck with jEdit
( http://www.jedit.org ).  There are lots of plug-ins avaialble for
jEdit which can turn it into a pretty comfortable Java development
environment.



== 6 of 7 ==
Date: Sat, Dec 4 2004 8:16 am
From: David Segall  

"xarax" <[EMAIL PROTECTED]> wrote:

>Subject line says it all. NetBeans 4.0 is a
>total disaster. I need something else that is
>free.
>
If you want a comparable GUI builder try JBuilder
(http://www.borland.com/jbuilder/foundation/index.html). Otherwise,
_the_ open source alternative is Eclipse (http://www.eclipse.org/) 



== 7 of 7 ==
Date: Sat, Dec 4 2004 9:02 am
From: Steve  

Thomas Kellerer wrote:
> 
> 
> Steve wrote on 04.12.2004 15:40:
> 
>> Thomas Kellerer wrote:
>>
>>> I have to agree here. The idea of having an Ant based project system 
>>> itself is quite nice, but the implementation lacks the usability the 
>>> old "mounting" system had.
>>
>>
>> Why?
>>
>> Many people found having to mount directories confusing and worse 
>> needless.
>>
> That's only because the NB developers chose to use the word "mounting" 
> instead
> of "add to classpath". I believe if they had chosen the latter, nobody 
> would have complained about the concept.

I agree.  I never made that connection ( I only casually try netbeans 
once in a blue moon ), but the way you describe it sounds like a plus 
that got lost due to a confusion originating from bad nomenclature.

Steve


Be A Healthy Vegan Or Vegetarian
http://www.geocities.com/beforewisdom/Veg/healthyVeg.html

Steve's Home Page
http://www.geocities.com/beforewisdom/

"The great American thought trap:  It is not real
unless it can be seen on television or bought in a
shopping mall"






==============================================================================
TOPIC: [OT] Using hobby source code in your job ?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60dfe865a7807c4
==============================================================================

== 1 of 3 ==
Date: Sat, Dec 4 2004 6:44 am
From: "MikeB"  


> My understanding is that any written work is automatically copyrighted
> as soon as it's set down in tangible form.  I'm not sure what, if any,
> additional legal protection is added by using a copyright header.

  I think it's awfully presumptuous that any snippet that you write is so
unique that it could be NOT considered part of the public domain and could have
a copyright applied...

All this talk about hobby code, unless it applies to an application,
independent in its' own right, and applicable to a specific task, or at very
least a group of tasks, is much ado about nothing..

And definitely not On Topic here...





== 2 of 3 ==
Date: Sat, Dec 4 2004 9:25 am
From: [EMAIL PROTECTED] (J French) 

On Fri, 3 Dec 2004 20:47:52 +0100, "Skybuck Flying"
<[EMAIL PROTECTED]> wrote:

>Ok,
>
>Suppose you have programmed a lot of "re-useable" source code.
>
>Suppose you're considering taking a programming job in the same language as
>your hobby programming language.
>
>The question rises:
>
>1. Do you use your hobby source code in your job ?

My view is that what you 'take in' to a company is both yours and
theirs 
- you have prior ownership, but by using it in production code you are
implicitly giving the right to use the code to the company.

What you do while working for the company is more difficult.
One can easily spend thinking time at work
- and run up the code at home

Mostly companies are worried about 'non compete' agreements
- there are few things more irritating than seeing an ex-employee move
to another company (or set up their own) in direct competition.

Regarding code copyright, it is similar to some advice I once heard
about Insider Trading - 'That is what mothers in law are for'

'Taking In' a mature product is a totally different thing



== 3 of 3 ==
Date: Sat, Dec 4 2004 10:10 am
From: "Nobody"  

"Maarten Wiltink" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> "Nobody" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> [...]
>>> 1. Do you use your hobby source code in your job ?
>>
>> Yes. If I need a specific control that I already have in my library,
>> I have no intention of re-writing it. That would be f!#$ken stupid
>> and a waste of my time. I could copy and past just the parts that I
>> need, but my library is too interwoven for that.
>
> The biggest waste is that of company money. They are, after all, paying
> for my time. If done work redone is what they want, they can have it
> for all I care.

You might not care about re-writing stuff, but I do. In my case GUI controls 
are often tedious to write. Tedious twice is boring.

>
>>> This could create problems ?!?
>>
>> It can only cause you problems if you start to rock the boat...
>> <and more along this line>
>
> This is a pragmatist's viewpoint. An extreme pragmatist. Not everything
> you will probably get away with is ethical.

Well, I guess thats where we differ :). I have worked for enough lousy 
companies (and one decent one) where the sleazy world of "company ethics" 
has been revealed.  Companies are INHERENTLY unethical. They are scum (p.s., 
I am 29 and have been programming professionally for 9yrs). Think about it. 
The average salaried Sr. Software Engineer will get about $90k to $120k per 
year in the US. How much will your manager make? probably quite a bit more 
in base + bonuses + stock options -- for doing quite a bit less (shooting 
the shit in meetings all day). At the average company, the average manager 
could make 2 to 3 times the money after its all said and done for doing 
almost nothing except project schedules. How about more Sr. managers? well, 
by the time you get higher up in the company, people are making 10 times or 
more what you make, again, for doing very little.

Sorry, but why should I work my ass off to make them rich? you call it 
unethical, I call it realistic. If a manager is making $500k a year and I am 
making $90k to $120k, thats not fair. Yes thats how business works, and 
thats why I really don't give a shit. I don't go out of my way to help the 
company.

And in case you are wondering... my company loves me, but do they show it 
with money or other compensation? hell no. If my manager is making $500k a 
year base, "fair" is me making over $300k to $400k, if not more. After all, 
the manager is making money off MY work. As is the company.

The amount of stock options is equally out of wack.

That was slightly off topic, but was to make my point. I could really not 
give a shit about ethics or the company. If I am not making any money off my 
work, I'm just a salaried employee, so I  am not going to go out of my way 
to do extra or put in long hours, etc.

And as I said before, I hide my opinion around most people, and my company 
loves me, but I could really not give a shit about helping them since I know 
I'm not being compensated fairly.

Yes I am bitter :)

> A company hiring a programmer is inherently buying access to
> _knowledge_. As a programmer myself, I see little enough difference
> between what's in my head and what's on my (home) harddisk. They can
> have the use, but not the ownership, of both.
>
> I have been careful in my last four jobs to have in my contract that
> anything done on my own time that is not directly related to however
> the company makes its money, is none of their business. If I write a
> game on my own time, it's mine. If I have a good idea how to solve a
> work problem, of course it's theirs. If it makes them _really_ big
> money, they would of course do well to acknowlege it and motivate me
> to have more ideas like that.
>
> Groetjes,
> Maarten Wiltink
>

Well, here in the US, companies are pretty much in charge. Often, if you 
rock the boat by asking for stuff in contracts they'll just get someone else 
who rolls over.






==============================================================================
TOPIC: Unable to establish a socket connection
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3db1070c05ec0b49
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 7:11 am
From: [EMAIL PROTECTED] (S J Rulison) 

Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> On 3 Dec 2004 14:07:43 -0800, S J Rulison wrote:
> 
> I see that you are posting through Google ..S J.  (what do we call you?)

My full name is Steve John Rulison.  I go by Steve.


> 
> Can I ask you to please quote a *little* of what you are replying to,
> to give a context to your replies.  Look carefully at the way that 
> the others in this thread are replying to you.  A little of what you said,
> then a comment in reply.

The quote in my last post (post 26) came from Steve Horsley (post 
22).

Let me reiterate that I am NOT repeating NOT running the java server
application on a WEB SERVER.  The java server application is running
on a standard Windows XP Professional workstation that resides on our
LAN.  When I load the Applet1.html into the web browser, I type
\\Jserver\JavaServer\Applet1.html into the URL address box.  The
Applet1.html file resides in a shared directory called JavaServer.

> > Okay.  Here is the revised source code w/o the tabs and the results.
> 
> Okay, now I am a little confused.  Your results tell us a little 
> more than we knew, but they are *not* what I was expecting.
> 
> ...
> >          System.out.println("Check point 1a");
> >          System.out.println( "Code Base: '" 
> >          + getCodeBase() + "'" );
> 
> Your Stacktrace is indicating an error in this line *as well*.
> 
> That was not the behaviour I was observing here.  
> (I got a file path for codebase and '' for host.)
> ..
> > Check point 1a
> > java.lang.NullPointerException
> >    at java.applet.Applet.getCodeBase(Unknown Source)
> 
> ...hmmmm.
> 
> What is your exact (simple) HTML in the web page?
> Either post it vebatim or link to (either it or a copy 
> of) it on the web.

Here is a copy of the html.  As you can see it's pretty basic.  This
html file resides in the same directory as the Applet1.class file on
the JServer workstation.

<HTML>

<HEAD>
<TITLE>Applet1</TITLE>
<CENTER><H1>Test Java Applet</H1></CENTER>
</HEAD>

<BODY>
    <CENTER>
    <APPLET CODE=Applet1.class WIDTH=600 HEIGHT=450></APPLET>
    </CENTER>
</BODY>

</HTML>




==============================================================================
TOPIC: Rules Engines - Best Practices?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a79bfcda56e2b81c
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 7:45 am
From: [EMAIL PROTECTED] (Cindi Jenkins) 

See here: http://blogs.ittoolbox.com/eai/leadership/




==============================================================================
TOPIC: Data Structures for Stateful Inspection
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/425c393c88a4243e
==============================================================================

== 1 of 2 ==
Date: Sat, Dec 4 2004 8:26 am
From: "Captain Blammo"  

I'm trying to write a basic stateful packet inspection application using
JPcap in order to get a bit more familiar with TCP/IP, and was wondering if
anyone could point me in the direction of the best/most common algorithms
and data structures for delivering data to the right buffer based on source
and destination IP and port for an incoming segment.

Thanks for any info!

CB






== 2 of 2 ==
Date: Sat, Dec 4 2004 9:14 am
From: "Thomas G. Marshall"  

Captain Blammo coughed up:
> I'm trying to write a basic stateful packet inspection application
> using JPcap in order to get a bit more familiar with TCP/IP, and was
> wondering if anyone could point me in the direction of the best/most
> common algorithms and data structures for delivering data to the
> right buffer based on source and destination IP and port for an
> incoming segment.


Forgive my ignorance, but this almost sounds like you might benefit from
looking for NAT algorithms...


-- 
"Gentlemen, you can't fight in here! This is the War Room!"






==============================================================================
TOPIC: test
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/09a1deda52e95204
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 9:36 am
From: [EMAIL PROTECTED] 

test




==============================================================================
TOPIC: Struts and mapped property
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/737ddf3578199404
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 9:43 am
From: Oscar kind  

ShadowMan <[EMAIL PROTECTED]> wrote:
> using mapped property.
> When I put them into HTML form it result in INPUT fields having names like 
> 'map1(property1)' this leads to problems in writing Javascript.
> Can I use another format in mapped property names?!

No. At least not without rewriting that part of Struts.

You can however, use javascript constructs like this in a form input
element:
        this.form.elements['map1(text1)'].value = 'foo'


-- 
Oscar Kind                                    http://home.hccnet.nl/okind/
Software Developer                    for contact information, see website

PGP Key fingerprint:    91F3 6C72 F465 5E98 C246  61D9 2C32 8E24 097B B4E2




==============================================================================
TOPIC: jsp servlet code seperation confusion
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e71d75f30f442d21
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 10:16 am
From: Michael Borgwardt 
 

Martman wrote:
> In the last couple of years this code seperation theory has overloaded 
> the programming world. .Net does it with what's called code behind. In 
> my research of Java the only things I see that reference code seperation 
> is servlets (I am sure J2EE and EJB contribute also). However, 
> everything I have read on servlets reference outputing HTML back to the 
> browser via the HttpServletResponse and Request objects.

Then your sources are bad or you misunderstood something. The idea is to
separate display-related code from the program logic and use JSPs for
(and *onyl* for) rendering HTML pages, while servlets and regular Java
classes handle the program logic.




==============================================================================
TOPIC: execute shell script from a java app
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/93621a8ac6badf10
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 10:31 am
From: Alex Kizub  

> import java.io.*;
>
> public class Test {
>         public static void main(String [] args) {
>                 try {
>                         Runtime rt = Runtime.getRuntime();
>                         Process ps = rt.exec("vi test.txt");
>                         OutputStream os = ps.getOutputStream();
>                         InputStream is = ps.getInputStream();
>                         DataOutputStream dos = new DataOutputStream(os);
>                         dos.writeBytes("i");
>                         dos.writeBytes("test");
>                         dos.writeBytes("u001B");
>                         dos.writeBytes(":wq");
>                         dos.flush();
>                         ps.waitFor();
>                         dos.close();
>                         System.out.println(ps.exitValue());
>                 }
>                 catch (Exception ex)
>                 {
>                         System.out.println(ex);
>                 }
>         }
> }





==============================================================================
TOPIC: Beginning EJB
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d49babfdb472b21c
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 11:09 am
From: "Nagu"  

Thanks everyone for the advice.

Nagendra





==============================================================================
TOPIC: can setter method have more than 1 parameter in JavaBeans?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a3615012bac90dec
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 11:10 am
From: "Heiner Kücker"  

"Matt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> In JavaBeans, the getter and setter methods always have signatures like this:
> public void setXxx(Type xxx)
> public Type getXxx()
>
> Can we declare a setter method that takes more than 1 parameter, like
> public void mysetter(Type xxx, Type yyy)
> This article (http://www.it-careernet.com/itc/javabeantechnology.htm)
> in Indexed Properties section has 2 parametes in setter method.
>
> I am confused.
>
> Please advise. Thanks!!

One parameter is the value and one parameter is the index (int).

The index is the position in the underlaying array or collection
by base zero ( 0....* )

Heiner Kuecker
Internet: http://www.heinerkuecker.de  http://www.heiner-kuecker.de
JSP WorkFlow PageFlow Page Flow FlowControl Navigation: 
http://www.control-and-command.de
Expression Language Parser: http://www.heinerkuecker.de/Expression.html






==============================================================================
TOPIC: math.pow rounding problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3e00e118892196bb
==============================================================================

== 1 of 1 ==
Date: Sat, Dec 4 2004 11:19 am
From: "Jimmy zhang"  

Hi, I tried Math.pow(10,-21) and expected to see 1e-21.
But instead I saw 1.00000000001e-21. what should I
do to get rid of the trailing 0.0000000000001??

Thanks,
Jimmy





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

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