[ { "url": "https://www.coderanch.com/t/192517/certification/Marcus-tutorial", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nMarcus's tutorial on I/O (OCPJP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nMarcus's tutorial on I/O\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 277
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n

Hi ,
In the marcus tutorial of java io he asked a question at last
Which of the following statements are true?
1) Java uses a system called UTF for I/O to support international character sets
2) The RandomAccessFile is the most suitable class for supporting international character sets
3) An InputStream class may not be chained to an OutputClass
4) File I/O activities requires use of Exception trapping

and given answer is 1,3,4. i have question on answer '3'.
In the explanation of answer he said :
\n\t\t\t


InputStreams can only be chained to other OutputStreams and OutputStreams can only be chained to other OutputStreams.

\n\t\t

I think he wants to say InputStreams can only be chained to other InputStreams and �... please correct me if I am wrong.
Please help me.
vivek
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nVivek Shrivastava\n
\n
\nRanch Hand\n
\n
Posts: 277
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Please someone come forward. i am looking forward to hear from u.
thanks in advance.
vivek
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 1467
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
vivek,
Yes. You are correct. I think Marcus made a typo here.
There is ONLY ONE exception to the above statement as you may know it already. The exception IO class is PipedInputStream which can be connected to a PipedOutputStream which again is another OutputStream and the same info holds true for PipedOutputStream which again takes a PipedInputStream as argument in its constructor.
Since except this one class ALL other IO InputStream class types can be connected to only other SAME/Lowlevel InputStream types we can almost say the above (to be corrected by Marcus) statement by Marcus as a generalized statement.
regds
maha anna
From Java API
------------
PipedInputStream(PipedOutputStream src)
Creates a PipedInputStream so that it is connected to the piped output stream src.

[This message has been edited by maha anna (edited July 19, 2000).]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\narch rival\n
\n
Posts: 2813
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Yes that was a typo, I have fixed it now. Thanks for bringing that up especially the bit about piped inputstream.
Marcus
\n

SCWCD: Online Course, 50,000+ words and 200+ questions\r
http://www.examulator.com/moodle/course/view.php?id=5&topic=all

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nVivek Shrivastava\n
\n
\nRanch Hand\n
\n
Posts: 277
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks maha and marcus.
regards
vivek
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\nConsider Paul's rocket mass heater.\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/402265/java/java/error", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nerror (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nerror\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 106
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I am trying to run my program....but everytime I do I get an error message that says
Exception in thread \"main\" java.lang.NullPointerException

what does this mean
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor and iconoclast\n\n
\n
Posts: 24207
\n
\n
\n46\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
It means that something on the left side of a dot (.) is 'null' -- either a variable is set to null, or a function is returning null. The stack trace (the error message) tells you what line the error happened at: the top line will say something like

at MyClass.main (MyClass.java:21)

that means the error happened on line 21 of MyClass.java . Look at any dots on that line -- that's where the problem is. We'd be happy to look at the code for you, if you want -- paste it into a reply in this thread. Put [ CODE ] [/ CODE ] tags around the code to preserve formatting in your post (take out the spaces in the tags.)
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nVictoria Preston\n
\n
\nRanch Hand\n
\n
Posts: 106
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n


there is the code i'm trying to test and here is the code in my test



hope you can help
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nErnest Friedman-Hill\n
\n
\nauthor and iconoclast\n\n
\n
Posts: 24207
\n
\n
\n46\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You didn't show the stack trace or tell me what line it says the error is on, so I have to guess!

The method \"contains\" references a member variable named \"list\" (different from the local variable in main of the same name). The member variable \"list\" is an array. My first guess is that either that member variable is \"null\" (does anything ever assign a value to it?) or one of the elements of that array is \"null\" (remember that constructing an array makes an array of null references; there are no objects in the array until they are created.

But it looks like \"contains\" is as method in some kind of a collection class; it's likely that there's a separate variable that tells how many elements are really in the array; this number is smaller than or equal to the size of the array. The member variable that hold this count should be used as the upper limit of the for loop, not the array length.

Do any of these hints help?
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nVictoria Preston\n
\n
\nRanch Hand\n
\n
Posts: 106
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
so instead of .length it needs to be .size


and yes they help bunches thanks
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nErnest Friedman-Hill\n
\n
\nauthor and iconoclast\n\n
\n
Posts: 24207
\n
\n
\n46\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Victoria Preston:
so instead of .length it needs to be .size

\n\t\t


Well, no, not exactly. I'm imagining that EmployeeClass looks like



So I'm talking about using \"size\" in place of \"list.length\" -- but this is only if my guess is right that there is a member like \"size\". Maybe you should show us the whole \"EmployeeList\" class (unless you figure this out by yourself now.)
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nVictoria Preston\n
\n
\nRanch Hand\n
\n
Posts: 106
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
okay sorry about the hold up had to go to the store. Here is the entire EmployeeList any feedback would help.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/417499/java/java/abt-path-classpath-system-DSN", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nabt path, classpath, and system DSN (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nabt path, classpath, and system DSN\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 44
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hi..
I am Developing a java Desktop Application so i want to set automatically \"path\" , \"clas path\" and \"System DSN for my database\" instead of doing manully....please any one help me out...
and sorry if i posting this common question at wrong place(java in General)...
thank you..
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nMarshal\n\n
\n
Posts: 80279
\n
\n
\n432\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Your PATH should be set as an environment variable. If you install a JRE on some computers (eg Windows) I think (but I am not at all sure) that is added to the PATH, or a program associated with the .jar files.
You can set the requisite CLASSPATH in a manifest file; it is somewhere in the Java Tutorials.
Don't know about DNS, I am afraid.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 22821
\n
\n
\n132\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Chrome\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
For System DSNs you will probably go into the Windows registry. You can use Google to find out which registry keys you need.
\n

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6\r
How To Ask Questions How To Answer Questions

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 338
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Is it possible to set it in a batch file?
Regards.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nkirtesh jain\n
\n
\nRanch Hand\n
\n
Posts: 44
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
ok...
can we use autoexec.bat file to store path and class path
if yes then can you tell how...
thank you..
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor\n\n
\n
Posts: 9050
\n
\n
\n21\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
off to the intermediate forum
\n

Spot false dilemmas now, ask me how!\r
(If you're not on the edge, you're taking up too much room.)

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRob Spoor\n
\n
\nSheriff\n\n
\n
Posts: 22821
\n
\n
\n132\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Chrome\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I've searched and found the registry part that contains the DSN information:
HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI

There is one sub key for all DSNs there. You can then export that part to see what to write to the registry.

For user DSNs it's the same registry key but then in HKEY_CURRENT_USER.
\n

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6\r
How To Ask Questions How To Answer Questions

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nramya narayanan\n
\n
\nRanch Hand\n
\n
Posts: 338
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Can anybody brief about how this can be done?
Whether we can set path, classpath in a bat file like this

I know these kind of setup can be very much useful , when we give an exe file to client(who doesnot know anything abt java or its installation)
But in this case, we need to send java jars also right.

Regards.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 326
\n
\n
\n\n
\n\"Android\"\n\"Mac\n\"Firefox\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
1. The PATH to the Java Runtime (JRE) bin catalogue should be set when installing it. At least it declares the system environment variable JAVA_HOME that can be used in your start script.

2. You should set the classpath for the application when you start the application and NOT in the system classpath. Use a launcher or a bat-file for this.

3. You should not use a system DNS (JDBC \t DBC type 1 DB driver) in your programs. Instead, you should take a look at DataSource and have a configuration file that holds the data on how to connect to the database and then have a declared DataSource that any part of your application that needs to access the database needs to access.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nkirtesh jain\n
\n
\nRanch Hand\n
\n
Posts: 44
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
thanks for reply

Mr Prime,
can you tell me how can i find this key in the system Please...


HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI


and one more thing as mr. ramya narayanan suggested can be done like that...

Thank You
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRob Spoor\n
\n
\nSheriff\n\n
\n
Posts: 22821
\n
\n
\n132\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Chrome\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Use the Windows Registry editor (also known as regedit.exe).
\n

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6\r
How To Ask Questions How To Answer Questions

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/572370/ORM/databases/JPA-Query-isolation", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJPA - Query isolation (Object Relational Mapping forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJPA - Query isolation\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 48
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have question connected with Query features. May Query's results (for example some kind of Select order) contain some uncommited to the datebase records (or uncommitted updates)? Even if the datebase's isolation level is at least READ_COMMITTED? \r
Let's look at such situation: in scope of transaction I perform some updates to the database. I also create new entity and call persist() on it. Then I call a \"select\" Query to EntinityManger in this transaction. Quer has an ability to call flush() before it is performed (as I know) to ensure that the Query result is the most \"up to date\". The \"flush()\" method flushes all the changes to the datebase (including new persisted entity) but all writes to the datebas are made in uncommitted mode (as I know) and they will be committed at the end of transaction. But Query is called during that transaction so the changes are still uncomitted. What will be the result of that Query? Will it contain uncommitted changes made by \"flush()\" method? It seems that \"yes\" because that is why the autoFlush was introduced into Queries , but on the other hand it looks strange to get uncomitted changes from datebase as a result of Query. \r
So, how is it?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 553
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n\"Likes\"/ 1\n\n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The concept of transaction means that one user/transaction will not see \"another\" user's/transaction's uncommitted data.\r
\r
Of coarse you should see your own uncommitted data.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nWitold Marshal\n
\n
\nRanch Hand\n
\n
Posts: 48
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks : )
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nWitold Marshal\n
\n
\nRanch Hand\n
\n
Posts: 48
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
One more question concernig that answer.\r
JPA entity connects to database using connection settings from persistence.xml where is defined user and password. So theoreticly each application client using such JPA entity logs to datebase on the same user account. How are they (application clients using the same JPA entities, similar (but another instance) EntityManger with the same logging settings ) treated by the underlying datebase (regarding previous question)? Are they treated as a one user and may see uncommitted updates made by each other or are they distinguished as separate users? \r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJames Sutherland\n
\n
\nRanch Hand\n
\n
Posts: 553
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Database transactions are tied to the connection, not the user.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nWitold Marshal\n
\n
\nRanch Hand\n
\n
Posts: 48
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks : )
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/360614/Servlets/java/Servlet-generate-HTA", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nServlet to generate HTA (Servlets forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nServlet to generate HTA\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 1
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Is anybody else here using a servlet to create an HTA (html application)? Thanks to security issues in Internet Explorer, we had to change one of our main programs to use an HTA for delivering high-stakes certifications. Overall, this is working out great.

However, for myself, and most of our international users, the behavior of the HTA is very inconsistent. Although it never works for me, many of our international users get it to work sometimes, and sometimes it bombs out on them. The usual problem is either that the application freezes up. Or the HTA throws a scripting error.

If this sounds familiar to anybody, I could sure use some help. I've got one very irate client and dozens of unhappy users, and no answers at this point.

Thanks!

William
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 5093
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
take the generated HTA from one call that works and one that doesn't and compare them.
See if there are differences. Check if both work when used as static HTAs.

If there are differences see if you can explain those to cause the trouble, and you have your error.
\n

42

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 149
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Jeroen, this was very enlightening. We called it \"searching the error\" in the olde days.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
ice is for people that are not already cool. Chill with this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/631673/certification/Depth-subjects", "domain": "coderanch.com", "file_source": "part-00830-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nDepth of the subjects (OCMJEA forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nDepth of the subjects\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 149
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello,\r
May I know how much depth to go on each of the java technologies. I understand that one does not have to the depth covered in developer certification. But how much is enough.\r
My concern is that I may spend too long or too less a time in a particular technology. I am good at Design patterns, Business tier and Integration tier (except Web Services). But I have to study Web tier from scratch.\r
Your advice will help me scope the subjects.\r
Regards,\r
Rajesh
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 426
\n
\n
\n\n
\n\"Eclipse\n\"Fedora\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n\"Likes\"/ 1\n\n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
It seems you like the backend better than designing user interface forms. If this is true, focus on SOA , Enterprise Service Bus, Web Services, queuing , loose coupling, MySQL/Oracle/DB2 database via JDBC.\r
\r
Some people paint pretty pictures, others make the plumbing work. If you are a plumber, follow what I said. If you are a painter, PrimeFaces and jQuery would be a good thing to work on in your spare time.\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor & internet detective\n\n
\n
Posts: 42103
\n
\n
\n933\n\n
\n
\n\n
\n\"Eclipse\n\"VI\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You want to learn what everything is and why you would use it. You need to understand tradepffs. You do not write any code on this exam. This makes typing code a good sign of going too deep.
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRajesh So\n
\n
\nRanch Hand\n
\n
Posts: 149
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks Roger and Jeanne.\r
You are right Roger. My work assignments have predominantly been in the back end.\r
Good Idea Jeanne.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/679280/mobile/PDF-Viewer-Android", "domain": "coderanch.com", "file_source": "part-00626-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nPDF Viewer and Android (Android forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nPDF Viewer and Android\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 36
\n
\n
\n\n
\n\"Android\"\n\"Java\n
\n
\n
\n
\n
\n
\n
\n\nposted 7 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I'm making an application that consists of the first page that will be a list of books. When you click on a picture book users will be able to flip through, something like a free sample. I was planning to do with Intent.So when someone clicks on a book picture, using the click listener and intent opens a new java class with PDF file. It displayed using PDF VIewer. But although I have no run-time error, on the phone throws an error that my application is stopped.\r
\r
Surely my logic is wrong.\r
\r
I inculded library \r
\r
main_activity.xml with book list:\r
\r
\r
\r
XML code with PDF viewer:\r
\r
\r
My JAVA class Mainctivity:\r
\r
\r
Second java class with pdf viewer:\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 7645
\n
\n
\n178\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 7 years ago\n\n\n
    \n
  • \n\n\"Likes\"/ 1\n\n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Every time an application crashes, the full stack trace is posted to the logcat - that includes the line number where the crash happened: Post the full stack trace here. The logcat should always be your first stop when trying to diagnose an app crash.\r
\r
Also, is there any particular reason you're using an outdated version of the PDF library?
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Remember to always leap before you look. But always take the time to smell the tiny ads:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/217750/databases/ORM-comparisons", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nORM comparisons (Object Relational Mapping forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nORM comparisons\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 10198
\n
\n
\n3\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Guys,

I tried googling many times to just have a comparison out of the existing ORM tools for Java. Is there any such site that you guys might probably know about such a comparison? Please put it here. Thanks for your help!
\n

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master\r
Did a rm -R / to find out that I lost my entire Linux installation!

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJoe San\n
\n
\nRanch Hand\n
\n
Posts: 10198
\n
\n
\n3\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Any suggestions guys?
\n

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master\r
Did a rm -R / to find out that I lost my entire Linux installation!

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 228
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
This link might be of some help to you
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJoe San\n
\n
\nRanch Hand\n
\n
Posts: 10198
\n
\n
\n3\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks for the link. But if anyone can give me some real time scenarios on the ORM comparisons, it will be of real help to me.

Thanks in advance!
\n

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master\r
Did a rm -R / to find out that I lost my entire Linux installation!

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/482165/os/regular-expression", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nregular expression (GNU/Linux forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nregular expression\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 1907
\n
\n
\n1\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
We need to mask credit card numbers.Masking all but last 4 digits. I am trying to use SED. As credit card number length varies from 12 digits to 19,I am trying to write regular expression.Following code will receive the String. If it contains String of the form \"CARD_NUMBER=3737291039299199\", it will mask first 12 digits.\r
Problem is how to write regular expression for credit card-12 to 19 digits long? If I write another expression for 12 digits, it doesn't work.that means for 12 digit credit card- first 8 digits should be masked. for 15 digit credit card, first 11 digits should be masked.\r
\n

MH

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
What if you did a split string with the = sign being the identifier. Then find the length of the index of your array which should be the card number.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 1923
\n
\n
\n\n
\n\"Scala\"\n\"Postgres\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\r
\r
For lengths of 3+4=7 to 5+4=9. You'll loose the information of the CN-length.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/599704/open-source/Apache-httpClient", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nApache httpClient (Open Source Projects forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nApache httpClient\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
I am trying to log onto http://mobile.lufthansa.com using apache HttpClient.\r
\r
Ist there anyone out there who could give me a help or at least a hint? \r
\r
DefaultHttpClient httpclient = new DefaultHttpClient();\r
\t\tHttpGet httpGet = new HttpGet(\r
\t\t\t\t\"http://mobile.lufthansa.com/mma/account.do\");\r
\r
\t\tHttpResponse response1 = httpclient.execute(httpGet);\r
\r
\r
\t\ttry {\r
\t\t\tSystem.out.println(response1.getStatusLine());\r
\t\t\tHttpEntity entity1 = response1.getEntity();\r
\r
\t\t\tEntityUtils.consume(entity1);\r
\t\t} finally {\r
\t\t\thttpGet.releaseConnection();\r
\t\t}\r
\r
//working fine so far but then...\r
HttpPost httpPost = new HttpPost(\r
\t\t\t\t\"http://mobile.lufthansa.com/mma/account.do\");\r
\t\tList<NameValuePair> nvps = new ArrayList<NameValuePair>();\r
\t\tnvps.add(new BasicNameValuePair(\"userid\", \"xxxx\"));\r
\t\tnvps.add(new BasicNameValuePair(\"password\", \"xxxx\"));\r
\t\thttpPost.setEntity(new UrlEncodedFormEntity(nvps));\r
HttpResponse response2 = httpclient.execute(httpPost);\r
\r
\r
is giving me a 302 error all the time. I believe it has something to do with the session as the form method calls:\r
/mma/account.do;jsessionid=FAFCF62744FA4FF96CA73A7AA9F33254.portal14a?l=en\r
\r
but i lack the experience to know how to handle this.\r
\r
Thank you in advance!\r
\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 859
\n
\n
\n\n
\n\"IBM\n\"Chrome\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Did you read about what 302 means?\r
\r
http://en.wikipedia.org/wiki/HTTP_302\r
\r
WP
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nNiko Nigde\n
\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I know what 302 means, and that was not my question. \r
Thank you
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 28371
\n
\n
\n99\n\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"MySQL\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
So now I don't know what your question is. You say you know what the HTTP 302 response code, even though you called it an \"error\" in your original post. (It isn't an error code.) So given that you know what it means, you should be able to implement it by sending a new request to the location specified in the response. Did you try that?
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRancher\n
\n
Posts: 43081
\n
\n
\n77\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The HttpClient docs even have a web page about that: http://hc.apache.org/httpclient-3.x/redirects.html
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
What does a metric clock look like? I bet it is nothing like this tiny ad:
\r\n
New web page for Paul's Rocket Mass Heaters movies
\r\nhttps://coderanch.com/t/785239/web-page-Paul-Rocket-Mass\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/253816/certification/polymorphism", "domain": "coderanch.com", "file_source": "part-00830-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nQuestion about polymorphism. (OCPJP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"thread\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nQuestion about polymorphism.\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 33
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
what is an example of polymorphism ?

A. Inner class
B. Anonymous class
c. method overloding
D. method overriding.

I think ans should be B,D but ans is C. so please tell me what is correct ans.
\n

Amisha Shah.<br />SCJP 1.4

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 53
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I think \"method overloding\" is all right, as:

# In computer science, polymorphism is the idea of allowing the same code to be used with different classes of data (which classes in typed languages correspond to types), resulting in more general and abstract implementations.
en.wikipedia.org/wiki/Polymorphism_(computer_science)

# In object-oriented programming theory, polymorphism is the ability of objects belonging to different types to respond to methods of the same name, each one according to the right type-specific behavior. The programmer (and the program) does not have to know the exact type of the object in advance, so this behavior can be implemented at run time (this is called late binding or dynamic binding).
en.wikipedia.org/wiki/Polymorphism_(object-oriented_programming)

The only confusion may be on overloading and overriding, i would like to hear more clarifications.
\n

OfCourse Learner...<br />SCJP 5, SCWCD1.4<br />Blogs: <a href=\"http://sandeepkunwar.blogspot.com\" target=\"_blank\" rel=\"nofollow\">http://sandeepkunwar.blogspot.com</a>;

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 286
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hi,
overlading?? noop because :

that's an overloading...it's not an example of polymorphism
Only anonymous class is a real exemple of polymorphism...because you reach the anonymous object throug a superclass reference.
Overiding is about inheritance...
i hope it help a bit
arno
[ April 17, 2006: Message edited by: Arno Reper ]
\n

The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nArno Reper\n
\n
\nRanch Hand\n
\n
Posts: 286
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
a tip: you shouldn't use wikipedia to study for SCJP, its not complete enough and it could create misunderstanding.
The best way for learning scjp is the ...well known and famous K&B books lol
arno
ps : i like wikipedia but not for studying a certification like scjp
\n

The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 6663
\n
\n
\n5\n\n
\n
\n\n
\n\"MyEclipse\n\"Firefox\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I would go for B C and D. B because anon classes will subclass an existing class or implement an interface and C , D because inheritance is a form of polymorphism and both overloading and overriding can be considered as forms of polymorphism.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nArno Reper\n
\n
\nRanch Hand\n
\n
Posts: 286
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
are you sure? b,c,d?
i 'd go for the B only...
arno
ps : read k&b books pg 154
\" Polymorphism applies to overriding not to overloading\"...c is not ok
d maybe but...
[ April 17, 2006: Message edited by: Arno Reper ]
\n

The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 1
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
visit this link. It also has gr8 discussion of this que. I think both C & D. http://www.javaranch.com
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nDeepak Bala\n
\n
\nBartender\n\n
\n
Posts: 6663
\n
\n
\n5\n\n
\n
\n\n
\n\"MyEclipse\n\"Firefox\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You can google overloading and polymorphism.

Here is a wiki link.

http://en.wikipedia.org/wiki/Overloading
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 51
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,

I think that must be \"D. method overriding\".

Polymorphism is provided by method overriding, when a method is invoked using a super class reference variable (or interface). So any different implementations, provided by sub classes, can be invoked like a unique method. It is closely related with inheritance.
Unlike, overloading is not dependent of inheritance and is not related with Polymorphism. It allows us to use the same method name with different arguments.

Sorry for my poor English.

Leonardo Luiz
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAmisha Shah\n
\n
\nRanch Hand\n
\n
Posts: 33
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I think answers are B and D.

overrinding and anonymous claas. because polymorphysm is in play when anonymous classe are involved.
\n

Amisha Shah.<br />SCJP 1.4

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nArno Reper\n
\n
\nRanch Hand\n
\n
Posts: 286
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
at least,i 'll say ( write ) its certainly not a and c ... b for sure, d its about inheritance...who polymorphism is about so maybe d also.
arno
\n

The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 126
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hi

i have read this in one of the textbooks..

there are two types of polymorphism:

1)static polymorphism
2)dynamic or runtime polymorphism

overloading comes under staic polymorphism while overriding comes under runtime polymorphism...

polymorphism means having more than one form so overloading and overriding are part of polymorphism for sure...

please give your comments.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 83
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
from jsl4
\n\t\t\t


polymorphism, meaning that an object of a given class can have multiple forms, either as its own class or as any class it extends. The new class is a subclass or extended class of the class it extends; the class that is extended is its superclass.

\n\t\t

hence i think polymorphism effect on object other than methods or others
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 1
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
there is 2 type of polymorphism
1: early binding
2: late binding
thease are achived through
method overloading , method overriding
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 52
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The answer is c & d.
method overloading and method overriding are the types of polymorphism.
Method Overloading is static polymorphism and Method Overriding is Dynamic Polymorphism.
Polymorphism is nothing but one thing existing in different forms.
That's what we do with method overloading i.e same function name with different types and/or number of arguments and in case of method overriding it's the same function name(present in both base as well as derived class) but execution depends on who(object of base class or derived class) called the function(object reference used).
\n

SCJP 1.4,SCWCD

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 139
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by swapnil paranjape:

i have read this in one of the textbooks..

there are two types of polymorphism:

1)static polymorphism
2)dynamic or runtime polymorphism

\n\t\t


hello swapnil ,

I agree with you polymorphism are of two types static(compile time) and dynamic (run time), function overloading is an example of static polymorphism , where as overriding functions of base class in a derived class is an example of runtime polymorphism.
[ April 18, 2006: Message edited by: faisal usmani ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 70
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Can anyone finally tell what is the correct answer ? It's bit confusing for me now.

Cheers,
-Biswa
\n

Thanks<br />-Swosti

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 1
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\r
Both method overloading and overriding are examples of polymorphism
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 91
\n
\n
\n\n
\n\"Firefox\n\"C++\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
B) - because anonymous class overriden methods are invoked using superclass references\r
C) - compile time polymorphism\r
D) - runtime polymorphism\r
\r
What's the issue??\r
\r
In the end, maybe they won't accept B) for an answer. C) and D) are definitely answers though.
\n

OCJP 6\r

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 537
\n
\n
\n\n
\n\"Eclipse\n\"Python\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Well in the orthodox way B, C and D are correct. Explanation similar to Pritish. But the main point here is what do you understand by \"Polymorphism\". What exactly is poly-morphed? The behavior of an object is poly-morphed which can happen if the compiler resolves it or its resolved at run time. I wouldn't say compile time resolution is a great example of polymorphism as the behaviour is bound and cannot change after that.
\n

[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.\r
Try out the programs using a TextEditor. Textpad - Java 6 api

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
I'm full of tinier men! And a tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/469816/certification/Locking-client-identification", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nLocking and client identification (OCMJD forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nLocking and client identification\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 43
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Howdy ,\r
\r
\r
I'm facing the following pb: \r
\r
\r
\r
The locking code is supposed to be within that Data class. This means that when a record is locked ( lock(recNo) is called) no other client except the one that invoked the lock() is allowed to update/delete this record. \r
The question is how can I check in the update() and delete() methods who the client is?\r
\r
Which raises 2 scenarios :\r
\n\t\t\t

The stand-alone application, when we would like to reuse the code from the Data class. I would like to avoid passing a parameter to the Data class specifying whether we are in stand-alone mode. We lock a record, and we try to update it. When performing the update, the code checks to see whether that record is locked and is available for this client. How can he do that as in a stand-alone context we only have one client and cannot hold a Map<cliendId,recordId> or something of that kind... \r
\r
The code in the business layer would be :\r
\r
\r
The code in the persistence layer would be :\r
\r
\r

\n\t\t
\r
\r
\r
and the second scenario, when running in server mode\r
\r
\n\t\t\t

\r
The code in the business layer would be :\r
\r
\r
The code in the persistence layer would be :\r
\r
\r

\n\t\t
\r
\r
\r
\r
\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 2292
\n
\n
\n3\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Howdy, Victor!\r
\r
Please take a look here. I think it might be helpful!
\n

Cheers, Roberto Perillo\r
SCJP, SCWCD, SCJD, SCBCD

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Your mother is a hamster and your father smells of tiny ads!
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/440892/java/strange-behavior-ArrayList", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nReally strange behavior in an ArrayList (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nReally strange behavior in an ArrayList\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 1
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I am making a small program for one of my CS classes that basically demonstrates mastery of java and programming and such. I have been programming for slightly over a decade, so I assumed that as long as I read the manual I would do fine. This program lets the user create shapes on a board, drag them around, and resize them. I have all of those operations working except for a small bug in the dragging that I cannot seem to work out. \r
\r
I use an arraylist to store all my shapes that are currently being displayed. At all times the shapes have to be depth sorted with the lowest y values being at the back. To do this I created a Comparable which does a comparison on the shape's position. I then sort the Arraylist using this every time I make a change to the positions of the shapes. However, if I click on a shape with a high y value and move it up, it then acts like a kind of pushbar and pushes all shapes that match it's y at any given time to keep going with it. I don't understand how this can happen. My code can only support modifying one object at once, but it seems to be modifying all objects that don't match a certain condition. Can anyone explain this to me?\r
\r
EDIT: I just commented out the sort lines and it works properly. That points to the sorter as the culprit. Can a sorter place two items \"next\" to eachother in a 1D array like an ArrayList? That doesn't exactly seem intuitive.\r
\r
My MouseAdapter and Comparator (they are inside a class which contains the ArrayList shapes along with the booleans fill and mode:\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor\n\n
\n
Posts: 3285
\n
\n
\n13\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Kevin and welcome to Javaranch!\r
\r
A couple of random hints \r
\r
1.) What does the Javadoc for ArrayList say about maintaining order?\r
2.) Have you printed out the contents of your ArrayList before/after you sort? What happens?\r
\r
Let us know how you get on!
\n

Cheers, Martijn,\r
Twitter.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/207619/sockets/java/Security-Datagrams", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nSecurity in Datagrams (Sockets and Internet Protocols forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nSecurity in Datagrams\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 172
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello, its been ages

I'm in the process of understanding Datagrams, and i understand that it is connectionless protocol...
so my question is, if i send some data to a server, and leave that socket open for continuous listening, can an unauthorized host spam my socket?

In Java will it though any kind of exception to reject data from the unauthorized host?

hope the questions are clear
thanks
HannaH
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRancher\n
\n
Posts: 43081
\n
\n
\n77\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
No, a Socket isn't vulnerable to that. A ServerSocket is open for listening to anyone who wants to connect, but a Socket is used only for connections to a particular port on a particular host. No other host can connect to it.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nH Melua\n
\n
\nRanch Hand\n
\n
Posts: 172
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks Ulf very much

I particularly meant, DatagramSocket

is that the same as ServerSocket?

and when you say a \"ServerSocket is open for anyone to connect\" doesn't that mean an unauthorized one can connect to my host?
[ February 20, 2008: Message edited by: H Melua ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nUlf Dittmer\n
\n
\nRancher\n
\n
Posts: 43081
\n
\n
\n77\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

I particularly meant, DatagramSocket

is that the same as ServerSocket?

\n\t\t

No. A ServerSocket uses TCP, not UDP like DatagramSocket.

\n\t\t\t

and when you say a \"ServerSocket is open for anyone to connect\" doesn't that mean an unauthorized one can connect to my host?

\n\t\t

That's exactly what it means. You need to implement authentication and authorization yourself if you use raw sockets.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nH Melua\n
\n
\nRanch Hand\n
\n
Posts: 172
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
cheers very much for the info, it sounds very interesting

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/601791/java/java/SuppressedException", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nSuppressedException (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nSuppressedException\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 305
\n
\n
\n\n
\n\"Tomcat\n\"Notepad\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Report\n
\n
\n
\n
\r
\r
Have you any idea how to generate an exception in above resources statement ?\r
\r
Thanks
\n

My one regret in life is that I am not someone else.\r
- Woody Allen

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 32
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Report\n
\n
\n
\n
Hi\r
\r
You do not generate any exceptions, by using try and catch keywords you monitor piece of code which may create an exception and by using catch, you can \"catch\" this exception and handle it in some appropriate way. If you are referring to try with resources statement, then in try clause you declare and initialize objects whose resources are automatically managed. For example, if you create an instance of FileOutputStream, then any resources which are associated with this object (such as files in this case, but there also may be other resources such as network sockets, etc) are automatically closed. There is no need to call close() method in finally block. \r
\r
for example:\r
\r
\r
\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nmeeta gaur\n
\n
\nRanch Hand\n
\n
Posts: 305
\n
\n
\n\n
\n\"Tomcat\n\"Notepad\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Report\n
\n
\n
\n
I want to generate an exception in resources statement to check for suppressed exception.
\n

My one regret in life is that I am not someone else.\r
- Woody Allen

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 3323
\n
\n
\n86\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Report\n
\n
\n
\n
Please don't start new threads to ask questions related to the same problem. All further discussion should be directed to https://coderanch.com/t/601799/java/java/Throwable-getSupprssed\r
\r
I'm locking this thread.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\nConsider Paul's rocket mass heater.\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/543406/certification/Functionality-Stock-Intentory-System-Factory", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nFunctionality of Stock Intentory System : Factory Homes (OCMJEA forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nFunctionality of Stock Intentory System : Factory Homes\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 9
\n
\n
\n\n
\n\"VI\n\"Redhat\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Concerning following line in Factory Homes Requirement:\r
\".... that control all inventory and valid combination of inventory in the Factory Homes catalog\"\r
\r
- though was prone to accept that stock inventory system validates a valid Product, BUT I decided later\r
\r
a) Does not make sense to have a inventory system validate my transactional data (house design). It gets tightly coupled to the application also.\r
Hence I am interpreting as the stock inventory is set up to have valid combination as a group ,only for the purpose of managing stocks as a group etc.., BUT the inventory system does not have the logic determine applicability . It is done in Online Housing Design application.\r
\r
\r
\r
Please give input.\r
\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor & internet detective\n\n
\n
Posts: 42105
\n
\n
\n933\n\n
\n
\n\n
\n\"Eclipse\n\"VI\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Tamal,\r
Sounds fine. Make sure you document your assumptions.
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/244259/java-programmer-SCJP/certification/Java-Command", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJava Command (OCPJP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nJava Command\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 7
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
It�s a simple ask.. I can�t run a java file in my DOS System...I need to test my command lines in java like: Java CommandArgsThree 123...I hava the J2sdk1.4.2_02 installed in my computer with the enviroment variable:
JAVA_HOME=c:\\j2sdk1.4.2_02
what is wrong??
Could I run a aplication java setting my own lines of command in eclipse or JCreator?
please answer me something!! :roll:
Obrigada!
\n

;)Liza

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 235
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Liza,
I also had this problem initially. It had everything to do with my path settings, and my classpath settings. I'll give you an explanation of what I did on my windows2000 laptop to get things going.
Open cmd prompt and type path <enter>
verify that the path to the JDK is in there... C:\\j2sdk1.4.1_02\\bin
if not, you may set it by typeing set Path=.........
OR
right click my computer, properties, environmental variables.
ensure that something like the following is included in the PATH variable (if not edit it) C:\\j2sdk1.4.1_02\\bin . Keep in mind that entries are separated by semicolons.
Then open a cmd prompt, and move to a directory where your java file lives. Then compile it...
Now, if you can compile, but when you java TheFile... and you get an error... this may be due to the ClassPath setting. Open up a cmd prompt, make sure your in the root directory, and type in set ClassPath= <enter>
Yes, you just cleared out the classPath. This is what allowed me to execute the class files. Before that I was getting 'no such method, main' errors when there was absolutely a main method.
Hope this helps, it came from the Java2 Bible.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/477537/java/java/Problems-reading-locale-specific-characters", "domain": "coderanch.com", "file_source": "part-00626-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nProblems while reading locale specific characters in Java (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nProblems while reading locale specific characters in Java\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 74
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
We are facing problems in reading locale specific characters from a file.\r
We are using the Buffered Reader to read the file, but the locale specific chars in the file are read as some wrong characters.\r
\r
for Example the char: é is read as ý by the Buffered Reader. We are using the Jdk1.3.\r
\r
Could you please help me in resolving this problem.\r
\r
Many Thanks,\r
\r
CHandra
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 10336
\n
\n
\n\n
\n\"Hibernate\"\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Are you using the same character encoding to read the file as it was written in?
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nchandra kambham\n
\n
\nRanch Hand\n
\n
Posts: 74
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Yes.. we are writing to the file using a buffered Writer and reading using a bufered reader.\r
and to my surprise i found a strange thing here...\r
When i run my program in Windows OS it's reading the characters correctly.\r
But when i run my program in UNIX OS the locale specific characters are read differently.\r
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\nConsider Paul's rocket mass heater.\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/u/183451/sanjana-suman", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nAll about sanjana suman\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n
\n\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

sanjana suman

\r\n
\r\n
\r\n
Ranch Hand
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n+ Follow\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nsince Oct 09, 2008\r\n
\r\n
\r\nMerit badge:\r\ngrant badges\r\n
\r\n
\r\n
\r\n
For More
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Cows and Likes
\r\n
\r\n
\r\n
\r\n
Cows
\r\n
\r\n
\r\n
Total received
\r\n
\r\n
\r\n
\r\n
\r\n
In last 30 days
\r\n
0
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Forums and Threads
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Recent posts by sanjana suman

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi Surya, thanks for your response, atleast i am trying to take training for Vignette CMS in india, i dont know wether they are providing training in india or not, wish me luck.\r
\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nDoes this book provide knowledge about how to behave with other coders at work?\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nhi deepak, vicky, nitesh and prithvi, thanks alot for your repsonse for my post, i will definitely take into consideration each and every word what you people suggested to me, as you people said for certification purpose 3 weeks are enough but for gaining knowledge its not enough time this is really true, i will try to spend few more weeks to gain knowledge and good percentage in SCJP exam, wish me good luck guys have a nice day.\r
\r
thank you,\r
sanjana.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nhi friends, i am planning to write SCJP exam, i want to spend 3 weeks to prepare for the exam atleast 10 hours per day, Is it possible to prepare for SCJP in 3 weeks? please guys i need your advice.\r
\r
thanks in advance,\r
sanjana.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nCongratulations \r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nhi friends, Does anyone know about vignette Content Management System? Is there any certifications in vignette tool? please let me know the details.\r
\r
thanks in advance,\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi karthik, i can understand your problem please with patience, coming to the point you want to write SCJP and get a good job right, go for it you got the best idea take your own time for preparation and attend the exam, with SCJP in your resume as a freshers you will definitly get a good job all the best karthik.\r
\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi friends i want SCJA voucher, i am staying in india and i want to write exam in hyderabad, please mail me if you have SCJA voucher.\r
\r
thanks in advance\r
sanjana.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi larry,\r
\r
I just replied for you in sun certification results forum, dont worry about UML material you just read Camerons study guide its enough it is perfect for your preparation, all the best.\r
\r
sanjana suman\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
16 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

Hi sanjana,\r
\r
Thanks for your feedback. Good to know that one can skip and come back to the previous questions. It is also useful to know that questions from various sections are laid out in random order (unlike practice tests, which seem to club them together).\r
\r
So if I understand your messages on this topic correctly, you took your SCJA exam recently? So how did it go? Hope you passed it with flying colors.\r
\r
What training materials did you use to prepare for the exam? Can you please share your experiences of taking the exam? Any list of DOs and DON'Ts will be really helpful.\r
\r
Thanks much!

\n
\r
\r
\r
Hi Larry Olson,\r
\r
yes recently i took SCJA exam but i got 34 marks i was failed , actually i was in hurry to get cerificate, i will tell you some materials first you start with head first java read it 2 times then practice small programs, then read Cameron McKenzie's study guide & questions guide atleast 3 times you will definitely enjoy these 2 books very easy to read and understand, i think these 3 books are enough to get perfect 100% score, if you need any help i am here all the best for your preparation.\r
\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
16 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

Hi,\r
\r
Congrats on passing the exam!\r
\r
I am taking my SCJA exam in two weeks. I just have a few general questions and I would appreciate any guidance.\r
\r
1) In the SCJA exam, will I be able to skip any question and come back to it later (there seems no point in wasting time if a question seems to be tough - I would prefer to answer the easy ones first and come back to the tough ones later)?\r
\r
2) How many questions do we need to get right, in order to pass the exam? Is it 35 or 39 OR something else?\r
\r
3) Are the questions from a particular objective clubbed together, OR are the questions laid out in random?\r
\r
4) Do we get enough scratch paper and other materials for doing any scratch work?\r
\r
5) Do we get instant feedback about the results, after the exam?\r
\r
Thanks!\r

\n
\r
\r
\r
Hi Larry Olson,\r
\r
here are some answers for your doubts\r
\r
1) yes you are able to skip any question and come back to it later.\r
\r
2) In order to pass the exam you need to get 35 pass marks.\r
\r
3)questions laid out in random\r
\r
4)yes you will get enough scratch paper and other materials for doing any scratch work\r
\r
5)yes you will get instant feedback about the results, after the exam.\r
\r
\r
\r
All the best for your exam\r
Sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
16 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nabstract class Click\r
\r
{\r
\r
public abstract void play();\r
\r
}\r
\r
(or)\r
\r
abstract class Click\r
\r
{\r
\r
public void play(){}\r
\r
}\r
\r
please any one tell me what is perfect abstract class.\r
\r
\r
thanks in advance,\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
16 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi friends i am new to java, i am planning to write SCJP exam, can anyone suggest me which version do i have to take, please need your advice.\r
\r
thanks in advance\r
\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
16 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\nSCJA\r\n
\r\n
\r\n
\r\nHi friends today i failed SCJA i got 66% please can any one tell is there any free retake exam policy, please your response would be highly appreciated.\r
\r
\r
thanks in advace\r
\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
16 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nCongratulations \r
\r
\r
\r
sanjana suman.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
16 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n
\n\n\n\n" }, { "url": "https://www.coderanch.com/t/537428/languages/dynamic-lists-populated-servlet-ajax", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nthree dynamic lists to be populated from a servlet with ajax (HTML Pages with CSS and JavaScript forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nthree dynamic lists to be populated from a servlet with ajax\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nAuthor\n
\n
Posts: 47
\n
\n
\n5\n\n
\n
\n\n
\n\"MySQL\n\"PHP\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
my problem is with the selected index property of a dynamic list that is populated from a servlet.\r
\r
Let's say a list A is populated from a servlet. The inner HTML comes from the servlet as responseText and is used in the callBack function of ajax:\r
\r
Here's the script: \r
s = xmlHttpRequest.responseText;\r
var drop = '<select name=\"' + dynaDiv + '\" id=\"' + dynaDiv + '\">' + s + '</select>';\r
document.getElementById(dynaDiv).innerHTML = drop;
\r
\r
where s comes from the servlet as:\r
\r
\r
\r
Now if I want to create another list dynamically, let's say B, based on the selection in A, how do I retrieve the selected index of A in a script? I tried but it gives null. The aim is to generate a link of such lists. Moreover, I thought that since the list has been populated as a string(responseText rather than responseXML) the problem lies here. But if I change it to responseXML, how do return values from the servlet? (Given that I need one set for value and one for text)\r
\r
Please help. It's a little Urgent.\r
\r
\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 67753
\n
\n
\n173\n\n
\n
\n\n
\n
\n\n
\n\"Mac\"\n\"Mac\n\"IntelliJ\n\"jQuery\"\n\"TypeScript\"\n\"Java\"\n\"iOS\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
A change handler will tell you when a select element has been changed. You can grab the newly selected value and use it to fetch the next set of options for the subsequent select.\r
\r
By the way, all of this is much (much much) easier with a library such as jQuery or Dojo.
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nKanika Sud\n
\n
\nAuthor\n
\n
Posts: 47
\n
\n
\n5\n\n
\n
\n\n
\n\"MySQL\n\"PHP\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks, I used the following and it worked for me:\r
\r
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/47191/Struts/dicussion-forums-struts", "domain": "coderanch.com", "file_source": "part-00626-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nother dicussion forums for struts (Struts forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nother dicussion forums for struts\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 325
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Frinds,
Other than Java Ranch, what other sites do you guys refer for doubts/clarifications in Struts?
Apprceiate your help.
\n

MT

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 228
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You can subscribe to the Struts Users Mailing List.
\n

Adios

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
What? What, what, what? What what tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/132761/gc/Changing-launches-files-Word-Excel", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nChanging the way IE launches files (Word, Excel, etc.) (General Computing forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nChanging the way IE launches files (Word, Excel, etc.)\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 11343
\n
\n
\n\n
\n\"Mac\"\n\"Safari\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
We have Windows XP/2000 users accessing files like Word, Excel, etc. on an intranet using IE. Sometimes these files open in the browser window, and other times the associated application is launched.

I know that this can be set from Windows Explorer (or My Computer) by selecting Tools > Folder Options > File Types. Then selecting the desired file type (e.g., DOC or XLS), clicking on the \"Advanced\" button, and checking or unchecking \"Browse in same window.\"

However, some of our users are on \"locked down\" Citrix desktops and are not able to access these settings.

Is there another way to change the way IE launches files?
\n

\"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award.\" ~Joe Strummer\r
sscce.org

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 13411
\n
\n
\n\n
\n\"Firefox\n\"VI\n\"Redhat\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
From the server, you can suggest which way the browser open the file by setting the Content-Disposition header.

The keyword \"inline\" will ask the browser to open the associated application in the browser where \"attachment\" asks it to prompt the user with a \"Save As\", or \"Open With\" dialog.

There is an example in the JspAndExcel FAQ.
[ November 16, 2007: Message edited by: Ben Souther ]
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSaloon Keeper\n\n
\n
Posts: 28491
\n
\n
\n210\n\n
\n
\n\n
\n
\n\n
\n\"Android\"\n\"Eclipse\n\"Tomcat\n\"Redhat\"\n\"Java\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
BTW, don't forget that Microsoft lost a patent lawsuit over embedded functions in a web browser and as a result has had to patch IE to open apps in external windows. It may be that you're encountering post-lawsuit versions of IE here.

I don't know if this is JUST an IE issue or a general MS-Windows one. It's possible that Firefox, for example doesn't have this problem, since Eolas (the winner of the lawsuit) has only pursued Microsoft.
\n

Often the most important part of the news is what they didn't tell.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nmarc weber\n
\n
\nSheriff\n\n
\n
Posts: 11343
\n
\n
\n\n
\n\"Mac\"\n\"Safari\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Tim Holloway:
BTW, don't forget that Microsoft lost a patent lawsuit over embedded functions in a web browser and as a result has had to patch IE to open apps in external windows...

\n\t\t

Interesting -- I didn't know about this. I assume that \"external windows\" means the associated app, instead of an IE window, right?

These users are stuck with IE 6.
\n

\"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award.\" ~Joe Strummer\r
sscce.org

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nmarc weber\n
\n
\nSheriff\n\n
\n
Posts: 11343
\n
\n
\n\n
\n\"Mac\"\n\"Safari\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Ben Souther:
From the server, you can suggest which way the browser open the file by setting the Content-Disposition header...

\n\t\t

Thanks, Ben! That seems promising. But to complicate things, these native files (like Word and Excel) are actually attachments in Lotus Notes documents being accessed via IE. The URL is something like...

http://abc.mydomain.com/content/db_title.nsf/0/7d15de852d3b45d10025734d0071197b/$FILE/Filename.xls

So I wonder if this behavior can be set in Notes...
\n

\"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award.\" ~Joe Strummer\r
sscce.org

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nBen Souther\n
\n
\nSheriff\n\n
\n
Posts: 13411
\n
\n
\n\n
\n\"Firefox\n\"VI\n\"Redhat\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I thought the lawsuit had to do with objects embedded with the <applet, <embed, and <object tags.

Not sure if an inline application launched from a hyperlink is affected.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRancher\n
\n
Posts: 280
\n
\n
\n\n
\n\"VI\n\"C++\"\n\"Debian\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by marc weber:
However, some of our users are on \"locked down\" Citrix desktops and are not able to access these settings.

\n\t\t


I know I am off on a tangent here, but there is a setting on Citrix Presentation Server that your admin can enable (something like \"Enable server client communication\", IIRC).

If this is enabled, and you click a URL in a Doc, XLS or email, it will enable you to launch the URL in a browser running in your client.

I wonder if this setting affects your situation (i.e., trying to open DOC, XLS etc from a browser running remotely).

- Anand
\n

\"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.\" -- Antoine de Saint-Exupery

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nmarc weber\n
\n
\nSheriff\n\n
\n
Posts: 11343
\n
\n
\n\n
\n\"Mac\"\n\"Safari\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Anand Hariharan:
...I wonder if this setting affects your situation...

\n\t\t

I don't know. I'm waiting to hear back from our Citrix administrators, but I'm afraid it would take an act of Congress to get them to change anything.
\n

\"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award.\" ~Joe Strummer\r
sscce.org

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/333718/java/image-zoom", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nimage zoom-in (Swing / AWT / SWT forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nimage zoom-in\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 50
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hi!
could anybody help me out with image zoom-in and zoom-out. I am making an applet, wherein on the click of a button, the user should be able to zoom-in successively , and on the click of another button, zoom-out of the image successively. if anybody could help me out in this...
thanx in advance..
meera
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 7023
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I've never done this.
I'd try to construct a new image of whatever size I am displaying using a clipping region of the original image effectively zooming in on the original image. To zoom in some more, repeat using some clipping region of the new image. To zoom out, either maintain a collection of images and step backwards through them, or use some clipping region from the original image to construct a new image, etc.
For a more sophisticated approach, you might want to see what the group at Koala Graphics did. They provide an open source, high end, 2D graphics package.
Good Luck.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 89
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Meera,
try out the following code:

///
hope u got what u want!
rgds,
Shashi
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nShashi Kanta\n
\n
\nRanch Hand\n
\n
Posts: 89
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
oh, by the way, if its too small to see, u just copy and paste in onto wordpad.
rgds,
Shashi
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nmeera sood\n
\n
\nRanch Hand\n
\n
Posts: 50
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
thanx a lot..i tried and it worked!!!
otherwise, i tried using the getScaledInstance() method of java.awt and it also worked.
thanx again...

meera
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
My, my, aren't you a big fella. Here, have a tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/587419/java/java/large-number-results", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nProblem with large number of results (Java API forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nProblem with large number of results\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 12
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Report\n
\n
\n
\n
Dears,\r
Hope this finds you well.\r
I posted this also in JDBC forum,\r
I have an issue and I need an architectural solution or opinion for this. \r
I have these three tables\r
1- Users table 2- Groups table 3- UserGroups table\r
\r
The issue is that I have service allows users(these users are in Users table) to subscribe in specific groups (these groups are in Groups table), I managed this in UserGroups table.\r
The UserGroups contains two columns, group id (which is unique in Groups table) and user id (which is unique in Users table) -- one to many relationship --\r
The user table may contain over 1 000 000 of users.\r
The group id is number (1,2,....,8), so I use this SQL statement\r
\r
I'm using this SQL statement to get the whole stuff as one record. \r
I'm using JDBC (prepared statement and result set), setting setFetchSize for both with specific parameter, \r
The return type is like this \"Map<UserTO,List<GroupsTO>>\", UserTO contains the details of the user, and GroupsTO contains a list of subscribe group. \r
The problem is when I execute this task, it takes very very long time and then a timeout exception thrown ! \r
Any better solution? or any suggestion? from both sides the database and java code ! \r
May environment is : Database: 9.5, application server: IBM - WebSphere Application Server 7, the task is hosted by EJB component as scheduler deployed in the application server. \r
\r
Your quick help is highly appreciated.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 28368
\n
\n
\n99\n\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"MySQL\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\n\t\t\t\tAbdullah Khalaf wrote:I posted this also in JDBC forum.

\n\t\t
\r
\r
Yes, that was a good choice. I see there is discussion there already. For those interested, here's a link to that other post: https://coderanch.com/t/587417/JDBC/databases/large-number-results.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
BWA HA HA HA HA HA HA! Tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/665321/certification/EPractice-Lab-quiz-filter", "domain": "coderanch.com", "file_source": "part-00559-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nEPractice Lab quiz 2 about filter (OCPJWCD forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nEPractice Lab quiz 2 about filter\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 2445
\n
\n
\n13\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 8 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\r
You want to create a filter for your web application and your filter will implement javax.servlet.Filter.\r
Which two statements are true?\r
[ Choose two ]\r
\r
a. Your filter class must implement an init method and a destroy method.\r
b. Your filter class must also implement javax.servlet.FilterChain.\r
c. When your filter chains to the next filter, it should pass the same arguments it received in its doFilter method.\r
d. The method that your filter invokes on the object it received that implements javax.servlet.FilterChain can invoke either another filter or a servlet.\r
e. Your filter class must implement a doFilter method that takes, among other things, an HTTPServletRequest object and an HTTPServletResponse object.\r
\r
\r
Choice A and Choice D are correct\r
\r
A filter is an object that performs filtering tasks on either the request to a resource (a servlet or static content), or on the response from a resource, or both.\r
Filters perform filtering in the doFilter method. Every Filter has access to a FilterConfig object from which it can obtain its initialization parameters, and a reference to the ServletContext which it can use, for example, to load resources needed for filtering tasks.\r
Filters are configured in the deployment descriptor of a web application.\r
Examples that have been identified for this design are:\r
1. Authentication Filters\r
2. Logging and Auditing Filters\r
3. Image conversion Filters\r
4. Data compression Filters\r
5. Encryption Filters\r
6. Tokenizing Filters\r
7. Filters that trigger resource access events\r
8. XSL/T filters\r
9. Mime-type chain Filter\r
A FilterChain is an object provided by the servlet container to the developer giving a view into the invocation chain of a filtered request for a resource. Filters use the FilterChain to invoke the next filter in the chain, or if the calling filter is the last filter in the chain, to invoke the resource at the end of the chain.\r
Your filter class must implement an init method and a destroy method.\r
The method that your filter invokes on the object it received that implements javax.servlet.FilterChain can invoke either another filter or a servlet.\r
\r

\n\t\t
\r
\r
I think C is also correct.\r
For example:\r
\r
\r
Reference:\r
http://tutorials.jenkov.com/java-servlets/servlet-filters.html
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 28371
\n
\n
\n99\n\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"MySQL\n
\n
\n
\n
\n
\n
\n
\n\nposted 8 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
If you follow the link from that tutorial to this one:\r
\r
http://tutorials.jenkov.com/java-servlets/gzip-servlet-filter.html\r
\r
you'll find an example of a filter whose doFilter method does NOT pass the same arguments it received when chaining to the next filter.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/90000/application-servers/book", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nWhy should I want your book? (JBoss/WildFly forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"thread\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nWhy should I want your book?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 9109
\n
\n
\n12\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
What will I learn if I read your book?
\n

JavaBeginnersFaq\r
\"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present.\" Eleanor Roosevelt

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 14691
\n
\n
\n16\n\n
\n
\n\n
\n\"Eclipse\n\"VI\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
sheriff ?

Give me that badge and I'll hang you up and high for posting meaningless questions(3 in a row) during the promotion period
\n

[My Blog]\r
All roads lead to JavaRanch

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nAuthor\n
\n
Posts: 67
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
That's OK, I'll answer your question.

Our book shows how to develop a single a application, iteratively adding new technologies (JSP, Servlet, JDBC, Hibernate, Stateless Session Bean, JMS, Security, Web Services) and showing how to deploy it on JBoss. We feel that showing how to add one technology at a time makes it easier to learn rather than showing everything all at once.

We have the only JBoss book that isn't a reference. This book is for J2EE developers who want to develop/deploy applications on JBoss.

Tom
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Grow your own food... or this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/11653/careers/Websphere-Unix-Admin-NCR-India", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nWebsphere and Unix Admin , NCR - India (Jobs Offered forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nWebsphere and Unix Admin , NCR - India\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 116
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Websphere Administrator


A minimum of 4 years IT experience including: A minimum of 24 months Websphere administration and development experience incorporating the following: An in depth understanding of the J2EE and Web sphere architecture (security model, Work Load Management etc), for version 4.0/5.0 Ability to carry out day to day administration of Web sphere and automation of administration activities in a Unix environment. Detailed experience of setting up Application servers (MQ, JDBC, CICS etc) and resolving issues in a timely manner. Detailed experience of code packaging and deployment. Ability to provide advice and guidance to development project teams on application design, application server set-up, deployment, performance tuning for all Web sphere interaction. Provide ongoing support in terms of performance tuning, assessing impacts of new Web sphere versions, application of patches, liasing with IBM support.


Required Skills/Knowledge


- IBM Websphere
- Weblogic
- Sun Solaris Unix
- Unix Shell/Perl Shell Scripting
- Apache
- Java
- Iplanet Web Server
- Microsoft Internet Information Server (IIS)
- J2ee
- Experience with patching, migrations, and new product rollouts at enterprise level
- Experience Troubleshooting All Of The Above
- Excellent troubleshooting skills
- Understanding of web technologies at conceptual and detailed levels


Key Skills


- Excellent Voice and Communication Skills
- Problem solving and analysis
- Global orientation
- Process oriented
- Ability to stay focused
- Willingness to handle repetitive account administration tasks


Location: Delhi/NCR & Chennai , India





HP-UX administration




Profile: HP-UX (Level � 3)


Should have around 6+ year of Unix Experience with 4+ years of demonstrated experience and proficiency in managing and maintaining HP-Unix (V11.x or later), will be responsible for.


- Installing, configuring and maintaining HP servers
- Installation and configuration of High Availability environment using MC \\Service Guard.
- Configuration and administration of HP Logical volume manager
- Installation and Configuration of ignite backup
- Patch and Package administration
- Printer Administration
- Writing shell scripts for day to day system administration task
- Configuring and supporting HP Super dome Servers
- Installation and configuration of HP -ignite environment and able to create and verify Golden image.
- Troubleshooting Hardware and Operating system related issue
- Capacity planning and Fine tune system for optimal performance
- Installation, configuration and Administration of Veritas, Netbackup environment
- Configuring Unix Security baseline
- Experience in System Fault Tolerance Design, Business continuity and Disaster recovery planning


Profile: HP-UX: (Level � 2)


Should have minimum 3-5 year of Unix Administration experience with 3+ years of demonstrated experience and proficiency in managing and maintaining HP-Unix (V11.x or later) will be responsible for.


- Installing, configuring and maintaining HP servers
- Account and Printer administration
- Patch and package administration
- Configuration and administration of HP Logical volume manager
- Fine tune the system for optimal performance
- Changing kernel parameters
- Understanding of SAN environment
- Day to day administration task on MC /Service guard environment
- Able to write basic shell scripting to accomplish day to day administration task
- Understanding of Ignite backupsss
- Understanding of Unix Security baseline
- Troubleshooting Hardware and Operating system related issue


Additional skills for HP-UX (Level 3 and Level 2)


Experience on following will be added advantage
- CIFS
- DNS
- NIS
- Sendmail
- LDAP
- HP Glance
- Monitoring Tools (like BMC Patrol, HP openview, IBM Tivoli)


Location: Delhi/NCR & Chennai , India

Please PM me you CV in text format .
\n

<a href=\"http://itpaypacket.blogspot.com/\" target=\"_blank\" rel=\"nofollow\">http://itpaypacket.blogspot.com/</a><br />Life is unpredictable: eat dessert first :-)

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 1252
\n
\n
\n\n
\n\"Spring\"\n\"Java\"\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Shipra,

Check your PM.
\n

The Best way to predict your future is to create it - Every great individual common man

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/401613/java/java/Java-applications", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJava and other applications (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJava and other applications\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 10
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
New to Java and just learning and want to create a application and have a question. Can someone tell me if Java works with office applications.
I.E. I want to have a program that allows for inputing of Data then inturn puts this information on 2 seperate Excel forms or even word forms.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor and iconoclast\n\n
\n
Posts: 24207
\n
\n
\n46\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
If your ultimate goal is to be able to write things that integrate well on the desktop with Office, seriously consider learning C# instead of Java. Although this kind of thing is not absolutely impossible with Java, it's vastly harder to do than in a .NET language. Doing it in Java will entail various workarounds and compromises, so if you're just starting out, consider taking another path.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
I don't always make ads but when I do they're tiny
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/314418/java/java-io-InvalidClassException", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\njava.io.InvalidClassException (EJB and other Jakarta /Java EE Technologies forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\njava.io.InvalidClassException \n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 60
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,

I am trying to implement 1:N relationship.

Ex: Plane -- Seats
Seat Bean would be having a plane id as the foriegn key.
The client code is as below :


Ejb create of Seat Bean is as follows :


Exception occurs when the method setPlane () is invoked.
java.io.InvalidClassException: javax.ejb.EJBException; local class incompatible: stream classdesc serialVersionUID = -9219910240172116449, local class serialVersionUID = 796770993296843510

Could any one suggest why does the exception occur..

However the same code works if I invoke setPlane() from the client.i.e.


Thanks for the help in advance.

Regards
Atul
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 1258
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You can't set CMR fields in ejbCreate--do that in ejbPostCreate.
\n

Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAtul Prabhu\n
\n
\nRanch Hand\n
\n
Posts: 60
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,

I tried calling setPlane method from ejbPostCreate but it gives an exception that all the primary key fields should be set in the ejbCreate.
My Seat Bean has two primary key fields one is the seatno and another one is the plane id.

But what is the difference if i call setPlane() method from ejbCreate or ejbPostCreate.

I know that this problem would be solved if i pass planeid to ejbCreate rather than the remote object of PlaneBean.

Can't I pass remote object's to ejbCreate method or any other method .....?

Regards
Atul
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/416282/sockets/java/Client-Server-Chat-Network", "domain": "coderanch.com", "file_source": "part-00559-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nClient Server Chat Network Issue (Sockets and Internet Protocols forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nClient Server Chat Network Issue\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 32
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Playing with the Head First Java Chat program, I have run into a network problem: How do I run the Chat Server on my computer, and allow my roommate to run the client on her computer, so we can chat?

I have a motorola router on a wireless network with two desktop computers running Windows XP. Each has its own internal IP address.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 170
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
If your two computers are connected ..
There is no problem ...

1) Run the server on your friend's machine
2) Connect to that server through the client from your machine ..
(i.e connect to your friend's ip )

You can learn more about it here

Lesson about sockets
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nDarren Brooks\n
\n
\nRanch Hand\n
\n
Posts: 32
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have tried running the server on my machine, and then connecting to my internal IP address via her machine. It does not connect. My goal is to run the server on my machine, and have friends from outside my private network connect, as well.

I'm having similar problems using a program which opens a port. My friend in another country is trying to connect, but cannot. I have port forwarded the port number, but it still won't connect. I feel this is the same issue as I am having with the server/client java program.

Are there any thoughts about what might be the issue?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nvanlalhmangaiha khiangte\n
\n
\nRanch Hand\n
\n
Posts: 170
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Really don't know what is the problem ...
Have tried the server-client program with both LAN connection and wireless connection .. Was working perfectly ....

Are you able to ping the other machine ..
Go to command prompt and type
ping 192.168.0.1 (ip addr of your friend) ..
[ November 13, 2008: Message edited by: vanlalhmangaiha khiangte ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 9626
\n
\n
\n16\n\n
\n
\n\n
\n\"Mac\n\"Linux\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Does the 'server' have a firewall?
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/436017/certification/SCWCD-Reference-books", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nSCWCD Reference books (OCPJWCD forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nSCWCD Reference books\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Can anyone suggest me the reference book for SCWCD ???\r
Thanks in advance..
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 70
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Rocky,\r
\r
Check out the link http://faq.javaranch.com/java/ScwcdLinks\r
\r
I've also just been researching the book to use for the SCWCD, and i think most ranchers are using the \r
Head First Servlets & JSP by Bryan Basham, Kathy Sierra, Bert Bates. I'll be getting that book for my prep. Of course there\r
are other books, but i think this is the one i'll definately be using. Check out the link for more information and the FAQ section for \r
other useful information as well. \r
\r
Happy prepping.\r
\r
Regards,\r
Siphiwe Madi\r
SCJP 5
\n

Regards, Siphiwe Madi\r
[SCJP, SCWCD, __] Next ... scjwsd

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRocky Singh\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks a lot for suggesting this book..\r
\r
Thanks..\r
Rocky Singh
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
\r\n
New web page for Paul's Rocket Mass Heaters movies
\r\nhttps://coderanch.com/t/785239/web-page-Paul-Rocket-Mass\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/349554/java/Windows-server-JSP-page-displaying", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nWindows (server) 2000 and JSP page not displaying correctly (Servlets forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nWindows (server) 2000 and JSP page not displaying correctly\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 28
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have just installed tomcat to work with IIS.
If I go to the server that I just installed this on and view (through IE) one of the example jsp pages that came with tomcat, I see the 'source' for jsp and the html. I don't see a nice web page.
Secondly, if I go to another computer and enter the IP address followed by the path to this same example, i get a 404 file not found.
In my isapi.log I am seeing an error message that reads as follows:
/tomcat/webapps/examples//jsp/num/numguess.jps is not a servlet url.
check is /tomcat/webapps/examples/jsp/num/numguess.jsp points to the web-inf directory.
Any suggestions on solving this one?

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/40/46568/frameworks/Error-NewsLetter", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nError while trying NewsLetter Example (Struts forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nError while trying NewsLetter Example\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 15304
\n
\n
\n6\n\n
\n
\n\n
\n\"Mac\n\"IntelliJ\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Ok everyone. It is finally working. Here was my problem and it was NOT A TYPO on Thomas' part.
In my struts-config.xml file I had <form-beans> but never started the <form-bean> within that element.
So I fixed that and I believe all is working. Except I don't know my own username and password. LOL.
Anyway, thanks to everyone for the tremendous amount of help solving this problem.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/412365/java/java/difference-arraylist-vector", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\ndifference between arraylist and vector (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\ndifference between arraylist and vector\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 11
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi
can anybody explain me about arraylist and vector other than arraylist is unsynchronized whereas vector is not.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 179
\n
\n
\n\n
\n\"Mac\"\n\"Eclipse\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
A similar question was already in the forum and can be found here
[ October 21, 2008: Message edited by: Ravikanth kolli ]
\n

-kolli

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\npraveena reddyk\n
\n
\nGreenhorn\n
\n
Posts: 11
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks
thats i know instead of going to vector for synchronization we can use
collections framework methods other than this is there any other
difference since in an interview i got this who is expecting more
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
There is no "i" in denial. Tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/496927/Flex/Callback-Methods-called-UI-Componet", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nCallback Methods called when a UI Componet is displayed (Flex forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nCallback Methods called when a UI Componet is displayed \n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 2234
\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"Redhat\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi ,\r
\r
There are 3 callback methods called as preInitialize , initialize and creationComplete that will come into picture when a UI Component is initialized .\r
\r
Can anybody clarify my confusion here , what does a UI Component Mean here ??\r
\r
Is it a Container like a Application or a control like Button ??\r
\r
Please share your ideas . Thanks for reading .
\n

Save India From Corruption - Anna Hazare.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 10336
\n
\n
\n\n
\n\"Hibernate\"\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Anything that is a UIComponent.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Evacuate the building! Here, take this tiny ad with you:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/145854/po/certification/Sun-Certified-Java-CAPS-Integrator", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nSun Certified Java CAPS Integrator (CX-310-502) (Certifications forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nSun Certified Java CAPS Integrator (CX-310-502)\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Anybody take this yet?

I've been working with caps for about 5 yrs. Just curious on topics covered.
\n

Hizey<br />........................<br />SCJP/SCWCD/SCBCD/SCDJWS<br />IBM RAD Cert Assoc. Dev.<br />........................

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/269855/certification/output-mock-tests", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nProblem in output and mock tests? (OCPJP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"advertise\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nProblem in output and mock tests?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 34
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi All,

I was going through some of the programs. The following two program's output caught me confused.


1)


The answer is:
0 0 3 0.

I could not understand why does it print 3 at the 2nd index.


2)

Answer:
It does not compile.

But if we replace Boolean by string it complies. Why we cant sort a boolean array?


About quote the source:
I am sorry, I dont remember the exact source. I have been solving from miscellaneous sources on the internet and I put all my doubts in a word file as and when I encounter them. Henceforth, I will take the responsibility of making a note of the source too. (Its unlikely to get the real questions though )



MOCK TESTS:

I had previously also posted queries regarding mock tests. I got the following link as a reference http://faq.javaranch.com/java/ScjpMockTests.

Can someone tell me precisely which mock exams (that are free and available online) map with the objectives of SCJP 5?

I have purchased Javabeat's 350 mock questions. Can someone tell me how much does it map with the SCJP 5 objectives?

I would appreciate if some one could thoroughly guide me as after reading K&B, which mock exams should be practiced before appearing for SCJP 5.0?

Thanks All for your time.

Regards
[ August 10, 2008: Message edited by: Badal Chowdhary ]
\n

Regards,<br />George Gates

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 13411
\n
\n
\n\n
\n\"Firefox\n\"VI\n\"Redhat\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Badal Chowdhary,
Welcome to JavaRanch.

A couple tips:

1.) Anytime you post code examples to a testing forum, we require that you include a valid source.
See:
Quote Your Sources for more information.
You can add a source to this post by clicking on the icon in the top post of this thread.

2.) Whenever you post more than 1 or 2 lines of code to JavaRanch, be sure to wrap your code in a set of UBB CODE tags.
Doing so will preserve your indentation making the code much easier to read.
If your code is easier to read, you stand a much better chance of having someone knowledgeable read it and answer your question for you.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 23
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Badal!

It is indeed hard to trace the program just by looking at it, but I tried in
in code anyway.

#1


And here's the trace

1st iteration
i=1
arr[i]=0
your array is now arr{1, 0, 3, 4}

2nd iteration
i=0
arr[i] = 0
your array is now arr{0, 0, 3, 4}

3rd iteration
i=3
arr[i] = 0
your array is now arr{0, 0, 3, 0}

4th iteration
i=0
arr[i] = 0
your array is now arr{0, 0, 3, 0}

I hope this helps
[ August 09, 2008: Message edited by: Quirino Gervacio ]
\n

SCJP 6.0

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nQuirino Gervacio\n
\n
\nGreenhorn\n
\n
Posts: 23
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi again Badal!

#2


Arrays are also objects whether the elements of your arrays are primitives. In your problem, notice that this is valid.

but in the API of Arrays helper class, there is no Array.sort(Object), only Arrays.sort(Object[]), and then some..

I hope this helps.
[ August 09, 2008: Message edited by: Quirino Gervacio ]
\n

SCJP 6.0

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nGeorge Gates\n
\n
\nRanch Hand\n
\n
Posts: 34
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Quirino,

Thanks for answering the questions.

I still have some doubts.

#1)
Can you tell how the values of 'i' changes in the 4 iterations?

#2)
If arr is a boolean array, how is it possible to say


Shouldn't it be something like this...


Thanks again
\n

Regards,<br />George Gates

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 17
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Badal Chowdhary:
Hi Quirino,

Thanks for answering the questions.

I still have some doubts.

#1)
Can you tell how the values of 'i' changes in the 4 iterations?

#2)
If arr is a boolean array, how is it possible to say


Shouldn't it be something like this...


Thanks again

\n\t\t


Dear Badal,

#1) the fourth iteration i is assigned with a value = 0 beecause the fourth element is 0 due to the third iteration. Third iteration:

array[3] = 0 which is the fourth element as array is 0-based indexed

Result in: array[0] = 0 (first element)

#2) It simply does NOT compile as Arrays class does not have a method to sort an array of boolean. It DOES have methods to sort arrays of other primitive types. Read Java API for more info

Hope that helps
[ August 10, 2008: Message edited by: Steve Ng ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nQuirino Gervacio\n
\n
\nGreenhorn\n
\n
Posts: 23
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n

is valid

Notice when you perform a dot operation in arr, you'll be able to use the methods of the Object class.

Not

Because arr is not an array of object.

Also, just like Steve posted, there is no Arrays.sort(boolean[])
The API is also your best friend. :-)

I hope this helps
[ August 10, 2008: Message edited by: Quirino Gervacio ]
\n

SCJP 6.0

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nGeorge Gates\n
\n
\nRanch Hand\n
\n
Posts: 34
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Yes, I get it now.
Thanks
\n

Regards,<br />George Gates

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/102565/Enabling-assertions", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nEnabling assertions (IDEs and Version Control forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nEnabling assertions\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nV Bose\n
\n
\nRanch Hand\n
\n
Posts: 113
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have set the compliance setting to 1.4, but I am not able to run and trigger an assertion error. Even if the assertion fails, the console does not report the assertion failure. Is there some option in eclipse which I am not setting properly?
Thanks in advance...
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 57
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Just add \"-enableassertions\" to the VM arguments. I haven't seen a preferences setting for enabling assertions.
\n

SCJP 1.2, SCJD, SCEA, IBM 484, Weblogic 7

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/115902/languages/chat", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\none to one chat : on? (HTML Pages with CSS and JavaScript forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\none to one chat : on?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 41
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello sir,
I am developing a chat application using JSP and Servlets. Currently we have reached a stage where the common ie general chat works quite fine using servlet as message transporter

Now we are trying for the one to one chat module in the same.

if you could tell me that is it possible to use SIMULTANEOUSLY :the HTML forms action attribute to call a servlet & make available the page for sending the message continuosly in front of the user as its for a Chat Application.

I have tried using XMLHttpRequest concept which can simultaneously call a server side component and also makes visible HTML page on which the user is currently working.

As i've seen some examples on the internet using this concept but in all of them common thing was that they were only \"GETTING\" from the server side like the search engines & not posting anything.

So is it possible to use Ajax concept to \"POST\" on the Serverside as at present i'm not able to even store the messages on the server side which previously got stored.

If you do have another fruitful idea that i could use to send a one to one message without the usage of servlets and using any new concept that you suggest then plz tell.

So please guide me how to approach.

Waiting for your reply.....

Thanking you,
Siddharth
[ April 16, 2005: Message edited by: Bear Bibeault ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor\n
\n
Posts: 15385
\n
\n
\n6\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
you need to send query string data in your request back.

Eric
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/u/16762/Wilfried-LAURENT", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nAll about Wilfried LAURENT\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n
\n\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Wilfried LAURENT

\r\n
\r\n
\r\n
Ranch Hand
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n+ Follow\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nsince Jul 13, 2001\r\n
\r\n
\r\nMerit badge:\r\ngrant badges\r\n
\r\n
\r\n
\r\n
For More
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Cows and Likes
\r\n
\r\n
\r\n
\r\n
Cows
\r\n
\r\n
\r\n
Total received
\r\n
\r\n
\r\n
\r\n
\r\n
In last 30 days
\r\n
0
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Forums and Threads
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Recent posts by Wilfried LAURENT

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nThanks a lot Wilfried.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHello Wilfried,
I think I have found the answer.
This is a known bug numbered #4757263 in the bug parade. Lucky US users did not even noticed there was a problem. It seems that deploytool prevent you to create a JAR when the Locale is not set to US. Changing my locale to US solved this problem.

W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi,
I have just been using deploytool 1.4 for the first time. I think I have followed step by step the instructions. But when I arrive on the last window named \"Review Settings\". And which states \"The following deployment descriptor will be generated for your module.\", the window is desperately blank.
What could be the cause of that? I could not find a FAQ on deploytool
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nThere are other ways to cleanly stop a thread. Like changing your while (true) to a while(bool) and setting the variable bool to false whenever you have to stop the thread.
See also the forum
Thread.
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nSee the UML Forum. You will find some discussions on it.
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\nUnitTesting\r\n
\r\n
\r\n
\r\nWhat is the need for unit testing?
Identifying bugs early on in the development cycle. As you probably know, the later you find a bug, the more expensive it is.
It also provides a repartition of the test effort before integration effort. Unit testing lets you test a ... unit of program -that is a mostly a class- and verify if the results conforms to what was expected. This gives a binary answer: Success of failure.
Then later on, if you change something in the implementation of your class, just run the unit test. If it still succeeds, then you can confidently deliver your class.
There is an abondant litterature on unit testing on the Web, junit.org for example.
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n
\r\nTesting\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n... a testing forum. The testing lobby has finally succeeded. How was possible for you, Paul, to undergo such pressures?

W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n
\r\nTesting\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nAccording to Peter Coad:
Choose Inheritance when it satisfy all of the following:
1. A subclass represents \"Is a special kind of\" and not \"is a role of\"
2. An object of one class never needs to transmute to another class
3. The derived class extends rather than overrides or nullyfies the responsabilities of its base class
4. A subclass does not extend a utility class
5. For a class in the actual Problem Domain, the subclass specializes a role, a transaction or device.
So make up your mind
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi,
Who is in charge of registering the name of the packages?
I mean if I decide to have packages starting with fr.toto, who can guarantee that no one will ever use it?
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi,
Yesterday someone told me seriously that there were 80 different kind of diagrams in UML.
Does anyone knows what he was refering to?
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\nUML Tools\r\n
\r\n
\r\n
\r\nDaniel, it seems that you are not update.
GdPro is now known as
Describe.
There is also
Softeam's Objecteering which I quite like. There is a free download for Personal Edition.
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\nComposition\r\n
\r\n
\r\n
\r\nEven if you do not feel the need, it is a good habit to explicitely declare classes in named packages. It does not cost a lot and I have seen so many errors due to the use of the anonymous package.
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\nComposition\r\n
\r\n
\r\n
\r\nIn the init method, you have a line:
SimManager manager = new SimManager(buildingCanvas);
It means that the SimManager manager you are instantiating is local to the method init. You have not instantiated your class attribute wearing the same name 'manager'.
Drop 'SimManager' in the init method:
manager = new SimManager(buildingCanvas);
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\nComposition\r\n
\r\n
\r\n
\r\nCould you please provide the whole exception stack trace?
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nYou should see the
bunkhouse. And if you are looking for a book (and not web links), a good (but sometimes tedious) introduction is Kruechten's \"The Rational Unified Process an Introduction: An Introduction\" book
W.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
22 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n
\n\n\n\n" }, { "url": "https://coderanch.com/t/209787/java/JXTA", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJXTA --- Help (Distributed Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJXTA --- Help\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nSaurabh Agrawal\n
\n
\nRanch Hand\n
\n
Posts: 244
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello folks,
I am hereby looking forward to take my first step to develop a sample application using JXTA, so can anyone guide me with some sample code so that i can get started.I could not get much help from jxta.org site.

Also please let me know to test a P2P application, can i use a single PC to do the testing or do i need 2 networks for testing .

I am intending to develop a file transfer application across the peers.

Please help me as i am not getting my work started.

Thanks in advance ,...

Saurabh
\n

Success is not doing extraordinary things but doing ordinary things extraordinarily well.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/218306/databases/Unit-test-patterns-Hibernate", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nUnit test patterns with Hibernate (Object Relational Mapping forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nUnit test patterns with Hibernate\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 132
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,

I have a simple question for folks who have strong experience with using Hibernate. My question relates to best practices in terms of unit testing Hibernate code, particularly when the DAO pattern is used. In general, should unit tests be written just for the DAOs, just for the entities, or for both?

We are beginning a project, and I want to ensure that we provide good test coverage, while at the same time not spending more time than we need. I'd imagine that one answer to my question is \"if you want complete coverage, then test the entity and the DAO layer\", but I'm curious if, in practice, anyone has found it more efficient to omit tests for one or the other.

Thanks in advance!
\n

Dave Taubler<br />Specializing in <a href=\"http://taubler.com/articles/\" target=\"_blank\" rel=\"nofollow\">Java and Web Development</a>

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 10336
\n
\n
\n\n
\n\"Hibernate\"\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I wouldn't test either unless you have a test generation tool that can reverse engineer tests from your DAOs. Assuming you have a common DAO pattern applied throughout your DAO layer all you will be doing is testing the same relatively small bit of code repeatedly. While this might be a good thing, you could end up with a large set of very basic tests you have to maintain. You will probably get enough coverage just testing the domain objects that use your DAO code.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/344584/java/Centering-dialogs-multi-monitor-environment", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nCentering dialogs in a multi-monitor environment? (Swing / AWT / SWT forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nCentering dialogs in a multi-monitor environment?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 56
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Currently, all of our dialogs seem to center themselves in the primary display. This is bad because the button that triggers the dialog may be 4 monitors away. I'm trying to get the dialog box to center on the screen where the action occured.

My current solution involves passing a Point object that represents the location of the action into the method that eventually shows the dialog. From this Point, I'm trying get the object (GraphicsConfiguration?) that represents the screen that contains this Point. My current code looks something like this:



As you can see, it's pretty much a mess. It works in some cases, but is unpredictable in others. If the main window is resized so that it takes up less than 1 screen, then everything seems OK. If I drag this window between monitors and try to show the dialog, it seems to center correctly on the proper display. There is a problem when the window is stretched to take up more than one screen, however. The dialog does not always appear on the correct display.

I can't possibly be the only person having this problem, but any information on how to properly support multi-monitor environments is pretty hard to come by. Is my understanding of the GraphicsConfiguration object correct? Does it represent the current display? Any one have any ideas? Thanks!
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/399144/java/Decision-tree", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nDecision tree (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nDecision tree\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 57
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi, am working on binary trees, and wanted to make a little program that takes the user through a series of questions. I was thinking of using the well-known decision tree of how to deal deal with a mess-up: Did you break it? Did anyone see you? Can you blame it on anyone else? I cannot quite remember it. Does anyone know the questions or have the URL of a site that shows it? Would be very grateful indeed!

Thanks!
Flo
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 221
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Is this what you mean?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 1646
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I just bookmarked that on my forehead. Thank you!
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 37
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I gotta remember that one!
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nFlo Powers\n
\n
\nRanch Hand\n
\n
Posts: 57
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Ah, yes, that's the one! Thank you so much!
Flo
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 31
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
is this something popular that is related to binary trees?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nDavid Harkness\n
\n
\nRanch Hand\n
\n
Posts: 1646
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by kiennjal shah:
is this something popular that is related to binary trees?

\n\t\t
No, binary trees specifically involve sorting the values in the tree for faster lookup, insertion, etc.

A decision tree instead labels each edge (connection from one node to another). A node has a question (decision) with multiple edges leading to other nodes. Once you have an answer to the question, you navigate the edge with the matching answer.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"jQuery\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/206564/sockets/java/java-net-SocketException-open-files", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\njava.net.SocketException: Too many open files (Sockets and Internet Protocols forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\njava.net.SocketException: Too many open files\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 618
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I'm running some simple but fast-pounding test programs against our
Tomcat server from a machine on the same network, and we've been tuning
our database, etc, based on this. But right now, I'm seeing a new one
coming out of our Java code whenever we try to open a URL:


java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:331)
at java.net.Socket.connect(Socket.java:450)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA12275)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.protocol.https.HttpsClient.<init>(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.plainConnect(DashoA12275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA12275)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(DashoA12275)



We're opening lots of these, and it appears we're opening more than a
maximum number of connections to the internet. Is there a way to bump
this up? Or maybe we're just pounding this harder than it will ever get
hit in the real world? I'm also seeing this as well:





SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=80]
ignored exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:107)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:356)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint
closeServerSocket
SEVERE: Caught exception trying to unlock accept.
java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:331)
at java.net.Socket.<init>(Socket.java:304)
at java.net.Socket.<init>(Socket.java:124)
at org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:326)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Whats the OS? If its a *nix system you may have to bump up the number of allowed open file descriptors.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nStephen Huey\n
\n
\nRanch Hand\n
\n
Posts: 618
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Linux - Red Hat 8...anyway, I understand you can play with that with ulimit...do you know much about that, though? It seems like we might already be at the max (1024?).
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nCal Watson\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I think there is a limit set in /etc/sysctl.conf called maxfiles.
I don't know to much about it because I have only encountered it once, but I think if you change this limit then run ulimit again it may work.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nStephen Huey\n
\n
\nRanch Hand\n
\n
Posts: 618
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
FYI, on Linux, you can use the ulimit command to raise the number of open files that user can have. I did this a few days ago--I think

ulimit -n (number)

will do the trick. Type this to see what it's set at:

ulimit -a



G'night!
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 236
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Actually, the problem is probably *NOT* \"open files\" at all.

It sounds like you're running out of TCP/IP \"ephemeral ports\". If so, then you need to configure your OS to increase its \"Max ports\" (\"ephemeral ports\") range:

EXAMPLE: NT/Windows 2000/XP:
---------------------------
MaxUserPort registry entry
HKLM\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters
<= CREATE THE REGISTRY KEY \"MaxUserPort\" AND SET IT TO 10000 (OR HIGHER)

Instead of editing the registry, you'd use the \"ndd\" command on Solaris or HPUX.

Here's a reasonably good write-up:
http://members.cox.net/~ndav1/stratasphere/selecting_ports.doc

Hope that helps .. PSM
[ February 06, 2005: Message edited by: Paul Santa Maria ]
\n

Paul M. Santa Maria, SCJP

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/634538/vc/Package-Options-NetBeans-BeanInfo-Classes", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nPackage Options in NetBeans for BeanInfo Classes (IDEs and Version Control forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nPackage Options in NetBeans for BeanInfo Classes\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 1464
\n
\n
\n32\n\n
\n
\n\n
\n\"Netbeans\n\"C++\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have created a simple JavaBean and its associated BeanInfo class. When their source files are contained in the same package, the icon provided by the BeanInfo class appears in the NetBeans palette after I add the JavaBean to the palette. I would like to locate the BeanInfo class in another package. When I do this, however, NetBeans can't seem to find it. The javadoc on the Introspector class says there is a BeanInfo search path that starts in the same package, but looks to sun.beans.infos when that fails. I've confirmed that's where the Introspector is looking with this bit:\r
);\r
\r
Which gives me this:\r
\r
sun.beans.infos\r
\r
\"Core Java\" simply says, \"The bean info class must be part of the same package as the bean itself.\" If true, then I'm stuck. But that's not what the javadoc seems to suggest.\r
\r
Where else can I put my BeanInfo class, other than the same package that contains the JavaBean itself, and still have NetBeans find it?
\n

\"Il y a peu de choses qui me soient impossibles...\"

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 3323
\n
\n
\n86\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I've never done anything like this myself before but the Javadocs do say \"We first look for the BeanInfo class by taking the full package-qualified name of the target bean class and appending \"BeanInfo\" to form a new class name. If this fails, then we take the final classname component of this name, and look for that class in each of the packages specified in the BeanInfo package search path.\" so I would say it is possible provided NetBeans has a way to set the BeanInfo package search path.\r
\r
You may get better help on this in the IDE forum so I will move the thread there.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nStevens Miller\n
\n
\nBartender\n\n
\n
Posts: 1464
\n
\n
\n32\n\n
\n
\n\n
\n\"Netbeans\n\"C++\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks for moving this to a more appropriate forum, Tony. I didn't know this one was here, but I will visit often from now on.\r
\r
Your reading of the javadoc matches mine. But I've tried every interpretation of what it says that I can, and none of them work. I've tried Googling \"netbeans beaninfo search path\" and can't find anything that works that way, either. It does work beautifully if I use the NetBeans BeanInfo Editor and leave the <classname>BeanInfo.java file in the package with <classname>.java. It just seems like that creates clutter I'd rather not have, and that the javadoc clearly suggests isn't necessary.\r
\r
If anyone else has an example or guidance on where else to put the BeanInfo classes, I'd be grateful if they'd share it.
\n

\"Il y a peu de choses qui me soient impossibles...\"

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nStevens Miller\n
\n
\nBartender\n\n
\n
Posts: 1464
\n
\n
\n32\n\n
\n
\n\n
\n\"Netbeans\n\"C++\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I've found a partial work-around. Adding this code to my JavaBean's nullary constructor and compiling it and the BeanInfo class into the project's jar file lets the IDE find the BeanInfo class in another package:\r
\r
\r
\r
It's not a good fix, though, because the BeanInfo Editor's Designer can no longer find the original class definition.
\n

\"Il y a peu de choses qui me soient impossibles...\"

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
The human mind is a dangerous plaything. This tiny ad is pretty safe:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/2371/Mail-Notification-topics", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nE-Mail Notification for topics (JavaRanch forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nE-Mail Notification for topics\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 195
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
If you are a user in Sun Java Forums, then you would know that there is a feature called \"Start watching topic\" in these forums. This will send you an e-mail (to the email address that a user would have specified in his/her profile) whenever a new reply is included for that particular topic (thread). I think this feature should DEFINITELY be included in these Java Ranch forums as well.

Its so easy for a registered user to monitor any particular topic (or thread) that he/she is interested in or he/she has posted a reply if an e-mail is sent whenever the topic is updated with a new reply!

I think Java Ranch forums would be much much better if this E-Mail alert feature is included.
\n

Vijayendra <br /> <br />\"The harder you train in peace, the lesser you bleed in war\"

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 15304
\n
\n
\n6\n\n
\n
\n\n
\n\"Mac\n\"IntelliJ\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Read our FAQ to find out about this feature or lack there of.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nVijayendra V Rao\n
\n
\nRanch Hand\n
\n
Posts: 195
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Gregg Bolinger:
Read our FAQ to find out about this feature or lack there of.

\n\t\t


Thanks a lot! I got the answer:

QuestionCan I be notified via E-mail about replies to threads other than my own?
AnswerOur current forum software does not support this feature. The forum software we are developing does.
\n

Vijayendra <br /> <br />\"The harder you train in peace, the lesser you bleed in war\"

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Hey! Wanna see my flashlight? It looks like this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/317500/java/Isolation-EARs-EJB", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nIsolation of EARs (and EJB3) (EJB and other Jakarta /Java EE Technologies forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"thread\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nIsolation of EARs (and EJB3)\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi all,
I'm relatively new to EJBs and I'm trying to figure out how to deploy multiple instances of the same application to a JBoss application server. Each EAR will have its own context root, database, but will share the EJBs (entity and session) with all the other EARs. How should I layout my files?
Currently my EAR has a WAR file for the servlets, jsps, an EJB3 file for the entity and session beans, and two jar files which function as helper classes for the EJB and web tiers. My main problem so far has been the JBoss container complaining about duplicate deployments of EJBs, which is why I need to separate them out from the EAR files.

Has anyone successfully deployed multiple instances of a large, complex, EJB3 application and be willing to share some tips with me?

Thank you very much!
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I've been working on this by myself but I'm stuck. How would one package an application containing EJB3 entity beans, EJB3 stateless session beans, servlets and JSPs in such a way that multiple instances of the application can be deployed?

If I try to make each EAR file self-contained with JSPs/Servlets in a WAR, session/entity beans in an EJB3 archive, then the first EAR works but subsequent deployments in JBoss complain that the session beans already have been registered.

If I isolate the entity beans and remove them from the EAR, the EARs do not deploy because the session beans cannot find the entity bean classloaders.

If I isolate the entity and session beans, I then have trouble because each EAR cannot seem to find the correct datasource.

Does anyone have any advice? I've been stuck on this for a while now. Thanks!
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRoger Chung-Wee\n
\n
\nRanch Hand\n
\n
Posts: 1683
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Why do you want to deploy multiple instances?
\n

SCJP 1.4, SCWCD 1.3, SCBCD 1.3

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Well, the application itself is an ECommerce app, and instead of creating multiple memory-intensive JBoss instances with one application on each, we figured it would be more efficient to run multiple instances of the same application on a single JBoss server. Each application would have its own context root, and hence can be mapped to a different domain with Apache. This way, we can host multiple \"sites\" from one single JBoss server.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRoger Chung-Wee\n
\n
\nRanch Hand\n
\n
Posts: 1683
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I am no JBoss expert, but I would think that you would need to edit several XML files to change the default port numbers for each instance.
\n

SCJP 1.4, SCWCD 1.3, SCBCD 1.3

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Spritzler\n
\n
\nranger\n\n
\n
Posts: 17347
\n
\n
\n11\n\n
\n
\n\n
\n\"Mac\"\n\"IntelliJ\n\"Spring\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Yeah, it doesn't sound like you are getting anything out of having different .ears so to speak.

Why not just map the different URLs all to the same application, and have your EJB Pools contain enough of your EJBs to handle your traffic.

If you need more, you need to look at web farms, multiple servers, Load Balancers, those kind of tricks, not \"Multiple instances of the same application\" that just isn't needed.

Mark
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thank you both very much for the feedback. The reason why we want different EARs is because we have different databases for each application. For example, two companies both purchase a license to use this application. They will not want to see each other's data.

I think it would be easier to install multiple instances of the application on one server, than to modify the software to dynamically switch databases on the fly since it is a very large EJB3 application. Such a modification will require changing over a thousand files.

Please let me know if you can think of any alternative to achieve the same results.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRoger Chung-Wee\n
\n
\nRanch Hand\n
\n
Posts: 1683
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Surely the switching of DBs is just a matter of pointing a DataSource to a different connection pool.
\n

SCJP 1.4, SCWCD 1.3, SCBCD 1.3

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The application I'm working on used to be EJB 2.0 BMP, where each bean had a getConnection() method which would allow switching of DBs on the fly.

We're currently upgrading it to EJB 3.0 CMP, but the dynamic switching of databases is a problem. I've tried asking for help on the JBoss forum here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74456

Unfortunately, I've yet to receive any assistance. I'm still trying to figure out whether the problem is with the JBoss configuration, or if I don't completely understand the EJB3 persistence model. Meanwhile, I'm trying tangential methods such as deploying multiple applications, since that seems promising.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Spritzler\n
\n
\nranger\n\n
\n
Posts: 17347
\n
\n
\n11\n\n
\n
\n\n
\n\"Mac\"\n\"IntelliJ\n\"Spring\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Unfortunately, you are seeing first hand what happens and the huge cost of not doing it correctly up front. There should never had been a \"getConnection\" method in each and every Entity Bean. That is a very poor design. When designing, the number one thing to think about is how can this change, what would be the cost of the change, etc. There is more, but that doesn't help you now.

You guys should either 1. Bite the bullet, and remodel your application so that changes and things like this doesn't bite you in the *&^.

It looks like you just might have to go down the individual JBoss server for each database.

Mark
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thank you very much for the responses so far, they have been very insightful.

We are actually in the process of completely remodelling the application right now. As I mentioned in my post, we're upgrading to EJB 3.0 CMP, where the database is specified in the persistence.xml file of the persistence unit (in our case, each .ejb3 archive).

However, my attempts to deploy identical ears with different persistence.xml configurations has failed. For some reason, each EAR is connecting to a default database in JBoss (DefaultDS) instead of connecting to the database specified in the persistence.xml configuration file.

So far I have managed to get two instances of the same application working, with different context roots and no JNDI conflicts, but I cannot seem to get each of them to connect to its own database.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Spritzler\n
\n
\nranger\n\n
\n
Posts: 17347
\n
\n
\n11\n\n
\n
\n\n
\n\"Mac\"\n\"IntelliJ\n\"Spring\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You should create DataSources for each database you want to connect, and have some configuration file for pointing \"User Groups\" to a particular DataSource, so that when any person logs onto your one application, not mutliple. Then it can easily look up the DataSource to use for that user. Then the user will use the correct DataSource for their \"version\" and your application is generic to use any DataSource.

Mark
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
That's an interesting way to look at it. However, is that suggestion viable under EJB3? EJB3 accesses a database via an entity manager, which is injected into a context, usually a session bean. Each entity manager maps to a database. As far as I know, there is no simple way to \"switch\" the entity manager dynamically at runtime, which I believe is necessary if I am to choose a database upon user login.

I believe its possible to do a JNDI lookup of a dynamic entity manager at runtime, but such an approach means that every session bean method needs to be modified to lookup the entity manager, since the session beans are stateless. I keep thinking that if I could somehow get my EARs deployed in isolation... then it would be a relatively hassle-free way of fixing the problem. Is there a compelling reason not to pursue the isolated EAR solution?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRoger Chung-Wee\n
\n
\nRanch Hand\n
\n
Posts: 1683
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The DataSource, its binding to the JNDI tree and its relationship with a connection pool are fundamentally important to EJB, and it's no diferent in EJB 3.0. For EJB 3.0, each entity manager is specified and configured in a descriptor named persistence.xml, which must contain the necessary DataSource.
\n

SCJP 1.4, SCWCD 1.3, SCBCD 1.3

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAnonymous User\n
\n
\nGreenhorn\n
\n
Posts: 8
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Please help me out with this then: Below are two persistence.xml files which are each within an EJB3 archive within an EAR. Aside from this file, the contents of both EARs are identical. Am I missing anything?






The deployment scenario in which I've made the most progress is:
Two EAR files each with its own copy of:
1. a WAR (JSPs, Servlets)
2. a skeleton EJB3 archive which contains only a META-INF/persistence.xml and no classes
3. a helper JAR file.

Altogether, I deploy three items to JBoss at the same time. Both EARs, and a full EJB3 archive with only the entity and session classes and no persistence.xml.

Everything deploys without any problem. However, when I try to access either EAR from a browser, the datasource both end up connecting to is the default hypersonic database which comes built-in with JBoss.

Am I messing up on the persistence.xml deployment descriptors somehow?

I'm sorry if my questions are confusing. I'm only an intern trying to do all this
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRoger Chung-Wee\n
\n
\nRanch Hand\n
\n
Posts: 1683
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
A DataSource points to a connection pool which on start up creates a specified number of physical database connections. I don't know JBoss, but there will be a way to configure the pool and to associate the DataSource with a particular pool.
\n

SCJP 1.4, SCWCD 1.3, SCBCD 1.3

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/109273/maven-inheritance-packaging", "domain": "coderanch.com", "file_source": "part-00830-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nmaven2 inheritance & packaging (Other Build Tools forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nmaven2 inheritance & packaging\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 42
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,

Hope someone can help. I am new to maven2 and am having some problems with inheritance and packaging.

I have a parent project and a number of child projects. The child projects have different packaging values - jar, ear, war etc.

The parent project has a plugin org.apache.maven.plugins.maven-antrun-plugin that calls the 'run' goal during the test phase when a certain parameter is passed in to the mvn command at the command line.

I want all child projects to be able to pass this parameter in to the mvn command and trigger the plugin during the test phase.

This is where the problems arise - I have a child project that should produce a jar file when built:

1. I do not specify a packaging value for parentProjetc(defaults to jar) and deploy it. I set the child packaging to jar. I install the parentProject but when I try to build the child project I get the error:

org.apache.maven.reactor.MavenExecutionException: Parent: parentProject:jar:1.0 of project: childProject has wrong packaging: jar. Must be 'pom'. for project childProject

2. I set the parentProject packaging to pom and deploy it. I set the childProject packaging to jar and build it. No errors this time, the project's unit tests are run but the plugin is not run during the test phase. It does not seem to be inheriting the plugin.

3. I set the parentProject packaging to pom and deploy it. I set the childProject packaging to pom and build it. No errors, the plugin is triggered but the childProject's unit tests are not run.

I'm not sure if I am doing something wrong or my whole approach is wrong.

I want to be have the plugin in the parentProject, the childProject to inherit the plugin, the childProject to run it's unit tests and the childProject to produce a jar (or an ear or a war etc.).

I can post pom.xml entries if required.

Thanks in advance for any suggestions.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/u/112342/Kevin-DesLauriers", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nAll about Kevin DesLauriers\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n
\n\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Kevin DesLauriers

\r\n
\r\n
\r\n
Ranch Hand
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n+ Follow\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nsince Nov 28, 2005\r\n
\r\n
\r\nMerit badge:\r\ngrant badges\r\n
\r\n
\r\n
\r\n
For More
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Cows and Likes
\r\n
\r\n
\r\n
\r\n
Cows
\r\n
\r\n
\r\n
Total received
\r\n
\r\n
\r\n
\r\n
\r\n
In last 30 days
\r\n
0
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Forums and Threads
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Recent posts by Kevin DesLauriers

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI will be working on this over the next couple of days. When I come up with a solution, I will let you know.\r
\r
Thanks.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI have done a few hours reading different tutorials. I was just not sure how to download the jars, property and log files into a particular directory and then place a shortcut in the Start Up. I want as little user interaction as possible. I was hoping to house the complete client application on the local machine. The properties file and the log file need to be accessed by the user on their local machine.\r
\r
I was under the impression that everything had to be located in the jar where the actual code is located. I want a single click to download and install the application on the client machine. How do I specify where the application is installed and how to install it? Do I have to use the JNLP API or is it just about creating a .jnlp file in my web-app and supplying a link to it via one of my jsps?\r
\r
The installed structure currently is:\r
\r
installation folder\r
    lib folder\r
       main client jar\r
       dependency jars (ie. log4j, axis2 etc)\r
    logs\r
       error.log\r
       info.log\r
    application.properties\r
    application.bat <- batch file that calls javaw with the main class, etc\r
\r
\r
If you could point me in the direction of a tutorial that does something like this I would appreciate it.\r
\r
Thanks\r
\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI am hoping that someone can help me with this one.\r
\r
I have a web-app that contains web services that a client application I created will make calls to. I want to create a link on one of the jsps that will allow particular users the ability to click the link and it will download and install the client application on the users local machine. The software contains a couple of properties file and a handful of libs (one of those containing the main function).\r
\r
I was thinking that this can be accomplished using JNLP. I want to place a shortcut for the application in the StartUp in the Menu.\r
\r
Thanks for any help you can supply!\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
15 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nThank you both for your help. That helps a lot.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n
\r\nTomcat\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nSo, I am unsure which forum to place this question because I guess it could go in quite a few. But I chose here.

I am using Tomcat that comes with eclipse 3.3.1 and I am using the myeclipse plugin on a x86_64 linux machine.

My problem is as follows:

I am writing a web app that users servlets, pojos and JSPs currently. Usig form based authentication users stored in tomcat-users.xml can login. This works perfectly fine.

But of course, I want new users to be able to join so I have a register link on the sign in page that stores user data in an object. I will be using a series of SQL tables to store user data in but I want the user who just registered to be able become users as long as their data is okay on the register form.

Is there a way to update tomcat-users.xml while the app is running and without interaction from me? Or is there another way I should be doing it. I know that I should not be storing passwords in the sql table.

Thank you\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n
\r\nTomcat\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nMuch appreciated! I will make the change in my design.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n
\r\nStruts\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nIt is not that I want to change the URL in the address bar; I would just rather it reflect the page it is displaying instead of a fake .do name that is used to send a request to a particular action class.

Ex.

A user is on the /jsp/home.jsp page and has the option of refreshing data in the database by clicking a button or link. When this is done I want the user to be forwarded to the same page /jsp/home.jsp and have the URL in the address bar reflect that they are at /jsp/home.jsp not /stats.do.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n
\r\nStruts\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nCurrently the page is static. I am using a link on the page to update a database and then return back to the same page.

The page is jsp/home.jsp and it has a link to update.do that is mapped to a class in the struts config. When it returns success it is supposed to forward back to the same page \"home.jsp\" (for now).

It words except that when I return to the home.jsp page it shows update.do and I would much rather it show home.jsp in the address bar.

Thanks\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n
\r\nStruts\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI am fairly new to struts (using 1.2) and was hoping that someone could help me with my question.

I am configuring the struts-config.xml file to forward to a particular page and it does with the path's original url as expected with a forward.

My question is, how do I place the forwarded URL in the address bar instead of the .do resource?\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n
\r\nStruts\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nOkay, for EJB 2.0 HF (pg 279) says that the you must return the remote component interface for findByPrimaryKey() in the Remote home interface.

Whizlabs, and the spec says that any finder methods must return the entity bean's primary key or a collection of primary keys. I know that that for CMP beans you don't implement the finders in your bean class but I still want to confirm that they have different return types in the home and the bean class for finder methods.

Thanks.
[ October 28, 2007: Message edited by: Kevin DesLauriers ]
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\ngetPrimarykey() returns Object in EJB 2.0 so it makes it kind of hard to use a primitive as a primary key. I suggest that you wrap int using java.lang.Integer
[ October 07, 2007: Message edited by: Kevin DesLauriers ]
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nSomewhere between ejbActivate and ejbLoad the container associates the bean with a client. The same thing occurs after ejbStore() and before ejbPAssivate(). The entity bean is too general during activate and passivate to know about the client that is calling the business method. It has not been associated with a client or transaction.

I hope this helps.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nIs this for 1.3? Or is it downward compatible? I did see this link on my search. I just want to be able to get everything in the shortest amount of time. I apologise if I am coming off as someone that wants someone else to do their work for them. Trust me, I am the farthest from that kind of person as possible.

Thanks,

Kevin
[ April 13, 2007: Message edited by: Kevin DesLauriers ]
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nMy apologies for asking this question instead of spending more time looking for the download myself.

I was hoping that someone could give me a link to the EJB 2.0 compliant server HF EJB references on page xxiv of their text. I have tried looking for it and may have found it but my Internet is very expensive (100 euros for 12 hours) to get the wrong file for download.

Thank you so much.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI casually read HF over a year. Once I decided that I was going to write the exam my notes took about a month (Charles Lyons Text) and then another month of reviewing my notes and writing practise exams. I would say I spent 2-3 hours per day. I had no previous servlet and jsp experience so everything was new to me.

I hope this helps.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
17 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n
\n\n\n\n" }, { "url": "https://coderanch.com/t/376804/java/Java-performance-issues", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJava/C++ performance issues (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJava/C++ performance issues\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nLeandro Melo\n
\n
\nRanch Hand\n
\n
Posts: 401
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi.
One of the biggest argument c++ developers have against java is about performance.
Does anyone know some real and serious study (benchmarking or something like) about this?
Thanks.
\n

Leandro Melo\r
SCJP 1.4, SCWCD 1.4

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJoe Ess\n
\n
\nBartender\n\n
\n
Posts: 9626
\n
\n
\n16\n\n
\n
\n\n
\n\"Mac\n\"Linux\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Already under discussion in the advanced forum.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Wuest\n
\n
\nRanch Hand\n
\n
Posts: 88
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I'll chime in here, since that one seems more about VB than C++ and your question seems more sincere.

There have been articles with tests supposedly showing Java to be faster than C++. If you search slashdot.org, there was enlightened discussion there about the merits (or lack thereof) of these tests.

At my last contract, we wrote programs that had to handle data streams from markets such as the Nasdaq, NYSE, and smaller ones all over the world (did you know Beijing has an exchange?).

Because of the safety of the code and the ease of writing good code, we wrote almost all of our programs in Java. But the faster feeds (like Nasdaq) had to be coded in C or C++.

Moreover, there was discussion of converting more feeds to C++ because, with a zillion different feeds all running simultaneously, lowering overally cpu and memory demands had a bottom-line impact because it allowed code to run on less expensive hardware.

This is my opinion: all other things being equal, a well-written program coded in C++ is probably going to be more cpu and memory effecient than the same program in Java.

This is also my opinion: it is easier to code a well-written program in Java than in C++. There is considerable snobbery among C++ developers who believe that they are better than they really are. I've worked with people like this. During the interview, where they're grilling you and using terms like \"best of the best\" to describe their group, they act all high and mighty. They want to know if you can tell them about virtual destructors (unneeded in Java, btw). But once you're in, you get to find the memory leaks and worse in their poorly designed C++ code so the programs stay running for months on end without growing (due to leaks) or crashing (due to some poor pointer arithmetic).

Mark
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nM Beck\n
\n
\nRanch Hand\n
\n
Posts: 323
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Mark Wuest:
There have been articles with tests supposedly showing Java to be faster than C++. If you search slashdot.org, there was enlightened discussion there about the merits (or lack thereof) of these tests.

\n\t\t


enlightened discussion? on slashdot? surely you jest, mr. Wuest!

but since you speak from experience, i'd like to ask a few questions... what part of the Java environment was slowing down the applications you mentioned? was this an issue of JVM efficiency, class library implementation, business-logic algorithm efficiency, or something else? could any parts of it have been resolved by moving the resource-intensive parts to a C or C++ library accessed through JNI, or would that not have made enough of a difference, do you think?
[ May 26, 2005: Message edited by: M Beck ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nErnest Friedman-Hill\n
\n
\nauthor and iconoclast\n\n
\n
Posts: 24207
\n
\n
\n46\n\n
\n
\n\n
\n\"Mac\n\"Eclipse\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Mark says:
\n\t\t\t


This is my opinion: all other things being equal, a well-written program coded in C++ is probably going to be more cpu and memory effecient than the same program in Java.

\n\t\t


I don't think there's any doubt that, in the limit, C/C++ programs will always win on code size. If you don't use virtual functions, and don't use dynamic memory allocation, C++ objects are only as big as their data members, no larger -- whereas Java objects are always larger.

But as far as performance goes, first of all, very few programs are CPU bound. Many are I/O bound, and many spend their time waiting for a user to click something. Some traditional Java I/O operations can indeed be slow. You can use java.nio these days to fix these problems as needed. For the most part, these kinds of programs are indistinguishable, performance wise, from native code.

Now, some programs are CPU bound. Whether you can rewrite a given program faster as native code depends on a number of factors. Array operations are intrinsically slower in Java, due to bounds checking. And if you really write native code with no virtual methods and no dynamic memory allocation, then you can remove a level of indirection that again, can give the edge to C++. {*}

But the final results depend on the implementation. What I said in the above paragraph holds only if the C++ compiler is as good at optimizing as HotSpot is. The truth is that the most popular Windows compiler (VC++) is simply atrocious. Benchmark after benchmark have shown that HotSpot beats VC++ compiled code every time. GCC isn't much better. There are heavy-duty commercial compilers that do far better, but they're not as widely used.

My bottom line is that nothing beats measurement. Don't believe anybody who posts here, including me. If your Java code is too slow, and you know there's no way to write it faster in Java, then go ahead and try to do better in native code. You may find out that you can -- but you may find out that you can't.

{*} Edit: I said \"Java\" here by accident!
[ May 26, 2005: Message edited by: Ernest Friedman-Hill ]
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nGregg Bolinger\n
\n
\nRanch Hand\n
\n
Posts: 15304
\n
\n
\n6\n\n
\n
\n\n
\n\"Mac\n\"IntelliJ\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Ernest Friedman-Hill:
My bottom line is that nothing beats measurement. Don't believe anybody who posts here, including me. If your Java code is too slow, and you know there's no way to write it faster in Java, then go ahead and try to do better in native code. You may find out that you can -- but you may find out that you can't.

\n\t\t


Very well said. I wish this could be the final word anyone ever says on the topic. Sadly, I know it won't be.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Wuest\n
\n
\nRanch Hand\n
\n
Posts: 88
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Well, what we did was to take a Java program that was handling a data feed that was getting faster and faster and re-wrote it, pretty much as-is, in C++. Yes, some things were done differently (i.e.: several timers have to be set which are implemented easily with signals in C++).

The data feed is multicast so, if you miss something, it's gone forever.

We used gcc, which is actually a quite good optimizing compiler. I was surprised to see a comment from someone who is under a different impression.

cpu and ram usage dropped 75%, IIRC.

I actually thought about doing a hybrid with jni (for some reason, I think jni is one of the coolest things about java, cooler than ejb's even ). But that adds a level of complexity where the result is harder to maintain than something written in Plain C++.

It has been awhile since I spoke with anyone there, so I don't know if they are still considering changing it all to C++. Most of these feeds (there are a couple of hundred different markets worldwide and, as an example, the Minneapolis Grain Exchange gets just a few small updates every hour) are so slow that there's no incentive to change them. I.e.: while they are using memory, most of it is swapped out and unused and they aren't burning much cpu. OTOH, the ones that start picking up speed seem to grow quickly. Before changing the one I referred to above, we had it running on new, fast, 4-cpu Dell servers and it clearly was going to be in trouble if they didn't either split the feed between two boxes and load balance externally or find some other way. Everyone was relieved to see the improvements in the C++ version.

Mark
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nGregg Bolinger\n
\n
\nRanch Hand\n
\n
Posts: 15304
\n
\n
\n6\n\n
\n
\n\n
\n\"Mac\n\"IntelliJ\n\"Chrome\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Mark,

If you think JNI and EJB's are the cool aspects of Java, I'd question much of anything you say.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Wuest\n
\n
\nRanch Hand\n
\n
Posts: 88
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Gregg Bolinger:
If you think JNI and EJB's are the cool aspects of Java, I'd question much of anything you say.

\n\t\t


My younger brother ports Linux kernels to various architectures and writes Linux device drivers. When I \"Fell In Love\" with Java, well, in his mind I had been seduced by the Dark Side. I proved I could still do Anything I Want with JNI and then I took a standalone C program he had and made a servlet out of it and I was OK again.



These days, I've been writing little helper session beans for my new co-workers and they act like I'd hung the moon, so I decided EJB's must be cool if they make everyone like me so much!

Mark
[ May 26, 2005: Message edited by: Mark Wuest ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nSteven Bell\n
\n
\nRanch Hand\n
\n
Posts: 1071
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You have been seduced by the Dark Side! EJB's are pure evil.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nLeandro Melo\n
\n
\nRanch Hand\n
\n
Posts: 401
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Woohh.
I'm happy for your replies. It's really usefull for me, thanks.
BTW, I'd say that entity EJBs are evil (not session EJBs).
\n

Leandro Melo\r
SCJP 1.4, SCWCD 1.4

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
That new kid is a freak. Show him this tiny ad:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/215056/databases/Hibernate-Smart-Handle-Concrete-Parent", "domain": "coderanch.com", "file_source": "part-00626-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nIs Hibernate Smart Enough to Handle Concrete Parent Classes? (Object Relational Mapping forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nIs Hibernate Smart Enough to Handle Concrete Parent Classes?\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nOgi K\n
\n
\nGreenhorn\n
\n
Posts: 10
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
We have a table-per-subclass mapping strategy.

Client --> CLIENT_TABLE
|
-- ClientTypeA --> CLIENT_A_TABLE ( joined on CLIENT_ID )
-- ClientTypeB --> CLIENT_B_TABLE ( joined on CLIENT_ID )
-- ClientTypeC --> CLIENT_C_TABLE ( joined on CLIENT_ID )

However, our Client class is NOT abstract because when we first insert the Client into the DB, we do not know which type of client it is. Later on, the user inputs more information which determines which type it is. At this point, we construct a ClientTypeX object from the Client object and want to update it.
Not too surprisingly, we get a StaleObjectStateException...the desired behavior is for Hibernate to be smart enough to update the Client table and insert into the joined-subclass table for the given Client type. Can Hibernate be configured to handle this??

Thanks.
[ September 22, 2004: Message edited by: Ogi Kavazovic ]
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Yes, my master! Here is the tiny ad you asked for:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/305919/JDBC/databases/data-xml-java", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nDoubt regarding taking data from xml to java (JDBC and Relational Databases forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nDoubt regarding taking data from xml to java\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 21
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hai friends,


I have a doubt regarding how to take data from xml file just like taking data from
Access Database or Oracle database.
Kindly send to me this code because this is given to me in the evaluation of my job period.

And also how to dispay data in XML format.

Although this site is not ment for sending codes. but this is very important for me.

Please send me the response .

Regards,
ChakraPani.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 10336
\n
\n
\n\n
\n\"Hibernate\"\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Not a JDBC question. You need to parse your XML file using one of the XML parsers that come with the SDK. See the XML examples in the Sun documentation.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/560863/JSP/java/Displaying-object-properties-fields-JSP", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nDisplaying an object's properties/fields on JSP using c:foreach (JSP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nDisplaying an object's properties/fields on JSP using c:foreach\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi \r
\r
\"callFlowDetails.callFlowMasterDataList\" is a list of objects which I am returning from my controller. List is populated correctly in controller and set back in model attribute used in jsp form, but I am not able to view the list data on jsp. \r
I am using following code in jsp, Please advise what I might be doing wrong below:\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 1845
\n
\n
\n10\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
So what happens when you run this page?\r
Error message? Any messages in the log? Stack traces?\r
Blank page?\r
Page runs but doesn't display what you want? What does it display, and what is it doing wrong?\r
\r
What do you see when you view source on the page?\r
If you do a ${callFlowDetails.callFlowMasterDataList} to print out the list?\r
Have you declared the core tag library on your page?\r
\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 247
\n
\n
\n\n
\n\"Eclipse\n\"Chrome\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Please make sure if \"model\" has been mapped to \"callFlowDetails\" in request, session (or) application scope attributes...\r
\r
If its set in request scope, you have to do \"request forwarding\" to the JSP page where you use this iteration logic of list in model instance.
\n

SCJP 6 [SCJP - Old is Gold]

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJaskiran Kaur\n
\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Everything was and is working right :). Just the silliest mistake in JSP, I had commented something before the row displaying data using<!-- -->. Once I removed the commented part, it started working. Weird JSP!\r
\r
Thanks guys!
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"wood\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/642023/java/SOLVED-Entity-relations", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\n[SOLVED] Entity relations (EJB and other Jakarta /Java EE Technologies forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\n[SOLVED] Entity relations\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
I have the following problem:\r
I need to make a relation (OneToMany) between a entity on my server and a entity in my library (ManyToOne).\r
\r
\r
My program consists of 3 main components:\r
- a client (who uses session beans to query the server)\r
- a server (which contains entity's)\r
- a lib which is shared between the client and the server. (which also contains entity's)\r
\r
Here is the thing I want to do:\r
Class on my Server:\r
\r
\r
\r
Class on my Library:\r
\r
\r
It's not an option to move ClassOnServer to my lib because this would ruin the whole architecture.\r
Do you guys have any suggestions on how to solve this?\r
\r
I solved it! thanks anyway.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 3648
\n
\n
\n16\n\n
\n
\n\n
\n\"Android\"\n\"Mac\n\"Firefox\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 10 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
So how did you solve it?\r
\r
Please share so other ranchers can reference given a similar problem.
\n

K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/489919/java/daily-horoscope-code-neede", "domain": "coderanch.com", "file_source": "part-00559-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\ndaily horoscope code neede (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\ndaily horoscope code neede\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nsujendra sugur\n
\n
\nGreenhorn\n
\n
Posts: 12
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hi to everybody,\r
\r
\r
i need to implement or show horoscopes to users when they are logged in based on thier date of birth.\r
\r
can any body suggest me what to use and how to use \r
\r
please help needed\r
\r
thankyou
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nOleg Tikhonov\n
\n
\nRanch Hand\n
\n
Posts: 55
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello,\r
You can use the following:\r
1. Web horoscope services, I don't know any but you can look at here.\r
2. RSS/Atom - subscribe to the RSS channel(s) and parse by your needs\r
\r
When you create user's account just put additional info like date of birth in DB/users.properties or any other place and after a user is logged in, take this info and query. Show retrieved data using some \"widgets\" (Flex, JSF, JavaFX, DoJo, RAP ...).\r
\r
Hope it helps.\r
Cheers,\r
Oleg.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nDavid Newton\n
\n
\nAuthor\n
\n
Posts: 12617
\n
\n
\n\n
\n\"IntelliJ\n\"Ruby\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Using which fictional astrological system? European? Chinese? Vedic? ...?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nDarryl Burke\n
\n
\nBartender\n\n
\n
Posts: 5167
\n
\n
\n11\n\n
\n
\n\n
\n\"Netbeans\n\"Opera\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n\"Likes\"/ 1\n\n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n

luck, db\r
There are no new questions, but there may be new answers.\r

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nsalvin francis\n
\n
\nBartender\n\n
\n
Posts: 2911
\n
\n
\n150\n\n
\n
\n\n
\n
\n\n
\n\"Google\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\n\t\t\t\tDavid Newton wrote:Using which fictional astrological system? European? Chinese? Vedic? ...?

\n\t\t
\r
\r
wonder why people believe in astrology in the first place, oh well, in a way it does help some programmers earn our living \r
\r
\r
Now back to the question on hand ....\r
\r
sujendra sugur, you haven't mentioned your domain,\r
Is it a Desktop or a Web based application ?\r
\r
Oleg Tikhonov's ideas are good.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\nWith a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/332733/java/unicode-HTMLEditorKit", "domain": "coderanch.com", "file_source": "part-00626-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nunicode problem in HTMLEditorKit (Swing / AWT / SWT forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nunicode problem in HTMLEditorKit\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 74
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
My program use StringWriter to get the unicode in a HTMLEditorKit by this code:
Writer textOut = new StringWriter();
htmlEditorkit.write(str, doc, start, end);
The string I got from this method is in the format of decimal unicode (e.g. 雅). Actually, I do not mind that it is in this format. However, I need to save this string into a file with the format of UTF-8. I have tried to use the following codes:
FileOutputStream fos = new FileOutputStream(new File(fileName));
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos, \"UTF-8\"));
out.write(str);
...
However, the content in the file saved is still in the format of decimal unicode.
How can I get the file with the content in the UTF-8? Thanks!
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Hold that thought. Tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/534998/ol/language-bring-table", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nWhat does R-language bring to the table? (Other Languages forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nWhat does R-language bring to the table?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nclojure forum advocate\n\n
\n
Posts: 3479
\n
\n
\n\n
\n\"Mac\"\n\"Objective\n\"Clojure\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
Congrats for the new book.\r
I read that R-Language is based on Scheme programming language and since I already know Clojure programming language and tons of JVM libraries are under my hands, why I would use R-Language?\r
To generalize more, if we have heavy supported languages like Java and C#, why to use R-language?\r
Thank you.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor\n\n
\n
Posts: 5856
\n
\n
\n7\n\n
\n
\n\n
\n\"Android\"\n\"Eclipse\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\"R\" is great for processing and analyzing large amounts of numeric data, providing hundreds of different statistical functions and graphs. Think Excel on steroids. Also check out some of the comments in the commons-math project - many of the functions provided there are based on \"R\" functions.\r
\r
I use \"R\" to analyze gc data - one script will generate dozens of data points and several graphs, all in a few seconds.
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 6
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Some times I need to generate large number of graphs. It is easy to make it with R because it's programming capacity. R also has tons of libraries for different analysis. For example Bioconductor helps to interpret and visualize biological data.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor\n
\n
Posts: 33
\n
\n
\n5\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi John,\r
\r
With so many new languages, limited time, and the steep learning curves often involved, this is a very valid question. In the scheme (no pun intended) of things, R has been around for long time, but with its increasing popularity (Forbes called it a name to know in 2011), more people are hearing about it.\r
\r
I would make a distinction between data processing and manipulation, and data analysis. R excels at the later - summarizing data, identifying patterns and trends, predicting outcomes (along with estimates of the accuracy of those predictions), and visualizing the results.\r
\r
Here are a few examples from my everyday work world (off the top of my head).\r
\r
Senario 1\r
I often need to identify and understand the missing data contained in a database. This includes which fields (variables) have no missing data, which have moderate amounts of missing data, and which have large amounts of missing data. I also want to see any patterns that might exist in the missing data. For example: young white males are reluctant to answer questions about salary; people who skip questions about gender also do not answer questions about marital status and age; a large percentage of people give up after filling out the 3rd screen of a on-line form. Functions in the VIM (visualization of missing data) package allow me to create a visual map of the missing data in a database, highlighting any patterns present, with 2 or 3 lines of code.\r
\r
Senario 2\r
I often want to access an external database, run a SQL select statement, and generate a report on the results that tell me:\r
(1) for each numeric variable, what are number of valid and invalid values, minimum, maximum, mean, standard deviation, and median\r
(2) for each categorical variable, what are the number and percentage of observations present for each unique level of the categorical variable\r
(3) what are the ten most unusal observations (cases with unique and/or unlikely combinations of values)\r
(4) for a specified subset of variables, what is the percentage of observations above a specified set of threshold values\r
\r
I want the report to be succinct and I may (or may not) want the results broken down by the levels of an additional categorical variable (e.g., geographic location)\r
\r
I can write a short script (usually a page or less) that will do all this, and save it as a function in my \"library\". In the future, I can generate these reports with a one line invocation:\r
summarize(database, sql_query, optional_by_variable)\r
\r
Senario 3\r
I manage a subscription based website for my organization. When I analyze the log files, I would like to generate a single graph that \r
(1) lets me see usage over time\r
(2) identifies usage patterns by gender and age (separate trend lines with indications of variability around the trend lines)\r
(3) contrasts usage by country (separate graphs by country, all on a single page, arranged to faciliate comparisons)\r
\r
Additionally, I want the graph to be compelling, attractive, and (given the level of detail), relatively uncluttered.\r
\r
Using the qplot (quick plot) function in the ggplot2 (grammar of graphics, 2) package, I can create this graph with a single line of code.\r
\r
Conclusion\r
I am a strong believer in using the right tool for the right job. I once created an entire office management system entirely in csh, but I wouldn't do it again. R is an amazing tool for data analysis. There are better tools for data manipulation and processing.\r
\r
My personal goal is to find tools that make my life easier, are fun to use, and expand my horizons with regard to what is possible. Working with R has been a rewarding, and frankly, humbling experience.\r
\r
I hope that this relatively long post helps.\r
\r
Rob
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Nothing? Or something? Like this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/273007/java/java/experience-Jsyn", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nAnyone have experience with Jsyn? (Java API forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nAnyone have experience with Jsyn?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 241
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Anyone know anything about jsyn? Or specificaly, incorperating realtime midi control?

Thank you for atleast reading this,
D.P.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\nDid you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters?\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/705519/careers/BAE-Systems-Senior-Engineer-Common", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nBAE Systems currently is looking for a Senior Engineer – Common Infrastructure Test Equipment (UK) (Jobs Offered forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nBAE Systems currently is looking for a Senior Engineer – Common Infrastructure Test Equipment (UK)\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nOliver Farrow\n
\n
\nRanch Hand\n
\n
Posts: 127
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 6 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Would you like the chance to play a crucial role in supporting the development of our cutting-edge submarine programmes? We are looking for a Senior Engineer with IT skills and systems engineering knowledge to join us at our site in Ash Vale, Surrey.\r
\r
As a Senior Engineer, you will be breaking down requirements, designing documented solutions, and developing the product ready for test activities. This is a long term, large scale engineering project, offering you the chance to work on novel equipment and provide solutions to unique challenges, such as those posed in a submarine environment.\r
\r
In this role you will be conducting systems engineering activities through the engineering life cycle. You’ll be responding to customer requirements, architecting the solution, and working closely with subcontractors to provide a design solution that meets the needs of a submarines combat system.\r
\r
\r
Your main responsibilities as Senior Engineer - Test Equipment will involve:\r
\r
Producing system specifications derived from technical requirements, decomposing these into system and subsystem design descriptions, and software/hardware specifications\r
\r
Developing and testing software components on hardware modules ensuring that both functional and non‑functional requirements have been met prior to submission into formal test\r
\r
Preparing and presenting design review material at product phase reviews to allow progression through the engineering lifecycle\r
\r
Investigating and addressing technical issues by modifying existing designs or correcting defects, accurately tracking and maintaining all change records\r
\r
Ensuring traceability of requirements to their parent system-level requirements and aiding the test team to produce sufficient quality control evidence to allow the production of the system’s certificate of design\r
\r
Technical input to the project management team to produce robust cost estimates, technical risk assessment and reduction\r
\r
\r
While not limited to the below, ideally we would like you to have some of the following skills and experience:\r
\r
Experience of working within an engineering life cycle framework\r
\r
Experience in producing system specifications from technical requirements and implementing designs from specifications\r
\r
Programming knowledge (eg C++, C#) on Windows/Linux\r
\r
Programming for equipment and device control\r
\r
\r
Experience in the following would also be advantageous.\r
\r
Experience of scripting (e.g. PowerShell, Bash) and/ or experience with UML modelling\r
\r
Windows 10 configuration and lockdown\r
\r
Familiarisation with virtualisation, networking and storage\r
\r
\r
What we are looking for in you:\r
\r
We are looking for someone with an interest in the industry, and looking to work on large scale, long term projects. We want you to be a key part of an incredibly complex engineering project, within which you’ll have an innovative approach to problem solving, and will be keen to find novel solutions. You should also be a strong communicator, able to present your ideas and collaborate effectively.\r
\r
\r
Further information: https://express.candarine.com/campaign/url/forward/d97cb96ac47d\r
\r
\r
\r
\r
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/32131/careers/contract-perm-job", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nHow anyone ever done a contract to perm job? (Jobs Discussion forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nHow anyone ever done a contract to perm job?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 201
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
meaning they hire you as a contractor (no medical benefits) then say you work for them for 6 months before you are hired as permanent. I'm wondering what is the likelyhood that they hire me full time, the recruiter said they only don't extend an offer for full time if there are performance issues, but she could just be saying that.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 69
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You never know. Sometimes it's one of those \"trial\" scenarios where after a few months they are pretty sure they want you and you know you'll be hired on. Other times it's just a ploy not to hire any FTE. You stay as a contractor, they like you, they keep extending your contract, but never hire you as a FTE because maybe the budget isn't there or maybe the company doesn't want FTE.

I was on a 4 month contract one time that got extended for 6 more months, then another 6 months, and so on. Everything was going great but the fact was a contractor was looked at differently in the budget compared to a FTE. So they could keep me on as a contractor but they couldn't bring me on as a FTE. Semantics, politics, and money is what it is all about.

Sometimes they will hire you after your contract is up, but sometimes that's just not feasible and it's used because some people don't like contracting.

Therefore if it's a possible Contract to Hire after six months more people might be interested and in reality, maybe they do want to hire you but can't or maybe they wanted to but things changed.

Like I said, many times contractors aren't on the same budget as FTE and certain money issues can be avoided. Instead of counting as a Human Resource head count a contractor might be a services headcount or something like that.

It all really depends. It might be true, it might not, things might change, they might not. The fact is, if it's a contract, take it at that. If you do get hired in 6 months, great. But don't assume if you do great that you'll be hired as a FTE. Sometimes it's not about what you do or who likes you.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/614066/Javarevisited-Blogpost-Object-Oriented-Design", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJavarevisited Blogpost : 10 Object Oriented Design Principles for Java Programmers (blogs forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJavarevisited Blogpost : 10 Object Oriented Design Principles for Java Programmers\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 300
\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n\"Likes\"/ 1\n\n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Guys,\r
\r
Thought to submit one of my post for this awesome contest. This post is about object oriented design principles, including SOLID principles given by Uncle bob. \r
Let me know how do you find it, here is the link http://javarevisited.blogspot.de/2012/03/10-object-oriented-design-principles.html\r
\r
Thanks\r
Javin
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Don't touch me. And dont' touch this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/177319/certification/isUserInRole", "domain": "coderanch.com", "file_source": "part-00830-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nisUserInRole() (OCPJWCD forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nisUserInRole()\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 16
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
On broader level isUserInRole() is related to authorization or authentication?I think it is authorization as it returns boolean depending whether user is in specified role or not.But in specifications its written that even if user is not authenticated it will return false ( which is logical).

So is this concept related to authentication or authorization?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRancher\n
\n
Posts: 43081
\n
\n
\n77\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Authorization. Authentication concerns itself with verifying that the user is who he says he is. Authorization is about determining which rights a particular user has AFTER he is authenticated (e.g., which roles he's in).
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
straws are for suckers. tiny ads are for attractive people.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/476692/java/FTP-file-copy-timestamp", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nFTP file copy problem with timestamp? (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nFTP file copy problem with timestamp?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 26
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
Can any one tell me how to set file lastModifiedTime after copying files through FTP. I am using commons-net-1.4.1.jar to copy files from local system to server.\r
Eg: local file name “test.doc” (Today, December 29, 2009, 5:09:33 PM) when I moving this file to server, the files are moved successfully but the time is updated as server current time. But I need local file time like (Today, December 29, 2009, 5:09:33 PM). Below code I am using for uploading files to server. \r
\r
\r
\r
\r
Can any one please help me to overcome this issue? \r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 22821
\n
\n
\n132\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Chrome\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I don't think the FTP protocol supports this. Any FTP program I've used so far simply sets the last modified date as \"now\".
\n

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6\r
How To Ask Questions How To Answer Questions

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nlowercase baba\n\n
\n
Posts: 13091
\n
\n
\n67\n\n
\n
\n\n
\n\"Chrome\"\n\"Java\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
you might be able to tar them up, ftp the tarball, then untar them on the destination machine. I think that would preserve the timestamps.
\n

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nprem kanna\n
\n
\nGreenhorn\n
\n
Posts: 26
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hi,\r
\r
i didnt get any answer for my problem. can any one please give some Suggestion to solve my problem.\r
\r
Thanks in advance.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nfred rosenberger\n
\n
\nlowercase baba\n\n
\n
Posts: 13091
\n
\n
\n67\n\n
\n
\n\n
\n\"Chrome\"\n\"Java\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
did you try what I suggested?
\n

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/336883/java/Scroll-Pane-visible-Frame-window", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nScroll Pane not visible on Frame window (Swing / AWT / SWT forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nScroll Pane not visible on Frame window\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 185
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have a class extending from JFrame.
I created a JPanel and created a JscrollPane like foll..

panelInput=new JPanel();
scrollPane = new JScrollPane(panelInput);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
getContentPane().add(scrollPane);
The scrollpane is not visible when i execute the program..what may be happened??
any help??
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 2120
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Welcome to the Ranch visu.
No problem at all. Call setSize and setVisible on the parent container.
[ November 23, 2003: Message edited by: Jose Botella ]
\n

SCJP2. Please Indent your code using UBB Code

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Squanch that. And squanch this tiny ad:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/692168/java/Kafka-certification", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nKafka certification (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nKafka certification\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 145
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 6 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Is there any org that gives some kind of certification on Kafka?\r
Not that I am going to do it right away! :-)\r
Just curious to know.\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 2713
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 6 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Confluent (most prominent Kafka vendor) has a certification: https://www.confluent.io/certification
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 7645
\n
\n
\n178\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 6 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Just read a few of his books (or all of them, there aren't that many), and you'll be OK.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nSriram Sharma\n
\n
\nRanch Hand\n
\n
Posts: 145
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 6 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\n\t\t\t\tChris Mathews wrote:Confluent (most prominent Kafka vendor) has a certification: https://www.confluent.io/certification

\n\t\t
\r
Thanks Chris!\r
Yeah, I looked into confluent, but that does not give any idea about any existing certifications stuffs.\r
\r
Tim,\r
I can definitely read few books to master up. I do understand that.\r
But just to have a certification on the resume definitely adds value to my profile is what I felt and hence posted that question.\r
Infact, I gain most of the know-hows either while working or while trying to prepare for some certification.\r
\r
Thanks!
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nTim Moores\n
\n
\nBartender\n\n
\n
Posts: 7645
\n
\n
\n178\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 6 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\n\t\t\t\tSriram Sharma wrote:\r
Tim,\r
I can definitely read few books to master up. I do understand that.\r

\n\t\t
\r
I'm afraid you missed the tongue-in-cheekiness of my response. By \"his books\" I was referring to Franz Kafka, not any books about the software. Sorry for misleading you :-)
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/615041/build-tools/variable-calculated", "domain": "coderanch.com", "file_source": "part-00830-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nWhere is the variable calculated? (Other Build Tools forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nWhere is the variable calculated?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 87
\n
\n
\n\n
\n\"Mac\"\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
My EAR project has a .pom file which specifies a dependency version as a variable (which I've now commented and replaced with an absolute value).\r
\r
\r
When I use the variable, I get a build of version 4.0.0 whereas when I specify 4.0.1-SNAPSHOT I get the build from my .m2 repo which has the extra resources I've built it with.\r
\r
Thing is, I've checked to see where the version for my-eng-ejb is being evaluated / retrieved from in:\r
The parent pom\r
EarContent/META-INF/application.xml\r
org.eclipse.wst.common.component\r
\r
And they all specify 4.0.1-SNAPSHOT. \r
\r
Where is 4.0.0 coming from then?\r
\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nMarshal\n\n
\n
Posts: 5822
\n
\n
\n375\n\n
\n
\n\n
\n
\n\n
\n\"IntelliJ\n\"Python\"\n\"TypeScript\"\n\"Java\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Your version declaration of ${y.version} will refer to a property defined in your pom.xml with that name\r
\r
\n

Tim Driven Development | Test until the fear goes away

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nIarla O'Riada\n
\n
\nRanch Hand\n
\n
Posts: 87
\n
\n
\n\n
\n\"Mac\"\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
That's correct Tim Cooke, and it's defined as 4.0.1-SNAPSHOT there too. But the artifact that is built yields 4.0.0.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nauthor\n\n
\n
Posts: 5856
\n
\n
\n7\n\n
\n
\n\n
\n\"Android\"\n\"Eclipse\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Run this from a command line in you basedir and post the result:\r
\r
mvn dependency:tree\r
\r
Most likely some other dependency is also referencing the same dependency and Maven is choosing the non-snapshot version over the snapshot version.\r
\r
The other thing you can do is run mvn with the -v option, redirect the output to a file and examine it looking for reference to that dependency to see how Maven is going about choosing a version to use.\r
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nIarla O'Riada\n
\n
\nRanch Hand\n
\n
Posts: 87
\n
\n
\n\n
\n\"Mac\"\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thank you Peter Johnson. I tried to attach the output of \"mvn dependency:tree\", but the forum won't allow it (.txt or .zip). I'm reluctant to put project info from my (newly joined) company online where it can be easily indexed by search engines. I didn't realize this was an issue here and might make it difficult for me to use JavaRanch for more project-specific stuff, but the info you gave me will help me track down the issue I hope. I will rebuild with -v also and see what comes from that when I build next.\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nPeter Johnson\n
\n
\nauthor\n\n
\n
Posts: 5856
\n
\n
\n7\n\n
\n
\n\n
\n\"Android\"\n\"Eclipse\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I understand the necessity for keeping proprietary company information confidential. You can usually work around that in two ways:\r
a) come up with a small example that exhibits the same problem but doesn't include any proprietary information\r
b) obfuscate anything that could be proprietary (such as package names and JAR files name), but make sure that your renaming is consistent\r
\r
But even with those restrictions, you can often get help here - we can give you hints on what to try and look at (such as the -v suggestion). Often that can be helpful.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
I don't always make ads but when I do they're tiny
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/36660/typical-programmer-personality", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\ntypical programmer's personality (Meaningless Drivel forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\ntypical programmer's personality\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nMapraputa Is\n
\n
\nLeverager of our synergies\n\n
\n
Posts: 10065
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
There is such an important index as \"hospital's average temperature\", so why don't we calculate \"typical programmer's personality\"?
Here is a test (smells like Jung, but Ok...)
My profile: INFP (programming is not recommended )
So by now a world's typical programmer is an intuitively feeling bugs introvert :roll:
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nThomas Paul\n
\n
\nmister krabs\n
\n
Posts: 13974
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Computer programmer was the first on the list for me!
\n

Associate Instructor - Hofstra University\r
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMichael Ernest\n
\n
\nHigh Plains Drifter\n\n
\n
Posts: 7289
\n
\n
\n\n
\n\"Netbeans\n\"VI\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
An explanation of Map's acronym:
I - Introvert
N - Nitpicker
F - Feeler
P - Perceiver
These are the general axes of the Briggs-Meyers Personality Test. Each one of these has an opposite category intended to classify individuals along polar lines. It's always struck me as a \"Men are from Mars, Women are from Venus\" way of thinking (i.e., crude but not wholly inaccurate).
And of course, this is self-assessment; you can be what you want to be on such a test, in spite of who you are! Who on JavaRanch would think Map is an introvert?
[ January 04, 2002: Message edited by: Michael Ernest ]
\n

Make visible what, without you, might perhaps never have been seen.\r
- Robert Bresson

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJenn Green\n
\n
\nGreenhorn\n
\n
Posts: 28
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Turns out I'm:
Intravert
Sensor
Thinker
Judger
And Chief Information Officer was first on my list of compatible careers!
JG
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJim Hall\n
\n
\nRanch Hand\n
\n
Posts: 162
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Definitely,
INTP
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nCindy Glass\n
\n
\n\"The Hood\"\n\n
\n
Posts: 8521
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
ISTJ - I also get to be a Chief Information Officer .

We actually to about a 30 question quiz at work once to split us up into these group - some sort of self awareness thing :roll: - but it was fun. And interesting to see who fell where.
[ January 04, 2002: Message edited by: Cindy Glass ]
\n

\"JavaRanch, where the deer and the Certified play\" - David O'Meara

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nPaul Stevens\n
\n
\nRanch Hand\n
\n
Posts: 2823
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
ISTJ as well. Although there was 2 questions where it was more 50-50 on the lists. It was just where I weighted them.
It is interesting that Meteorologist was second on that list. I have always been fascinated by weather and Kristina Abernathy
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJohnson Chong\n
\n
\nRanch Hand\n
\n
Posts: 210
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Good lord! I am an INFP!
Massage therapist is reccommended. Guess I will try to take up massage course.
\n

-Surfing the JavaRanch in a sunny garden with a cold drink and laptop can't be beat. by Frank Carver(sheriff)

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMatthew Phillips\n
\n
\nRanch Hand\n
\n
Posts: 2676
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
INTP.
Computer software designer/developer is top career path. Musician was number 6.
\n

Matthew Phillips

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nNanhesru Ningyake\n
\n
\nRanch Hand\n
\n
Posts: 452
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
INTJ: Introvert, Intuitive, Thinker, Judger
#1 Career: Intellectual property attorney!
[ January 04, 2002: Message edited by: Nanhesru Ningyake ]
\n

Pourquoi voulez-vous mon nom?

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nGuy Allard\n
\n
\nRanch Hand\n
\n
Posts: 776
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Looked at the site, did not take the test, so you be the judge.
I could not get past the spelling errors.
The word is 'extrovert' not 'extravert'.
Guy
P.S. And while I'm ranting about spelling, there is a big difference between 'implicit' and 'implicate' .... I have seen that abused in the forums here.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMapraputa Is\n
\n
\nLeverager of our synergies\n\n
\n
Posts: 10065
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Michael Ernest:
Who on JavaRanch would think Map is an introvert?

\n\t\t

You confuse verbal diarrhea with extroversion
Extro/introversion is an interesting case of a self-proving term. The guy who invented it, C.G.Jung, was an introvert himself. In his initial usage this concept was highly sophisticated and highly unclear. Oversimplifying, an introvert is a person whose inner world defines (often distorts) his/her perseption of the outer world. That makes him/her difficult to be understood by others. Misunderstanding of the \"introversion\" term as a synonym to \"unsociable\" demonstrates perfectly what introversion is all about
In fact, introversion does correlate with unsociability, but there is no solid \"cause-consequence\" link.
One more point of interest. The test above diagnoses you as an intovert if you \"have good concentration\". I read about it in Keith Devlin's \"The Math gene\". Speaking about level 4 abstrations, he claims that essentaially they are no more difficult than other, but require significant efforts in concentration. Since concentration is easier for introverts, percent of mathematician-intoverts is unproportionally high. I believe the same theory would work for programmers- 100% of this thread participants diagnosed themselves as introverts.
(spelling was corrected according to Guy Allard )
[ January 04, 2002: Message edited by: Mapraputa Is ]
\n

Uncontrolled vocabularies\r
\"I try my best to make *all* my posts nice, even when I feel upset\" -- Philippe Maquet

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMichael Ernest\n
\n
\nHigh Plains Drifter\n\n
\n
Posts: 7289
\n
\n
\n\n
\n\"Netbeans\n\"VI\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
A momentary hijack, brought about by Guy:
\"The difference between sanguine and sanguinary is a bloody big one.\"
Also Map still hasn't acknowledged my legend for her INFP. Building up a resistance, are you dear? :roll:
\n

Make visible what, without you, might perhaps never have been seen.\r
- Robert Bresson

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMapraputa Is\n
\n
\nLeverager of our synergies\n\n
\n
Posts: 10065
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
That would only encourage you, right? :roll:
I did notice your attempt to turn my serious scientific reasearch into a harmless joke by explaining N as Nitpicker when it should be iNtuitive but did not want to attract too much attention to your psychological atrocity.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAngela Poynton\n
\n
\nRanch Hand\n
\n
Posts: 3143
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
My results -
Life as an INFJ
(Intravert, Intuitive, Feeler, Judger)
People of this type tend to be creative, original and independent; thoughtful, warm and sensitive; global thinkers with great passion for their unique vision; cautious, deliberate and planful; organized, productive and decisive; reserved and polite.
The most important things to INFJs are their ideas, and being faithful to their vision.
Great careers for INFJs
Here are just a few popular and often satisfying careers for people whose Personality Type is INFJ:
Special education teacher
Alcohol and drug addiction counselor
Diversity manager / trainer
Speech / language pathologist
Career counselor
Therapist
Director of religious education
Editor / art director
Writer
\n

Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRandall Twede\n
\n
\nRanch Hand\n
\n
Posts: 4716
\n
\n
\n9\n\n
\n
\n\n
\n\"Scala\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
according to this I am INTJ or ISTJ. I like INTJ better since network integrator, software developer, and webmaster were on the career list
brainbench has a similar test that I liked better. they offered it to me free by email. so im not sure if you can just go there and take it or not http://www.brainbench.com
\n

SCJP\r
Visit my download page

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJason Kretzer\n
\n
\nRanch Hand\n
\n
Posts: 280
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have taken several of these having been a former teacher(HS chemistry). Roughly 80% say that I am INTP and the rest of the time I am INTJ. It is an interesting way to pass the time if nothing else.
\n

Jason R. Kretzer<br />Software Engineer<br />System Administrator<br /><a href=\"http://alia.iwarp.com\" target=\"_blank\" rel=\"nofollow\">http://alia.iwarp.com</a>;

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nersin eser\n
\n
\nRanch Hand\n
\n
Posts: 1072
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
ENTP
pick your personality type of test LoL ....
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAshik Uzzaman\n
\n
\nRanch Hand\n
\n
Posts: 2379
\n
\n
\n\n
\n\"MySQL\n\"Spring\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
A typical programmer is ---
* moody
* don't c what happens around him :roll:
* confident & proud \t
* always count why there are only 24 hours a day
* thinks of his frnds & colleagues as object of Human
* a little bit
\n

Ashik Uzzaman\r
Director of Engineering, Twin Health, Mountain View, CA, USA

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMapraputa Is\n
\n
\nLeverager of our synergies\n\n
\n
Posts: 10065
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Intermediate results:
Extravert (1)- Introvert (13)
Sensor (4)- Intuitive (10)
Thinker (10)- Feeler (4)
Judger (8)- Perceiver (6)
So...
Typical JavaRanch programmer so far is
INTJ
(Intravert, Intuitive, Thinker, Judger)

\"People of this type tend to be autonomous, aloof and intellectual; imaginative, innovative, and unique; critical, analytical and logical; intellectually curious, driven to learn and increase their competence and knowledge; socially cautious and reserved; organized and definitive.
The most important thing to INTJs is their independence and being able to live according to their own standards.\"
Great careers for INTJs:
Intellectual property attorney
News analyst
Design engineer
Biomedical researcher
Network integration specialist
Software developer
Psychiatrist
Cardiologist
Freelance writer...
We have a problem. Software developer mentioned only as # 5. Definitely we need more Perceivers here...
[ January 06, 2002: Message edited by: Mapraputa Is ]
\n

Uncontrolled vocabularies\r
\"I try my best to make *all* my posts nice, even when I feel upset\" -- Philippe Maquet

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nDave Vick\n
\n
\nRanch Hand\n
\n
Posts: 3244
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
ISTJ for me to although, like Paul mentioned, there were a couple of them where there were items in each category that would have fit for me. So I could have gone either way on a couple of them.
Dave
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAxel Janssen\n
\n
\nRanch Hand\n
\n
Posts: 2166
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
... same as Dave.
60% Introvert
70% Sensor
60% Thinker
65% Perceiver
Like your explanation about introvert Map. If you write a book \"Interesting things from various topics\" I would buy.
Hey. Computer programmer is first in the list.
[ January 07, 2002: Message edited by: Axel Janssen ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nPeter Lyons\n
\n
\nRanch Hand\n
\n
Posts: 202
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
INFP...
I'm supposed to be a psychologist. Dang.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Spritzler\n
\n
\nranger\n\n
\n
Posts: 17347
\n
\n
\n11\n\n
\n
\n\n
\n\"Mac\"\n\"IntelliJ\n\"Spring\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Kind of cool. But you sometimes aren't sure which side to pick, because both sides fit.
ENTJ:
Jobs.
Chief Executive Officer
Network integration specialist
Management consultant
Franchise owner
Financial planner
Real estate developer
Marketing executive
Intellectual property attorney
Investment consultant / planner
Economic analyst
Chemical engineer
Educational consultant
Judge

Mark
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMadhav Lakkapragada\n
\n
\nRanch Hand\n
\n
Posts: 5040
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
ISTJ.

Here are just a few popular and often satisfying careers for people whose Personality Type is ISTJ:
Chief Information Officer
Meteorologist
Database administrator
Healthcare administrator
Paralegal
Accountant
Real estate broker
Construction / building inspector
Police detective
Primary care physician
Biomedical researcher
Office manager
Credit analyst
- satya
\n

Take a Minute, Donate an Hour, Change a Life\r
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMapraputa Is\n
\n
\nLeverager of our synergies\n\n
\n
Posts: 10065
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Axel Janssen:
Like your explanation about introvert Map. If you write a book \"Interesting things from various topics\" I would buy.

\n\t\t

Meaningless drivel is the book! It's a love novel, detective story, logical puzzles, obscure literature reminiscences and allusions, popular science... Better yet, it is not static, it is being written right now. If it's still not enough: there is no \"writer-reader\" dichotomy, readers are writers, writers are readers, everybody can participate and change the plot...
\n

Uncontrolled vocabularies\r
\"I try my best to make *all* my posts nice, even when I feel upset\" -- Philippe Maquet

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMapraputa Is\n
\n
\nLeverager of our synergies\n\n
\n
Posts: 10065
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 23 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I mean everybody except JR member #290 . He is handling the errata.
\n

Uncontrolled vocabularies\r
\"I try my best to make *all* my posts nice, even when I feel upset\" -- Philippe Maquet

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
What's a year in metric? Do you know this metric stuff tiny ad?
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/476133/java/JSF-Error", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJSF Example Error (JSF forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJSF Example Error\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 238
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\r
Hi,\r
\r
I am trying to run following JSF hello world simple example. I am getting following error when i run the application on server at index page as following\r
\r
\r
\r
my index.jsp code is\r
\r
\r
\r
\r
\r
HelloWorld.jsf code looks like\r
\r
\r
\r
HelloWorldBean code looks like\r
\r
\r
\r
\r
Web.xml looks like\r
\r
\r
How can I resolve above error. Any ideas, suggestions, sample code, resources highly appreciated. Thanks in advance\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMathew Lee\n
\n
\nRanch Hand\n
\n
Posts: 238
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
After setting proper jars in place web.xml warning message relating to listener was gone. when i run the application the index page is executed which is redirecting to hellpworld.jsf ( i confuse here whether it is supposed to be helloworld.jsp instead???) as expected. Any way afterward it is throwing blank page and i do not see any console message(as in attachment jsf2) also this time. Other time when i tried as in the screenshot(jsf3) it said helloworld.jsp was initialized. Please advise how can i resolve this error.
\n
\n
jsf3.JPG
\n
\n\n
blank screen with jsp initialized console message
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMathew Lee\n
\n
\nRanch Hand\n
\n
Posts: 238
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
Application is successfully going to index.jsp then redirected to the helloworld.jsp based on *.jsf mapping. In helloworld,jsp it is showing blank after it is getting initialized successfully. I suspect on\r
\r
\r
\r
\r
\r
Not really sure why it does not print hello from bean instead of blank page. Please advise
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 6
\n
\n
\n\n
\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello gudim,\r
\r
Your code seems right. Could you just do following in index.jsp (if your jsp file is HelloWorld.jsp and not helloworld.jsp)\r
\r
Replace:
\r
\r
\r
\r
With:\r
\r
\n

Thanks,\r
Abhijeet.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMathew Lee\n
\n
\nRanch Hand\n
\n
Posts: 238
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
My jsp page is your jsp file is 'helloworld.jsp' only. I replaced all the content of helloworld.jsp from complex code like\r
\r
\r
\r
to some simple static text like\r
\r
'hi from jsp page'\r
\r
still when i start application it is showing blank page instead of showing \r
'hi from jsp page' after getting redirected from index.jsp to this updated helloworld.jsp. Please advise
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMathew Lee\n
\n
\nRanch Hand\n
\n
Posts: 238
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,\r
\r
Actually when restart RAD and laptop i see\r
\r
\r
simple static text like \r
\r
'hi from jsp page' is showing up successfully through updated helloworld.jsp when i run the application on server.\r
If i keep helloworld.jsp original content as\r
\r
\r
\r
\r
and when i start application still it is showing blank page. Please advise \r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAbhijeet Dalal\n
\n
\nGreenhorn\n
\n
Posts: 6
\n
\n
\n\n
\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello gudim,\r
I need to see you console in following 2 cases, please do provide me the entire console:\r
1. Add your project in the server and clear the console. Now restart your server. Once the server is restarted go to console and copy all the stuff.\r
2. Now clear the console and run your app, once you get the blank page send me the console output.
\n

Thanks,\r
Abhijeet.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/401280/java/java/run-simple-class-method", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nCan't run simple class with 1.4 method (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nCan't run simple class with 1.4 method\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 125
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Folks,

I work with a product that requires jdk 1.3. Yet I also need to use jdk 1.4 for other work. I've had jdk 1.3 installed and working fine. I downloaded the 1.4 jdk from sun and installed it. I created a simple hello world app that uses a String split() method in it to confirm that 1.4 is working. I'm able to compile the class ok, but when I run it I get a NoSuchMethodError on the line calling split(). I've set my classpath to have the jdk1.4 before my 1.3 jdk and after. I've taken the 1.3 jdk line out altogether, but nothing seems to work. Any ideas would be greatly appreciated, thanks.
\n

SCJP 1.4 SCJD 1.5

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRancher\n
\n
Posts: 43081
\n
\n
\n77\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Setting the classpath is not the whole story. If the \"java\" executable you run is the one from 1.3, it will use the 1.3 libraries no matter what. Make sure that your \"path\" is set so that you run the 1.3 binaries.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMike Ottinger\n
\n
\nRanch Hand\n
\n
Posts: 125
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks for the reply, yep, I switched the path to my 1.4 exe's to the very front of my path and it worked. Thanks for the help, I was always under the impression PATH settings were only for compiling.

- M
\n

SCJP 1.4 SCJD 1.5

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 637
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Use Eclipse for your work, and set the compliance level to 1.3 or 1.4 or 5 according the the requiremetns of each of your projects.

That will take care of the differences.
\n

ASCII silly question, Get a silly ANSI.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\nDon't get me started about those stupid light bulbs.\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/194379/certification/SCJP-Exam-Guess", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nSCJP New Exam (A Guess) (OCPJP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nSCJP New Exam (A Guess)\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 4
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Dear friends,

In Marcus's tutorial you can see notes(to objectives)

like these:
\" The 1.1 objective seemed
to make more sense in that they......
I have a feeling that they did not re-
write every question in the bank to match
the new objectives so you will get similar
questions for the Java2 exam.\"(Thanks Mr.Green)

Now I guess (guessing only) the whole question bank would have been
written strictly as per the Java2 objectives.
So before writing the exam go through the objectives(word by word)
and see that you have covered everything.
Hope it helps you all friends.

------------------
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Are we home yet? Wait, did we forget the tiny ad?
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/591623/Aspose-Newsletter-September-Edition", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nAspose.Newsletter September 2012 Edition is Out Now (Blatant Advertising forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nAspose.Newsletter September 2012 Edition is Out Now\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 714
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Aspose Newsletter for September 2012 has now been published that highlights all the newly supported features offered in the recent releases of its JasperReports exporters, SQL Server rendering extensions, .NET, Java & SharePoint components. This month’s technical article shows recognizing Barcodes in PDFs with Aspose.Pdf & Aspose.BarCode. A migration tip for Adding Tasks to Projects with Aspose.Tasks for .NET vs VSTO & video tutorial shows How to create Mail Merge template for use in Aspose.Words.\r
\r
Aspose New Ventures \r
\r
Aspose has developed a number of different tools that help us work and communicate more effectively within the company. We have decided to share some of these tools. Our new ventures, Saaspose, GroupDocs, Codeporting and Banckle, give developers and individuals access to the products that we use the most. Visitors to Aspose.com are probably already familiar with Banckle, the venture that provides the website’s Live Chat feature, as well as other collaborative tools. Developers working in the cloud benefit from Saaspose, cloud-based file management APIs based on Aspose’s most popular products. Codeporting is also aimed at developers and helps port .NET code to Java. GroupDocs is a suite of online document management tools and APIs aimed at professionals who need to sign, convert, assemble and collaborate on documents. Click to View complete details about Aspose’s New Ventures .\r
\r
Product Spotlight: Aspose.Cells \r
\r
Aspose.Cells for .NET and Aspose.Cells for Java gives you control of Microsoft Excel spreadsheets so that you can work with them easily in your applications. Open, read, save and create spreadsheets, add or remove data, control formatting, work with charts and drawings, control formulas, add pivot tables and much more. The easy-to-use APIs saves time and effort by giving you access to our file format expertise. We also have Aspose.Cells available for SharePoint, SQL Server Reporting Services and JasperReports so that you can output files to native Microsoft Excel formats. Click here to view complete details about Aspose.Cells Product Family . \r
\r
Technical Article – Recognize Barcodes in PDFs with Aspose.Pdf and Aspose.BarCode \r
\r
Aspose.Pdf for .NET works with our other .NET components to provide powerful document management features. Several of our customers embed barcodes into PDF files and then need to be able to read those barcodes. We have a technical article that explains how to use Aspose.Pdf with Aspose.BarCode to perform this task. Click below to read the complete article about ecognize Barcodes in PDFs with with Aspose.Pdf and Aspose.BarCode. \r
\r
Updates about new product releases \r
\r
- Aspose.Total for .NET - a compilation of our latest .NET products.\r
- Aspose.Cells for .NET v7.3.1 - improvements to conditional formatting, HTLM and PDF output and various fixes. \r
- Aspose.Words for .NET - our monthly Aspose.Words release.\r
- Aspose.Pdf for .NET 7.2.0 - adds support for extended form fill-in and save in Acrobat Reader, list of imported fields and a number of fixes.\r
- Aspose.Slides for .NET 6.5.0 - set gap width and depth in 3D column charts, and a number of fixes.\r
- Aspose.Imaging for .NET 1.7.0 - flip GIF files and scale GIF and TIFF files. \r
- Aspose.BarCode for .NET 5.0.0 - support for Database Expanded generation and improved Code128 recognition.\r
- Aspose.Diagram for .NET 2.5.0 - render diagram to SWF, with or without SWF viewer.\r
- Aspose.Tasks for .NET 4.5.0 - write updated data back to MPPs.\r
- Aspose.Email for .NET 1.9.0 - adds a number of enhancements that improves stability.\r
- Aspose.Total for Java - a compilation of our latest Java products.\r
- Aspose.Cells for Java 7.3.1 - improvements to conditional formatting, HTLM and PDF output and various fixes.\r
- Aspose.Words for Java - our monthly Aspose.Words release.\r
- Aspose.Slides for Java 2.9.6 - various fixes that improves rendering and output issues.\r
- Aspose.BarCode for Java 4.5.1 - a maintenance release that improves cross-product interactions..\r
- Aspose.Email for Java 2.0.0 - create standard folders in PST files, check if PST is Unicode or ASCII and a number of improvements and fixes.\r
- Aspose.Total for SharePoint - a compilation of our latest SharePoint products. \r
- Aspose.Words for SharePoint 2.6.0 - improved EMF rendering, support for embedded EMF+ rendering, support for hidden rows and a number of other improvements.\r
- Aspose.Slides for SharePoint 1.2.0 - adds user interface elements for a slide viewer.\r
- Aspose.Pdf for SharePoint 1.5.0 - add a barcode to PDF files in a document library.\r
- Aspose.Total for Reporting Services 3.5.0 - a compilation of our latest Reporting Services products.\r
- Aspose.Slides for SSRS 4.4.0 - display Aspose.Slides export option in ReportViewer 2010 and a couple of fixes.\r
- Aspose.BarCode for SSRS 5.0.0 - support for Database OmniDirectional, Limited and Expanded generation, and Code32 (Pharmacode).\r
- Aspose.Total for JasperReports - a compilation of our latest JasperReports products.\r
- Aspose.BarCode for JasperReports 1.6.0 - supports ITF6 generation and automatic checksum calculation for ITF14.\r
\r
Tutorial Video – How to Create a Mail Merge Template for use in Aspose.Words for .NET \r
\r
Aspose.Words for .NET helps developers automate a lot of document activities, for example mail merges. Before performing a mail merge, you need to add fields to a template which is then populated from a data source. The mail merge process helps you create large runs of letters, contracts, reports and so on. We have a tutorial video that shows you how to prepare a mail merge template. Click here to watch Video \r
\r
Migration Tip – Adding Tasks to Projects with Aspose.Tasks for .NET vs VSTO \r
\r
Aspose.Tasks for .NET lets developers work with Microsoft Project files directly, independently of Microsoft Office Automation. Aspose.Tasks gives you the power to create, open and manipulate project files. A crucial activity when working with projects is adding tasks. Aspose.Tasks and VSTO both lets you do this and we have an article that shows how the two approaches differ. Read the complete migration tip about Adding Tasks to Projects with Aspose.Tasks vs VSTO \r
\r
Collect your copy of Aspose Newsletter, September 2012 edition \r
\r
Collect the English version of this newsletter.\r
Collect the Japanese version of this newsletter.\r
\r
Keep in Touch \r
\r
There are several ways for you to keep in touch with us. The monthly newsletter is a way for us to keep in touch with you, but we are always interested in hearing from you.\r
\r
-\tPost a question on our forums \r
-\t Connect with us on Post a question on our Facebook \r
\r
Contact Information \r
Aspose Pty Ltd\r
Suite 163, 79 Longueville Road\r
Lane Cove, NSW, 2066\r
Australia\r
Aspose - Your File Format Experts \r
[email protected]\r
Phone: 888.277.6734\r
Fax: 866.810.9465\r
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
To do a great right, do a little wrong - shakepeare. twisted little ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/u/375037/Koen-Ursem", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nAll about Koen Ursem\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n
\n\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Koen Ursem

\r\n
\r\n
\r\n
Greenhorn
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n+ Follow\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nsince Nov 15, 2018\r\n
\r\n
\r\nMerit badge:\r\ngrant badges\r\n
\r\n
\r\n
\r\n
For More
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Cows and Likes
\r\n
\r\n
\r\n
\r\n
Cows
\r\n
\r\n
\r\n
Total received
\r\n
\r\n
\r\n
\r\n
\r\n
In last 30 days
\r\n
0
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Forums and Threads
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Recent posts by Koen Ursem

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nIn the case && would not be allowed i would asume this could do as well?\r
\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
5 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nSam Peterson wrote:\r
Also, since we still have the R3 object that's not eligible for garbage collection at the end of this program, what is the lifespan of that object and the two reference variable after the program finishes?\r

\n
\r
\r
Ooh i like this question,\r
\r
I wonder if R3 would be up for GC at line 10 when there is no further use of the variable two in the current scope, or on line 12 where the scope of the current codeblock ends?\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
5 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nAt line 8, one is being pointed to an empty adress not refering(pointing) to any Rabbit object in memmory.\r
At line 9, four copies this empty refer(null addres) from one also not refering(pointing) to any Rabbit objects in memmory.\r
\r
This means only three after line 6 is still pointing to the Rabbit you called R1 created from the new constructor on line 3.\r
\r
\r
Explanation:\r
The new constructor statement in java is the moment where data is to be created in memmory.\r
The variables are just referals to this data, the variable one is of type Rabbit, this is only saying that it expects on the address it refer to, that there is data on this address that equals the data-structure of a Rabbit.\r
\r
\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
5 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI usually think about variables in java as pointers.\r
\r
So :\r
Rabbit one = memory point 1008 = new instance object of Rabbit1Data.\r
When you then then get on line 5,\r
Rabbit three = one; That actually says, Rabbit three is the same memory addres of pointer Rabbit one. (It actually copys the pointing value of one, and it is not really referring to one at all after it has copied the adres).\r
\r
So now both variable one and three reference to memory point 1008. (And java will check from time to time if there are any variables pointing to this same memory adress).\r
\r
Now as long as there is a pointer(variable) to point 1008, Rabbit1Data should not be garbage collected.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
5 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI think you have the idea frameworks are only big bulky frames that do allot of things and force you to go one way. But if you look at the wiki list of frameworks @ https://en.wikipedia.org/wiki/List_of_Java_frameworks You will see there are lots of small usefull frameworks as well, some of which you may even have used already. Frameworks like JUnit, Mockito JodaTime, Lombok, SonarLint/SonarQube as example are pretty commonly seen in projects. And those are not so big that it takes allot of time to use the basics.\r
\r
I would just take a look through the whole list, see if you have seen or maybe even used some before, and check out some of the frameworks to see if you like them.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nOnly thing I see wrong right now is that you print this.student in the displaycourseinfo instead of this.enrolledstudents (You may have to find a way to print a list correctly).\r
your course class is now holding both a student object and a enrolledstudents list right now, but it could be this was your intention to have that student be the teacher of the course or something?\r
\r
And yes, when you have more students and courses to work with you may want to have a way of selecting the right ones. Something in the trend of if student.name = ?? then do this. Same for course.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nDaniel Demesmaecker wrote:I you have a seperate class for your courses who have enrolled students in them it's not enough to pass only the student. You have to create an array who keeps track of the course and the enrolled students (I would use a hashmap).\r
so you have to pass both student and course, then in the function looping the hasmap searching for the course and adding the student, but the way I descriped before is way easier.

\n
\r
\r
A Hashmap would be a neat solution, but considering this is an assignment I think OP is more looking for a simple list<Student> implementation in the Course object.\r
\r
\r
@OP\r
If you want to add a student to your course, you would need a list/array in your course object to save this in.\r
Then when you want to add the student you want to call this course object and run a method that adds the student you have given to this list/array.\r
\r
Considering the code from your first code, something like this  'c.addStudent(yourStudent);' in the for loop. Be aware that your for loop is running over all courses in your Clist, so now the student would be enrolled to all courses if you implement the suggested method. I will let you try to figure that part out for yourself for now, let us know if you can figure it out or not \r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nYour current code when the commented line is not commented will try to add your student into the list of courses. Now a list of Courses and Students mixed together would indeed not be what you want and if Clist is of type Course would even give you an error.\r
\r
There are multiple ways of solving this, you can either give the Student an empty list of Courses where you add the courses to the list in the Student object. Or you can add an empty list of students to your Course and add the student to a students list in the Course object.\r
You can also let both objects have a list where you add persons to courses and courses to persons. But: then you have double data which would be redundant and can result in inconsistent data. Since person has its own list, and course has its own list.\r
\r
You may want to think first about what approach you would like to make, and write it down to get an idea.\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\nGas cooker\r\n
\r\n
\r\n
\r\nIf this is designed by a man, he must've been a god at reading women right.\r
We have 2 ovens at home, 1 simple digital one, and this complex weird one with a rotating button that can be pushed in, pulled out and who knows what magic tricks doing all kind of different functions and settings.\r
\r
My wife understands that weird one and doesn't get the digital one. I understand the simple one but feel lost at the complex weird one to me.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nJunilu Lacar wrote:

\n

\nKoen Ursem wrote:My guess is either your current app location is read with single backlashes where there is a '\\u' in the path name from a folder or file starting with a 'u'. Or there is a property in one of the config files that points to a folder with a occurrence of '\\u' like '\\user' in the path.

\n
\r
That is a very good guess. In fact, it's what I would call an \"informed and highly-probable guess.\" Way to think outside the box, Koen! In fact, I'm giving you some Thanksgiving Pie for it, even if it doesn't pan out (which I think it will).\r
\r
@OP: If you can run the grep command, use it check if your properties file contains \"\\u\" at all. On Windows, I believe the equivalent command is \"findstr\", at least according to what Google tells me.

\n
\r
\r
Well thank you kindly!\r
I bet most programmers have at least once dealt with issues on paths with slashes and backslashes when using other systems. I had almost the same error a year ago on a vm machine where I fixed a path in the code replacing the \\ for a double \\\\. In this case it does seem a bit different in that there could be a configuration reader that reads the path as a string at first with the properties load function, considering the file type and system it probably sees \\u in the string as a encoded Unicode character that would be followed by a digital for the Unicode character.\r
\r
So if I am indeed correct OP has to find a way to either escape it in the config, save the config file in a different format (UTF-8? not sure on it), or if it is a directory avoid the the occurrence of \\u in the folders and file name.\r
Otherwise the code would have to be changed to escape it if that wouldn't work, but from the story I understand OP is not directly able to change this.\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nIs your application in a folder starting with a 'u' like c:\\user\\myapp for example?\r
\r
In some systems the \\u in user gets faulty recognized as a Unicode character.\r
But it could also be that in one of the xml/config files there is a path named with \\ instead of \\\\ or /.\r
\r
My guess is either your current app location is read with single backlashes where there is a '\\u' in the path name from a folder or file starting with a 'u'. Or there is a property in one of the config files that points to a folder with a occurrence of '\\u' like '\\user' in the path.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nEdit(cant add to previous message): It is by the way not because the constructor is a string, but because you have the String name; in the body of the class itself that it handles name as a string and cannot be set initialized as String again.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nYes would be this.name = name; without the String in front of it, since it is already defined as a String holding object. For the rest your Employee class looks fine.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI have spotted the following when I run your code,\r
\r
the first is that you mix up the int[] and string[] arrays in your method. Once you instantiate it as a string or int, you either have to convert those and save it in a different variable or keep it the same type.\r
\r
The 2nd is that you created a method signature (non declared method) to be overwritten by classes that could implement/extend the class, so the method can not have a return.\r
Example of the difference:\r
public static void overrideMe;\r
public static String giveMeString(){ //code };\r
\r
When you managed to fix these, you may want to look at how to change line 13 to call a static method.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nSince you are working with char inputs, you may also like the methods that the Character class in java gives you.\r
\r
You can do for example:\r
Character.isDigit(myChar)\r
and\r
Character.isLowerCase(myChar)\r
and some more useful methods.\r
\r
which are returning true or false when a char is given.\r
\r
\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
6 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n
\n\n\n\n" }, { "url": "https://coderanch.com/u/94121/Vengan-Krish", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nAll about Vengan Krish\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n
\n\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Vengan Krish

\r\n
\r\n
\r\n
Ranch Hand
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n+ Follow\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nsince Mar 05, 2005\r\n
\r\n
\r\nMerit badge:\r\ngrant badges\r\n
\r\n
\r\n
\r\n
For More
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Cows and Likes
\r\n
\r\n
\r\n
\r\n
Cows
\r\n
\r\n
\r\n
Total received
\r\n
\r\n
\r\n
\r\n
\r\n
In last 30 days
\r\n
0
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Forums and Threads
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Recent posts by Vengan Krish

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nThank you very much.

Regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI don't see anything wrong in option 1.
But obviously option 5 would fail during compilation of the translated jsp class.
Here is how the translated code would look like with option 5 in a JSP.



Please note the statement ht.put(\"max\", \"10\"); is invalid in a class body without opening/closing braces.

Regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nCheck out the section SRV.8.4.2 in the servlet spec.

Regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nAnswer B is correct.
Only when you return EVAL_BODY_INCLUDE your body will be processed.
You return EVAL_BODY_PROCESSED when you need access to the body for your own manipulation.
Check out the lifecycle chart on HFS page 533.

Regards.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nWith 8 hours per day, between now and July 20, there is more than enough time.
you should be good.

Good luck...\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\nIgnore EL\r\n
\r\n
\r\n
\r\nThis is an error in the book. What you answered is correct.
Check the errata at

web page

Regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nServlet Spec.
I believe there are 2 key points to be remembered on this subject -
1.Tags that can have dynamic attributes need to declare dynamic_attribute in the DD
2.The corresponding tag handler need to implement DynamicAttributes interface.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nYes.
You can call a tag without a body even when body-content is defined as non-empty.
I guess there is some mock exam question in HFS that highlights this possibility.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi,
I got the same question in some mock exam and the answer given was A D B C.

Regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nYour question is unclear. Try to rephrase it and post in a new thread - somebody could help you. If it is some mock exam question, please post the exact question.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI can't get it any better - sorry.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nMy matrix in the above posting is messed up.

DD <url-pattern> DD <servlet-name>

Filter 1 /Recipes/* -
Filter 2 - /Recipes/HopsList.do
Filter 3 /Recipes/Add/* -
Filter 4 - /Recipes/Modify/ModRecipes.do
Filter 5 /* -\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHi Vishwa,

1. How can a <servlet-name> tag in a filter definition contain an url-pattern? Is it not supposed to contain the name of the servlet to which the filter applies?
Your initial posting has a mistake. Filter 2 mapping has <servlet-name> in the HFS book, not <url-pattern>.

2. The url-pattern /* (the last one) is defined as the last. So this filter would be included in every request but only as the LAST!. Isn't it?
No.

Here is the filter spec in the DD in a matrix.

DD <url-pattern> DD <servlet-name>

Filter 1 /Recipes/* -
Filter 2 - /Recipes/HopsList.do
Filter 3 /Recipes/Add/* -
Filter 4 - /Recipes/Modify/ModRecipes.do
Filter 5 /* -


Let's say we get a request URL /Recipes/HopsList.do.

Applying rule 1, Container goes thro' the <url-pattern> column looking for match. Filter 1 and 5 match.

Applying rule 2, Container goes thro' the <servlet-name> column. Filter 2 match.

So the order is 1 5 2. Isn't it straightforward ?

Makes sense?\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nPlease see the Container's rules for ordering filters in Page 678.

1.Filters with matching URL patterns are placed in the chain in the order they are declared.

2.Next Filters with matching <servlet-name> are placed in the order they are in DD.

Hope this helps.
This is really a huge 'gotcha'.

Regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nI guess some mistach with your directory structure. if you haven't figured it yet, paste your development directory structure here.

regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
19 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n
\n\n\n\n" }, { "url": "https://www.coderanch.com/t/58056/frameworks/Struts-Action-Form", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nStruts Action Form (Struts forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nStruts Action Form\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 180
\n
\n
\n\n
\n\"Hibernate\"\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi All,

I have a general question about the action forms.

Suppose i have an action which builds up a form by setting its properties and then it forwards the control to a JSP which uses the same form.
But i have kept the form in the request scope.

So would i be able to retrieve the set values from the action class.?

Please help

Saurav
\n

Be Objectively Oriented.Explore the power of OOPs.\r
My Blog, Eclipse EMF Query committer.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 37
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,
Yeah you can access the form properties in your jsp. You have to declare the variables inside the html form(the form name needs to be the same as action form name) which you declare in the jsp. you can keep them hidden or display them as per your needs by using corresponding html tags.
Ketan.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 948
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Are you asking if when you submit the JSP will the form that is passed to the action have all the values that where there when the JSP was rendered? If you are asking that then the answer is no. A brand new instance of the form will be created and it will only be populated with values that are submitted from the JSP. This will only include values in input tags (including hidden input tags).

If you are asking if you can get the values from the form in your JSP then Ketan's answer is correct. Yes you can read values from the form to populate your page. This is very common and I much prefer placing values on the form over placing values directly on the request.

- Brent
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nsaurav sarkar\n
\n
\nRanch Hand\n
\n
Posts: 180
\n
\n
\n\n
\n\"Hibernate\"\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 16 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks Ketan and Brent for your replies.
yes i am asking the second option Brent, i thought it too
but to my surprise i am not able to retrieve the values
in the JSP.But if i keep the form scope to session i am
able to get.
\n

Be Objectively Oriented.Explore the power of OOPs.\r
My Blog, Eclipse EMF Query committer.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/399402/java/java/String-double-quotes", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nString without double quotes (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nString without double quotes\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 65
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,

I am new to Java,

I want to insert a string in database but it should not have double quotes.

e.g i want to insert string TJ2003W.

But when we declare this as string it is surronded by double quotes.

Pls help reagrding this.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 34
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi, the double quotes are only needed for Java so it knows you want to declare a String. The Stringobject itself doesnt contain the quotes!
Mark
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nAuthor\n
\n
Posts: 253
\n
\n
\n6\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Segal:

Expanding on Mark's comment, in Java, a string literal is represented in a program's source code by enclosing the desired string within quotes. In the compiled version of the program, a String object is created that corresponds to that string literal. This object does not include the quotes.

For example, consider this line:

Here, \"a test string\" is a string literal. However, what str refers at runtime will be a String object that contains the characters a test string. It will not include quotes. Thus, a quoted string is simply a source code mechanism.
\n

For my latest books on Java, including Introducing JavaFX 8 Programming, see HerbSchildt.com

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/466134/java/java/HashTable-null-values", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nWhy HashTable does not allow null values..? (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nWhy HashTable does not allow null values..?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 296
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Dear all\r
\r
As we know that Hashtable does not allow null values as keys and values,Kindly tell me why they made the implementation like that other than Hashmap which allows null\r
\r
[Jesper Young: edited topic title, \"numm\" -> \"null\"]
\n

Creativity is nothing but Breaking Rules

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 67753
\n
\n
\n173\n\n
\n
\n\n
\n
\n\n
\n\"Mac\"\n\"Mac\n\"IntelliJ\n\"jQuery\"\n\"TypeScript\"\n\"Java\"\n\"iOS\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\"numm value\"? Please take the time to proof-read your posts.\r
\r
Of what utility would they be? Null values would be indistinguishable from missing values except during iteration, and of what use would a null key be?
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nsanthosh.R gowda\n
\n
\nRanch Hand\n
\n
Posts: 296
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Sorry for the misplacing of numm instead of null
\n

Creativity is nothing but Breaking Rules

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 22821
\n
\n
\n132\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Chrome\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\n\t\t\t\tBear Bibeault wrote:Null values would be indistinguishable from missing values except during iteration

\n\t\t
\r
That's where containsKey comes in.\r
\r
\n\t\t\t

and of what use would a null key be?

\n\t\t
\r
It allows you to store the key without a value. Granted, I never saw the need for that, but still.
\n

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6\r
How To Ask Questions How To Answer Questions

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nsanthosh.R gowda\n
\n
\nRanch Hand\n
\n
Posts: 296
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I want the reason behind that why they made to allow null values in hashmap i had gone through the API that while putting they are going to check the null values.\r
\r
\n

Creativity is nothing but Breaking Rules

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRob Spoor\n
\n
\nSheriff\n\n
\n
Posts: 22821
\n
\n
\n132\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Chrome\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I think the more important question is: why would you NOT want to allow null keys and values? Using null values for defaults (if there is no value for a non-null key, check the value for the null key) isn't uncommon. If you want to disallow them, use Collections.checkedMap - that one forbids null as well.
\n

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6\r
How To Ask Questions How To Answer Questions

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nMarshal\n\n
\n
Posts: 80281
\n
\n
\n432\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Agree with Rob; there are instances where you want to permit nulls and instances when you want to prohibit them.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/656033/Android/mobile/Developing-Indoor-Navigation-App", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nDeveloping Indoor Navigation App (Android forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nDeveloping Indoor Navigation App\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 2
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 9 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello!\r
\r
Ive got a school project, my project is about making some sort of navigation for the school, to find specific rooms and so on.\r
\r
For this ill need maps over the school, which ive required, but Ill also need some kind of navigation system, which I have no idea on how I should aquire.\r
\r
Ive spent hours on google, reading about \"Indoor navigation system\" and many of them are open, Anyplace Indoor Navigation, for example, is one of them (google it for the link).\r
\r
Now, even tho they are \"open\" and free to use, I have no idea on how I should implement this into a android app ? \r
\r
Please help me... Some kind of tips, so I can get started, because now Im sitting frustated with nothing done sofar...\r
\r
Thank you!
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 417
\n
\n
\n\n
\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 9 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello,\r
\r
I guess your main challenge will be locating where you are, e.g. displaying the \"you are here\" dot on the map. The rest should be almost trivial.\r
\r
Have you read this link?\r
\r
https://en.wikipedia.org/wiki/Indoor_positioning_system\r
\r
Using GPS could be simpler and can also be used indoors but you need a pretty accurate gps chipsets on the android device and good satellite coverage in your area which makes it a less viable option. Military grade gps chipsets and devices can achieve this.\r
\r
It sounds a little complicated for a school project but it is nevertheless an interesting challenge!
\n

I hadn't been here for fifteen years

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJozef Miljak\n
\n
\nGreenhorn\n
\n
Posts: 2
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 9 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\n\t\t\t\tA.J. Côté wrote:Hello,\r
\r
I guess your main challenge will be locating where you are, e.g. displaying the \"you are here\" dot on the map. The rest should be almost trivial.\r
\r
Have you read this link?\r
\r
https://en.wikipedia.org/wiki/Indoor_positioning_system\r
\r
Using GPS could be simpler and can also be used indoors but you need a pretty accurate gps chipsets on the android device and good satellite coverage in your area which makes it a less viable option. Military grade gps chipsets and devices can achieve this.\r
\r
It sounds a little complicated for a school project but it is nevertheless an interesting challenge!

\n\t\t
\r
\r
Thank you for your reply!\r
\r
Yes, ive read that link.\r
\r
I think GPS wont be enough to locate the user inside the school, as our school has 3 floors, which makes it pretty hard for the signals to come trough correctly.\r
\r
Do you have any \"tutorial\" on how to write code for locating the user with other techniques ? Like, triangulation for example ?\r
\r
\r
EDIT::\r
\r
Im starting on my application now and I wonder how I should mark the map with the cordinates ? I guess this is my problem now lol
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nA.J. Côté\n
\n
\nRanch Hand\n
\n
Posts: 417
\n
\n
\n\n
\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 9 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\r
\r
Thank you for your reply!\r
\r
Yes, ive read that link.\r
\r
I think GPS wont be enough to locate the user inside the school, as our school has 3 floors, which makes it pretty hard for the signals to come trough correctly.\r

\n\t\t
\r
Right, only military grade gps-like chipsets and devices, sometimes using classified satellites, can accomplish that and it doesn't work if the building is lead shielded although I don't think your school would be. Forget about it for a typical Android device. \r
\n\t\t\t

\r
Do you have any \"tutorial\" on how to write code for locating the user with other techniques ? Like, triangulation for example ?\r

\n\t\t
\r
Not really, but you seem on the right track. Choose the technique (algorithm) e.g. triangulation etc.. you are going to use before looking for code. \r
\n\t\t\t

\r
EDIT::\r
\r
Im starting on my application now and I wonder how I should mark the map with the coordinates ? I guess this is my problem now lol

\n\t\t
\r
\r
The sky is the limit, you could have a 0,0,0 point in the middle of the school second floor or find out your school accurate elevation and longitude/latitude and map based on that. I would probably choose the latter. \r
\r
The main challenge that I see is that I assume you won't have control over the Android devices. It would be much easier if you provided the devices to the users. You are basically left with triangulation based on the different Wi-Fi access points in your school given their signal strength. I don't even know if the Android devices would be able to handle that.\r
\r
Another option would be a facial recognition-like program where the user would point his Android device camera to a barcode-like sign on the wall to let the application know where the user is. Edit: using that, you wouldn't even need and accurate positioning system. You would only need a high-level knowledge of the school layout, more like a human mind would do.\r
\r
Let us know what you come up with please,
\n

I hadn't been here for fifteen years

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nMarshal\n\n
\n
Posts: 4699
\n
\n
\n588\n\n
\n
\n\n
\n
\n\n
\n\"VSCode\"\n\"Eclipse\n\"TypeScript\"\n\"Redhat\"\n\"MicroProfile\"\n\"Quarkus\"\n\"Java\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 9 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You may be able to perform Dead Reckoning by using a combination or the mobile device's sensors and accurate location information from other sources such as GPS or Bluethtooth beacons when they are visible.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nA.J. Côté\n
\n
\nRanch Hand\n
\n
Posts: 417
\n
\n
\n\n
\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 9 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

\n\t\t\t\tA.J. Côté wrote:\r
\r
Another option would be a facial recognition-like program where the user would point his Android device camera to a barcode-like sign on the wall to let the application know where the user is. Edit: using that, you wouldn't even need and accurate positioning system. You would only need a high-level knowledge of the school layout, more like a human mind would do.\r
\r
Let us know what you come up with please,

\n\t\t
\r
\r
Similar to barcode-like signs on the walls, it could be bluetooth like devices on the walls or ceilings with limited range so they don't interfere with each other that emit a specific coordinate/location to let the user know where he is. Again, I do not know if it is feasible with non-rooted Android devices but it should be feasible if you have full control of the device.
\n

I hadn't been here for fifteen years

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/275833/java-io/java/GZIPOutputStream-size-compressed-data", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nGZIPOutputStream - size of compressed data (I/O and Streams forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nGZIPOutputStream - size of compressed data\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 57
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hello,
I compress data using GZIPOutputStream. Is there any way to find out the size of the compressed data?
here is what I do
sb ( StringBuffer )has some data...

GZIPOutputStream gzos =
new GZIPOutputStream(response.getOutputStream());
gzos.write(sb.toString().getBytes());
gzos.close();
Kindly let me know.. I need to find out how good the compression is..
Ram
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/166178/java-Web-Component-OCEJWCD/certification/SCWCD-worth", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nis SCWCD worth it? (OCPJWCD forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"advertise\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nis SCWCD worth it?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 1
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hey all, i was wondering if people look for this certification when looking for qualified people? I have been developing jsp/servlet apps for 2-3 yrs now, and i am pretty sure that i could pass it blindly, but is it worth my time, or will my expiernce speak for it self?
Thanks
Mike Woll
scjp
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 116
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
What were your reasons when you got your SCJP?
I think skills/experience is the one that is finally going to speak for you.
Being certified, just gives the added comfort that somebody will actually pickup your resume for futher consideration.
Good luck.
Looks like you might breeze thru this test.
Is it the cost or the process that is making you consider its worth ?
Rama
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
A tiny monkey bit me and I got tiny ads:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/477483/JSP/java/Auto-login-Page", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nAuto login of the Page (JSP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nAuto login of the Page \n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 2234
\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"Redhat\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi , \r
\r
I want to develop Auto login Page .\r
\r
for example it consists of two fields say a username and a password textfields.\r
\r
Now i want to provide a check box under it with Label Do You want to remember ?\r
\r
Which automatically logs me if i open the site again .\r
\r
Please give me an idea as how to remember the username and password again when the user comes . \r
\r
Thank You . \r
\r
\r
\n

Save India From Corruption - Anna Hazare.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 10336
\n
\n
\n\n
\n\"Hibernate\"\n\"Eclipse\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
You'll need to do this with a cookie (search the forums for many examples). A fairly insecure mechanism, but it will do what you ask (assuming the same user uses the same PC to access your site and they don't clear down cookies).
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRavi Kiran Va\n
\n
\nRanch Hand\n
\n
Posts: 2234
\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"Redhat\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thank you paul . \r
\r
I found the script with respect to this requirement .\r
But please tell me how this particular line can be useful in this ??\r
\r
Calling a Javascript function on a checkbox (Remember Me) on to the form .\r
\r
\r
\r
But can you please tell me what is the meaning of this line with so many parameters cookie.setMaxAge(365 * 24 * 60 * 60);\r
\r
Thanks .\r
\r
\n

Save India From Corruption - Anna Hazare.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 31
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
This is stating the max age of the cookie for 1year i.e.,\r
365 days* 24 hour s* 60min *60secs\r
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nAuthor\n
\n
Posts: 12617
\n
\n
\n\n
\n\"IntelliJ\n\"Ruby\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
There's only one parameter there, it happens to be an arithmatic expression.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/591466/Web-Services/java/hyperlink-working", "domain": "coderanch.com", "file_source": "part-00626-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nmy hyperlink is not working. (Web Services forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nmy hyperlink is not working.\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nsharon ch\n
\n
\nGreenhorn\n
\n
Posts: 1
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 12 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I use Tomcat + perl cgi to write a website. The cgi activates a server code in language C. The C process and generate a zip file for the user. A file is different for different users. \r
\r
Here is the problem. The site is working. cgi accepts user's input with method POST but the hyperlink is not working. I am not sure if there is some descriptor or something I don't know that I didn't do. Anyone has any idea?\r
\r
Sharon
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/528562/XML/Jing", "domain": "coderanch.com", "file_source": "part-00559-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nJing (XML forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\"Logo\"\n\n
\n
\n\n\n\n\n\n\n\n\n\n
\n\"granny\"\n \n\"book\n \n\"thread\n \n\"advertise\n \n\"polymorphism\"\n\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\n\n\n\n\n\n\n\n\n
\n\"thread\n \n\"building\n \n\"book\n \n\"meaningless\n \n\"advertise\n
\n
\n\n
\n
\n
\n
this forum made possible by our volunteer staff, including ...
\n
Marshals:
\n
    \n
  • Campbell Ritchie\n
  • Tim Cooke\n
  • paul wheaton\n
  • Jeanne Boyarsky\n
  • Ron McLeod\n
\n
Sheriffs:
\n
    \n
  • Paul Clapham\n
  • Liutauras Vilda\n
  • Devaka Cooray\n
\n
Saloon Keepers:
\n
    \n
  • Tim Holloway\n
  • Roland Mueller\n
\n
Bartenders:
\n
    \n
\n
\n
\n
\n
\n
\n

\n\nJing\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 72
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\"Mark\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hey All,\n
\n
Does anyone know where there is some good solid info on Jing? I need it to do some XML Validation inside of a Java App. When I go to the API page there are a bunch of libraries but no API!? Also, no one seems to have provided any decent documentation on how to use the dang thing? Also, if anyone knows any better alternatives to Jing that would be appreciated I need something that handles Relax rng.\n
\n
Thanks,\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 28371
\n
\n
\n99\n\n
\n
\n\n
\n\"Eclipse\n\"Firefox\n\"MySQL\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\"Mark\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Do you refer to this page? Jing\n
\n
If so, then sure there's documentation on how to use it. It starts like this:\n
\n\t\t\t

\n\t\t\t\tThat page wrote:Once you have installed a suitable Java runtime, you can run Jing by using the command:\n
\n
java -jar jing.jar options schema XMLfile...

\n\t\t
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJohn Lark\n
\n
\nRanch Hand\n
\n
Posts: 72
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\"Mark\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Isn't that command referencing the command line? I was trying to do ti from within the java app... I think at this point I am actually move towards MSV. Which appears to also support Relax NG I like that its made by sun, and some of the forms I have read seem to indicate its better maintained.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 734
\n
\n
\n7\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\"Mark\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
These three ingredients would suffice to get validation going for relax ng schema.\n
\n
[1] Add jing.jar to the classpath. That probably is what everybody would do at the first instance.\n
\n
[2] Then this is crucial. Let the system knows the whereabout of the schema validating engine for the purpose.\n
\n
[2.1] If the rng schema is written in compact syntax, do this.\n
1
2
System.setProperty(SchemaFactory.class.getName()+\":\"+XMLConstants.RELAXNG_NS_URI,
    \"com.thaiopensource.relaxng.jaxp.CompactSyntaxSchemaFactory\");
\n
[2.2] If the rng schema is written in xml syntax, do this instead.\n
1
2
System.setProperty(SchemaFactory.class.getName()+\":\"+XMLConstants.RELAXNG_NS_URI,
    \"com.thaiopensource.relaxng.jaxp.XMLSyntaxSchemaFactory\");
\n
[3] Instantiate the schema factory for relax ng explicitly.\n
1
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
\n
With the above, it should be ready to do the validation as what we would proceed with wxsl, not much difference.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\n\n\n\n\n
\n
You have to be odd to be #1 - Seuss. An odd little ad:
\n
Smokeless wood heat with a rocket mass heater
\nhttps://woodheat.net\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\nreply\n
\nreply\n\n
\n
\n
\n
\n
\n
    \nBookmark Topic\nWatch Topic\n
  • New Topic\n
\n
\n
\n\n
\n\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/266594/certification/PGJC-mock-exam", "domain": "coderanch.com", "file_source": "part-00830-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nPGJC mock exam question (OCPJP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nPGJC mock exam question\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nShaili Merchant\n
\n
\nGreenhorn\n
\n
Posts: 27
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Given the following class definitions, which expression identifies whether the object referred to by obj was created by instantiating class B rather than classes A, C and D?

class A {}
class B extends A {}
class C extends B {}
class D extends A {}

OPTIONS:
A: obj instanceof B
B: obj instanceof A && !(obj instanceof C)
C: obj instanceof B && !(obj instanceof C)
D: !(obj instanceof C || obj instanceof D)
E: !(obj instanceof A) && !(obj instanceof C) && !(obj instanceof D)


Please help me to understand the question.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nKelvin Chenhao Lim\n
\n
\nRanch Hand\n
\n
Posts: 513
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The question is asking you how you can check whether obj is an object of class B (as opposed to an object of any of B's subclasses or superclasses).
\n

SCJP 5.0

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMeher Parveen\n
\n
\nGreenhorn\n
\n
Posts: 25
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The answer has to be A. If the object obj has been instantiated using class B, it will return a true on only 2 checks, those being:
obj instanceof B
obj instanceof A

All other instanceof checks will fail anyways.

We cannot choose option B, since an object of class A will also return true for this case!

Hope this is what you wanted to know.
-Meher
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nShaili Merchant\n
\n
\nGreenhorn\n
\n
Posts: 27
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Ok..If the question is to ask how the \"obj\" object would be an object of class B \"ONLY\" then

I suppose there are 2 ways in which object B can be instantiated
1)A a=new B();
2)B b=new B();
and the third way is to create a reference of type B
3)B b=new C();

So according to me inorder for the object to be created by instantiating
class B only, the correct option should be A and B

Let me know if I am wrong..
Thanks
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nKelvin Chenhao Lim\n
\n
\nRanch Hand\n
\n
Posts: 513
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Meher Parveen:
The answer has to be A. If the object obj has been instantiated using class B, it will return a true on only 2 checks, those being:
obj instanceof B
obj instanceof A

All other instanceof checks will fail anyways.

We cannot choose option B, since an object of class A will also return true for this case!

\n\t\t


Unfortunately, that's not the right answer. Perhaps this phrasing will help you understand the question better: suppose you know that obj can be an instance of any of A, B, C, or D. How would you write an if statement whose body gets executed only if obj is a B object (and not an A, C, or D)? In other words, how would you fill in the condition below?
\n

SCJP 5.0

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nCory Max\n
\n
\nRanch Hand\n
\n
Posts: 83
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n



OPTIONS:
A: obj instanceof B

- This will return true for C as well so is incorrect

B: obj instanceof A && !(obj instanceof C)

- This will return true for A as well so is incorrect

C: obj instanceof B && !(obj instanceof C)

- CORRECT - I think

D: !(obj instanceof C || obj instanceof D)

- This will return true for A as well so is incorrect

E: !(obj instanceof A) && !(obj instanceof C) && !(obj instanceof D)

- This will return false for B as well so is incorrect

Am I correct?
[ December 06, 2007: Message edited by: Cory Max ]
\n

There are only 10 types of people in this world... Those who understand binary and those who don't.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nShaili Merchant\n
\n
\nGreenhorn\n
\n
Posts: 27
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Alrite..Now I have finally understood the question completely and correctly.
Earlier interpretation of mine didnt consider the other alternatives...
Now I suppose the answer should be C only.
Please confirm it.
Thanks
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\ndhwani mathur\n
\n
\nRanch Hand\n
\n
Posts: 621
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi All

After going through all the post
as above i think the answer is
A,B,C,D .........i dont know
if i am right or not....
may be i have misunderstood the question
please let me know.

i am realy confused with the above. :roll:

Thanks in advance.
[ December 06, 2007: Message edited by: dhwani mathur ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nKelvin Chenhao Lim\n
\n
\nRanch Hand\n
\n
Posts: 513
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Yes, C is the correct answer. Cory posted an excellent and concise explanation by showing the counter-examples that apply to the incorrect options.

Dhwani, perhaps you aren't aware that \"obj instanceof Foo\" evaluates to true not only when obj is an instance of Foo, but also when it's an instance of any of Foo's subclasses. For example, if obj is a Car, then \"obj instanceof Vehicle\" will evaluate to true (since a Car IS-A Vehicle). That's why option E is incorrect: (obj instanceof A) will be true for B objects, so option E will reject objects of all four classes. See if the question makes sense to you now. Best of luck!
\n

SCJP 5.0

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
What's brown and sticky? ... a stick. Or a tiny ad.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/281667/java/jsp-displayed", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nonly half jsp displayed sometimes (JSP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nonly half jsp displayed sometimes\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 116
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,
Sometimes it doesn't display the complete jsp page. If i press the back button and see the jsp again it is displayed completely.
This occurs rarely.
Could there be any specific reason for this behaviour?
Please let me know if you have some inputs.
We are using Websphere 4.0.4 with IBM Http Server
Thanks & Regards,
Nijeesh.
\n

Thanks & Regards,<br />Nijeesh.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 88
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Nijeesh,
The first possibility could be that you are flushing the response buffer on those pages which are exhibiting the behavior.
Or perhaps you are returning from a custom tag with an int value of Tag.SKIP_PAGE
I'm sure there could be others, but these are two off the top of my head.
\n

SCJP '02, SCWCD '02, SCJD '08, SCSNB '09, SCEA '10

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nNijeesh Balan\n
\n
\nRanch Hand\n
\n
Posts: 116
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks you Thomas.
I don't have either of them.. Could there be any other possible reasons??
Nijeesh.
\n

Thanks & Regards,<br />Nijeesh.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 17
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The jsp page is displayed incomplete because the buffer size set will be less than the actual output. By default the buffer size is 8kb. if the jsp page's output is more than that then u need to increase the buffer size by setting it in the page directive as buffer=\"12kb\"(just an example).
I hope this solves ur problem
geeta
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 67753
\n
\n
\n173\n\n
\n
\n\n
\n
\n\n
\n\"Mac\"\n\"Mac\n\"IntelliJ\n\"jQuery\"\n\"TypeScript\"\n\"Java\"\n\"iOS\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Buffer size is most probably not the problem. If the buffer is too small to hold the whole page at once, the buffer will be flushed repeatedly as it fills and will not cause the page to be truncated.
The most likely cause is that an exception or other abortive event is being thrown after the buffer has been flushed at least once.
Carefully check through your logs for clues to find out what is happening to cause the JSP execution to abort prematurely.
hth,
bear
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,
I'm facing the same problem (jsp not fully displayed) and still have not been able to solve it.
What I'm doing is to bring into the page a Vector consisting of strings (each about 150 characters long), loop through its elements and print them on the page. The whole Vector is brought OK into the page, I checked it.
When the vector contains more than about 35 elements, the page is not fully displayed.
Changing the page buffer from its default value (8 kb) to 64 and subsequently 128 kb resulted in nothing at all being displayed in the page and a '500 internal server error' appearing on the browser window. It therefore seems to produce some effect, but I don't know what to make out of it.
Whenever the problem occurs, Tomcat complains about an exception in StringTokenizer, which I am using to manipulate the contents of the strings. This suggests some error in the JSP/HTML code; however, if this were the case, wouldn't the error have affected the whole page? After all, I'm doing exactly the same thing to all the strings in the vector. I don't understand how the code could work for the first 30 or so elements and _then_ get stuck.
By the way, I also checked the strings for characters like \"<\", \">\" etc. that could possibly interfere with the HTML in the page, but have found none. Also, I tested the page with both IE 6 and Opera 7.11 browsers and they display exactly the same output.
Any ideas?
Thanks in advance.
Constantine
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nBear Bibeault\n
\n
\nSheriff\n\n
\n
Posts: 67753
\n
\n
\n173\n\n
\n
\n\n
\n
\n\n
\n\"Mac\"\n\"Mac\n\"IntelliJ\n\"jQuery\"\n\"TypeScript\"\n\"Java\"\n\"iOS\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Have you performed a View Source to check what's actually being sent to the browser (as opposed to merely what it is displaying)?
bear
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 7001
\n
\n
\n6\n\n
\n
\n\n
\n\"Eclipse\n\"Python\"\n\"C++\"\n\"Debian\"\n\"Java\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
In my experience the most likely solution is simply that the page is taking too long to be sent from the server to the browser. IE, in particular, is terrible for just giving up listening if some internal timeout is exceeded.
Are you sending part of the page, then (for example) building the rest from a relatively slow database query?
If this is the case, one solution is to actually increase the buffer size beyond the size of your page, and then manually flush thhe buffer when you have built the whole page. Browsers are usually happier to wait longer for the start of a page than during the rendering of a page. If this doesn't work, consider fetching the database results into a temporary variable before any data is sent to the browser, then using this cached data in the page instead of a live query.
Or have I missed the point?
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nConstantine Pinakoulakis\n
\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks very much for the replies.
1. View source: I did do a 'view source' only to find out that the source matches the output displayed by the browser. The source ends abruptly in the middle of a <td> section.
2. The query to the database is done by a different class (I'm using a rather complicated MVC design). The results are stored in a vector, which is then passed as a parameter to the JSP in question, i.e. the JSP doesn't know about the database. For testing purposes, I added to the JSP code a statement that just prints the last element of the vector (that is to say the very last line of the query's result), and this particular line was printed properly. It seems that the data is there, but for some reason it does not make it to the browser when its length exceeds some limit. As I wrote in my first post, both Opera and IE6 behave _exactly_ the same way. I also tried to flush the buffer manually, but with no result.

Constantine
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 2
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Did you ever find a solution? I am having the same issue.Thank you
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
The only cure for that is hours of television radiation. And this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/u/271655/Rahul-Guliani", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nAll about Rahul Guliani\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n
\n\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Rahul Guliani

\r\n
\r\n
\r\n
Greenhorn
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n+ Follow\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nsince Aug 19, 2012\r\n
\r\n
\r\nMerit badge:\r\ngrant badges\r\n
\r\n
\r\n
\r\n
For More
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Cows and Likes
\r\n
\r\n
\r\n
\r\n
Cows
\r\n
\r\n
\r\n
Total received
\r\n
\r\n
\r\n
\r\n
\r\n
In last 30 days
\r\n
0
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Forums and Threads
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Recent posts by Rahul Guliani

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nCampbell Ritchie wrote:Try it and see what happens.

\n
\r
\r
Compile time error : "the local variable 'event' may not have been initialized"\r
\r
But, 'event' is initialized inside try-block, then, why this error? And, if the scope of local variable is within the try-block, then, we've declared event outside try-block, can't we just declare outside try-block and initialize inside try-block?\r
\r
Edit:\r
So i tried on other blocks than try, like inside for-loop, or some other functional blocks, we have to initialize the local reference variable to NULL, then only we can use that local variable outside the block. Like in the example below :\r
\r
But, i'm not getting it why we have to initialize the local variable to NULL, as inside the block the reference of that local variable is ultimately given to some other concrete object. Then, why first we are giving reference to NULL??\r
\r
P.S.: Sorry for grammatical mistakes, m not a native English speaker ;)\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
10 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nCampbell Ritchie wrote:\r
If you need to initialise it to something, the only thing which won't produce an Exception is null.

\n
\r
\r
Why we've to initialize local variable 'event' to null? Why not just declare 'event' without initialization?\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
10 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nRahul Guliani wrote:\r
\r

\n
\r
\r
Hey! @Campbell can you clear my another doubt :/ it's not related to array or list. Why we declare \"MidiEvent event = null\" outside try bock, why not directly declare n initialize inside try-block as \"MidiEvent event = new MidiEvent(message, tick)\". :/\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
10 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nThanks @Campbell for your response No there is not any difference. But i confused here why in the book they used ArrayList, whereas they could simply use Array. The code would be much simpler. yeah i know ArrayList can grow dynamically, but there is no need to it.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
10 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nHey! i wrote this code for making a beat-box as written in head first java, instead of using using ArrayList for check-boxes, i applied simple array.\r
Will there be any difference in the final app.\r
\r
\r
\r
\r
\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
10 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n
\n\n\n\n" }, { "url": "https://coderanch.com/t/330340/java/layout-manager", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nwhich layout manager to use (Swing / AWT / SWT forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nwhich layout manager to use\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 21
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi all,
I've 4 comboboxes, 4 labels for comboboxes and one text field and two buttons. I am planning to add all these to panel. I'll add panel to a frame. I'm planning to use borderlayout for frame. Which layout manager will be suitabel for panel, if I add the above specified components to it. I don't want to use absolute positioning...since components will get disturbed with resizing. I think even flowlayout will not be appropriate. All suggestions will be appreciated.
Thanks,
Srilatha.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 4
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi Shrilata,
I too faced a similar problem and being an anateur I found layout managers a hopeless part of Java.
But the panelname.setLayout(null) is ideal and gives great looks as you can place components where desired and resizing of frame/window does not affect the components.
The components can be placed by using setBounds as in
Yourcomponent.setBounds(x,y,width,height) and then adding the component to the panel by saying panelname.add(yourcomponent)
Regards,
Ameet
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 4
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
hi srilatha,
can u tell me how u are going to place the components.
i suggest u to use separate panel for combobox, separate panel for label and use vertical layout(avialable free in the net).
Add the two panels to an outer panel in east and west.in another panel add the textfield to the center.
Add the two buttons in a separate panel using flowlayout.add this panel and textfield panel to another panel in north and south.
Add the 2 outer panel to an another outer panel in north and south.
Add this panel to the frame in center.
If u want the vertical layout class, mail me to this id
[email protected]
bye.

------------------
sashkamal
\n

sashkamal

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 48
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by srilatha malip:
Hi all,
I've 4 comboboxes, 4 labels for comboboxes and one text field and two buttons. I am planning to add all these to panel. I'll add panel to a frame. I'm planning to use borderlayout for frame.
Thanks,
Srilatha.

\n\t\t

Hi,
I would add each Combobox with its Label to a Panel with a FlowLayout. I asume the two buttons are a \"Ok\" and a \"Cancel\" Button. So I would add this two buttons also to a panel with a
Flowlayout. For the main Panel I would use a GridLayout with five rows. Next I would add all Panels and the TextField in the desired order to the main Panel. Or perhaps you like to seperate the Ok/Cancel Panel from the oders by using another Panel with a BorderLayout (adding the Ok/Cancel Panel to NORTH and the GridLayout Panel to CENTER).
I am also an amateur. It tooks some time to unterstand how to use the LayoutManagers and to recognice the different advantages but i think its worthy to learn.
Hope this helps.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
You can't expect to wield supreme executive power just because
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/266656/certification/locks-threads", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nlocks in threads (OCPJP forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"thread\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n

\n\nlocks in threads \n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 331
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,

I am not able to understand this passage from K&B, Can you please help me understand this:

\n\t\t\t

Every object in Java has a built-in lock
that only comes into play when the object has synchronized method code. When
we enter a synchronized non-static method, we automatically acquire the lock
associated with the current instance of the class whose code we're executing (the
this instance). Acquiring a lock for an object is also known as getting the lock,
or locking the object, locking on the object, or synchronizing on the object.
Since there is only one lock per object, if one thread has picked up the lock, no
other thread can pick up the lock until the first thread releases (or returns) the lock.

\n\t\t


my understanding is like this..that when a set of statements are to be executed in an atomic manner, except for one thread all other threads should not have access to the atomic section, and so the thread that executes the atomic section(synchronized method) takes up a lock...

[ December 10, 2007: Message edited by: Vishwa Nath ]
[ December 10, 2007: Message edited by: Vishwa Nath ]
\n

Blog

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Water proof donuts! Eat them while reading this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/48632/Struts/Action-Form-passed-execute-null", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nAction Form being passed to execute is null (Struts forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"advertise\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nAction Form being passed to execute is null\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 32
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have a simple 3 text field form, that I fill in and hit submit. I get null ponter errors when trying to extract the data on the form. I tested the form object that gets passed to the execute() method and it is null. Not sure why that would happen.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 17734
\n
\n
\n302\n\n
\n
\n\n
\n\"Mac\"\n\"Android\"\n\"IntelliJ\n\"Eclipse\n\"Spring\"\n\"Debian\"\n\"Java\"\n\"Ubuntu\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 20 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Double check your action mapping and make sure that there is a valid value for the name attribute.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
You can't have everything. Where would you put it?
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/348505/java/Ideas", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nAny Ideas ??? (Servlets forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"building\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nAny Ideas ???\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nsr ke\n
\n
\nGreenhorn\n
\n
Posts: 4
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
We want to build an Application using JSP and Servlets in Websphere environment.
Our application will have about 150 tables.
One method we are considering is to have the Servlet as the controlling module, JSP for the presentation. All the business logic will be placed in a bean which will be accessed from JSP.
It will be very helpful if you can suggest any other possible methods to implement.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 5
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 24 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
why dont you follow J2EE specifications for best results.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/355381/java/Query-Port-Number", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nQuery about 'Port' Number?? (Servlets forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nQuery about 'Port' Number??\n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nBikash Paul\n
\n
\nRanch Hand\n
\n
Posts: 342
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi all friends,
My tomcat(4.0.1)is running on Port:8080 and Port:80 .I want to know why it is running on Port 8080 and 80 why not 10,20,50,70,60,1000,2000 etc.My weblogic server are running on Port:7001 and Java web server on Port:8080.I know that we can change the port number by modifing the configuration files of all server for example tomcat server.xml.Actually I want to know how peoples are fix the port numbers(what concept behind it).For fixing the port numbers what factors should be consider.
Regards
Bikash
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nManish Hatwalne\n
\n
\nRanch Hand\n
\n
Posts: 2596
\n
\n
\n\n
\n\"Android\"\n\"Firefox\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Port numbers below 1024 are reserved, and generally should not be used for any non-standard services. You can read more abt all this in Douglous Comer's books series.
HTH,
- Manish
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nBikash Paul\n
\n
\nRanch Hand\n
\n
Posts: 342
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi manish,
If Port Numbers below 1024 are reserved then how my Tomcat(4.0.1) is running on Port:80.Can u plz give me the url of Douglous Comer's books series so that I can Take guide from there.
Regards
Bikash
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nWilliam Barnes\n
\n
\nRanch Hand\n
\n
Posts: 1067
\n
\n
\n2\n\n
\n
\n\n
\n\"IntelliJ\n\"Spring\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I quick search of the internet gives me this.
\n

Please ignore post, I have no idea what I am talking about.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nChris Mathews\n
\n
\nRanch Hand\n
\n
Posts: 2713
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Manish Hatwalne:
Port numbers below 1024 are reserved, and generally should not be used for any non-standard services. You can read more abt all this in Douglous Comer's books series.
HTH,
- Manish

\n\t\t

Just because ports are reserved does not mean you can't use them or that you need to use them for the reserved purpose.
If I want to run SMTP (typically port 25) over port 443(HTTPS) then I happily can. The problems arises from the fact that firewalls and most clients will be expecting traffic on 443 to be HTTPS traffic and not SMTP traffic.
The reason that Tomcat is running on port 80 is because someone (you?) decided to use the default HTTP port which is perfectly fine, especially since Tomcat generates HTTP traffic. The main benefit to doing this is two fold: 1) it is firewall friendly and 2) users don't need to specify the port number in their browser.
[ October 21, 2002: Message edited by: Chris Mathews ]
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nAsher Tarnopolski\n
\n
\nRanch Hand\n
\n
Posts: 260
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
i guess you can change the port number you want tomcat to be connected to in the server.xml file.
\n

Asher Tarnopolski\r
SCJP,SCWCD

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nBikash Paul\n
\n
\nRanch Hand\n
\n
Posts: 342
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi all friends,
I think all of u r not getting my point what actually i want to know.I want to know upon what factors Port numbers are decided or I can decide any numbers for Port just like 5,7,10,20,23,24 etc. or Is there any restriction or any rules for selecting Port Numbers for any server it may be Tomcat or Weblogic or Java web server.
Regards
Bikash
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nJuanjo Bazan\n
\n
\nRanch Hand\n
\n
Posts: 231
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\n\t\t\t

Originally posted by Bikash Paul:
I want to know upon what factors Port numbers are decided or I can decide any numbers for Port just like 5,7,10,20,23,24 etc. or Is there any restriction or any rules for selecting Port Numbers for any server it may be Tomcat or Weblogic or Java web server.

\n\t\t


You can decide to use the port number you want. You dont have any restrictions, but as the previous messages said, the ports under 1024 are reseved for some default behaviours, so you can make use of it to make things easier:
For instance, lets say HTTP: you can set your http server in the 67243 port(its not mandatory to use any concrete port), but then, people connectinng to your webserver will have to know that number in order to write it in the address bar of the browser http://yourip:67243/ . As the http default port is 80, the applications dealing with http (as your browser) point directly to that port, so if you set your web server to listen through the 80, people will connect to you just with http://yourip/
You should also be aware that if you use a port<1024 it may cause you conflicts if it is been used for any system application/process: 25 for mail server, 21 for ftp, etc...
So although you \"don't have\" restrictions, typically you will use <1024 ports for their standard/default uses, and >1024 ports for your ad-hoc apps.
HTH
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nManish Hatwalne\n
\n
\nRanch Hand\n
\n
Posts: 2596
\n
\n
\n\n
\n\"Android\"\n\"Firefox\n\"Ubuntu\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Juanjo has already explained a part of the answer, you should not use ports below 1024 for non-standard services that your server may provide.
Here is a link to the first volume of D Comer's book. There are 3 volumes and if you read and understand all 3, there's nothing more to networking!
Comer's book
HTH,
- Manish
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nTim Holloway\n
\n
\nSaloon Keeper\n\n
\n
Posts: 28486
\n
\n
\n210\n\n
\n
\n\n
\n
\n\n
\n\"Android\"\n\"Eclipse\n\"Tomcat\n\"Redhat\"\n\"Java\"\n\"Linux\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
There are 2 parts to the answer:
1. General info about use of ports < 1024.
In the dim early ages of TCP/IP, it was thought that one way to make systems more secure was to place the \"dangerous\" services in a zone where only an administrative (root) user could use them. Thus, in many OS's, if I found that the main webserver on port 80 wasn't up, I could try, as an ordinary user, to startup a bogus webserver, but my bogus server wouldn't be allowed to start because access to port 80 was denied.
A related condition is that since many servers operate in a many-clients/one-server mode, the server port number is fixed so that it can be easily found, but each client is using a (high-numbered) dynamically-assigned port ID. So these ports can be assigned attributes more appropriate to clients.
2. The whole concept of which port number to use is based on convention. When you specify a URL beginning with \"http:\", for example, your computer's resolver knows that unless you specifically supply a port number, Port 80 is the port you mean. This is known as a \"Well-Known Port Number\", and you can find lists of them with any Internet search engine. The Well-Known port is just a convention, however, and (subject to the <1024) rule and whatever firewalls may be in the way) actually any port number can be used.
Conventionally, while the main http port is port 80, certain alternative ports are common for secondary servers and test servers. For HTTP, ports 8000, 8008, 8080, and 8180 are popular. Since Tomcat is often paired with Apache, a common configuration is to have Tomcat serve HTTP on port 8080 or 8180 for test and debug purposes, but have Apache forward production requests which were made through port 80.
Note that Tomcat, like many servers, is not limited to using only one port. You can add and/or change ports and services in the Tomcat server.xml file.
\n

Often the most important part of the news is what they didn't tell.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nBikash Paul\n
\n
\nRanch Hand\n
\n
Posts: 342
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 22 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi all friends,
Now it is clear to me.Thanks for ur lots of guide.
Thanks
Bikash
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
I will suppress my every urge. But not this shameless plug:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/406721/java/order-classes-loaded", "domain": "coderanch.com", "file_source": "part-00317-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nIn which order are classes loaded? (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"building\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nIn which order are classes loaded?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 115
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have defined a class Father and another class Son extending Father. They both have static blocks. When creating the first Son-instance always the static block of the Father-class is executed and after that Son's static block. As far as I understand that means that the Class Loader loads the Father-class first and then the Son-class. Right? If so:

Will that always be that way? Is there a specification for the JVM that will garantie such a performance or is it unpredictable in what way classes will be loaded on an arbitrary system?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 209
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 17 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Dear Reader,
I guess it follows the hierarchy of the Son object.
If 3 extends 2 extends 1..
then static method of 1 will be called first (if any).. and then down the hierarchy.. Not too sure though..
\n

With Best Regards,\r
Shyam Prasad Murarka

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
It's exactly the same and completely different as this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/401014/java/SE-SDK", "domain": "coderanch.com", "file_source": "part-00830-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJ2SE SDK (Beginning Java forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"book\r\n \r\n\"meaningless\r\n \r\n\"advertise\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJ2SE SDK\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 2
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi,
I am new to Java development and trying to create dev environment on my laptop. The suggestion by the book it to download j2sdk1.5.0 from java.sun.com site. I can only find JDK 5.0 or j2sdk1.4.2_09. Is JDK 5.0 and j2sdk1.5.0 same development kit? If not could you point me to the site where I can download 1.5 or greater J2SE SDK.
thanks,
Nuj
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 3
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Yes, Java 1.5.0 and Java 5.0 are the same thing, and SDK is the equivalent of JDK.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nNuja Nuja\n
\n
\nGreenhorn\n
\n
Posts: 2
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thanks Paul. I went through few exercises and it worked. I was confused, since the asked me to look for j2SDK1.5.0 directory for setting the PATH env variable to point to \\bin under that. I was working under j2sdk1.4.2_09, I will switch to jdk1.5.0 environment.

Thanks,
nuj
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 3061
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 19 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
If you have any more questions, feel free to post them here.

Layne
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Enjoy the full beauty of the english language. Embedded in this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://www.coderanch.com/t/432547/certification/EntityManager-joinTransaction-application-managed-EntityManagers", "domain": "coderanch.com", "file_source": "part-00626-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nEntityManager.joinTransaction() only for application-managed EntityManagers? (OCEEJBD forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"advertise\r\n \r\n\"book\r\n \r\n\"thread\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nEntityManager.joinTransaction() only for application-managed EntityManagers?\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 757
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
EntityManager.joinTransaction()\r
\r
Is this valid for application-managed entity managers only?\r
Can we use it with the container-managed entity managers too?
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 383
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi. Page 47, the very bottom:\r
\n\t\t\t

The methods close, isOpen, joinTransaction, and getTransaction are used to manage\r
application-managed entity managers and their lifecycle.\r

\n\t\t
\r
\r
Raf
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nTreimin Clark\n
\n
\nRanch Hand\n
\n
Posts: 757
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thank you Raf \r
\r
I think you can kindly answer my this question too. \r
\r
Treimin
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nRaf Szczypiorski\n
\n
\nRanch Hand\n
\n
Posts: 383
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Done ;-) Hope the answers make sense...\r
\r
Cheers.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 14
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 15 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
This may also help you.\r
\r
Page no 46 of \"ejb-3_0-fr-spec-persistence.pdf\" Entity Operaions\r
\r
\r
/**\r
* Indicate to the EntityManager that a JTA transaction is\r
* active. This method should be called on a JTA application\r
* managed EntityManager that was created outside the scope\r
* of the active transaction to associate it with the current\r
* JTA transaction.\r
* @throws TransactionRequiredException if there is\r
* no transaction.\r
*/\r
public void joinTransaction();
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/t/609433/Jobs-Offered/careers/hands-training-bangalore-india", "domain": "coderanch.com", "file_source": "part-00747-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nLooking for thorough hands on training [bangalore,india] (Jobs Offered forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nLooking for thorough hands on training [bangalore,india]\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 95
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 11 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I need to learn Java web development. Self learning is tiresome and, most training institutes don't deliver developer level training.So, i'm looking for an experienced trainer who can teach Struts along with unit testing.\r
Expectation is to be able to build demo applications (will get to spring and hibernate later) after training.\r
My requirement is thorough hands on training on the following:\r
Struts 2,\r
Junit 4 (automated with ant)\r
\r
In other words, need development training.\r
\r
Location: Bangalore.\r
\r
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "https://coderanch.com/u/175209/Epifanio-Guzman", "domain": "coderanch.com", "file_source": "part-00331-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\nAll about Epifanio Guzman\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n
\n\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"granny\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"book\r\n \r\n\"polymorphism\"\r\nwidth=\"150\"\r\nheight=\"150\"\r\n/\r\n \r\n\"thread\r\n \r\n\"advertise\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Epifanio Guzman

\r\n
\r\n
\r\n
Greenhorn
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n+ Follow\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nsince Jun 24, 2008\r\n
\r\n
\r\nMerit badge:\r\ngrant badges\r\n
\r\n
\r\n
\r\n
For More
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Cows and Likes
\r\n
\r\n
\r\n
\r\n
Cows
\r\n
\r\n
\r\n
Total received
\r\n
\r\n
\r\n
\r\n
\r\n
In last 30 days
\r\n
0
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Forums and Threads
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Recent posts by Epifanio Guzman

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n Rob is right.\r
usually the rancher do more specific questions, i mean, a specific error, or ask some direction...\r
we are here to help, rephrase your question to we can give you more specific answer. Maybe it is a book do you looking for? or a link...\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n:wink: i think this is already resolved.\r
But here's my answer. Maybe it could be helpful for someone.\r
\r
Like Paul, i think it should be in a class.\r
\r
1.- jsp\r
send param using text fiel, in FORM:\r
<input name=\\"txtStrGeneric1\\" type=\\"text\\" id=\\"txtStrGeneric1\\"></td> \\n";\r
\r
using param:\r
url ..... +"&StrGeneric1="+StrGeneric1;\r
\r
2.- jsp\r
get param from text fiel.\r
try{StrGeneric1 = request.getParameter("txtStrGeneric1");}\r
catch(Exception e){}\r
\r
get param from a param.\r
try{StrGeneric1 = request.getParameter("StrGeneric1");}\r
catch(Exception e){}\r
\r
\r
3.- in JSP\r
using StrGeneric1 whit value\r
AClass obj = new Aclass();\r
obj.setStrGeneric1 (StrGeneric1);\r
\r
Listcc = obj.getListOfSelect(); //when ends 4.-\r
\r
4.- the class AClass\r
db_Local <--- a SQL class\r
\r
using code like:\r
java.sql.PreparedStatement pstmt= db_Local.Connection.prepareStatement ("select * from Table where StrGeneric1=?");\r
pstmt.setString (1,Value);\r
pstmt.executeUpdate();\r
\r
--->return a List for example.\r
\r
5.- JSP\r
iterate the list.\r
show data to client browser.\r
\r
:thumbup: This is only like reference, there are many frameworks to do the job.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nJSP\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nhi my friend.\r
\r
I explain to web application. The same way to simple java project.\r
\r
1.- download Jdbc jar, EJ. mysql-connector-java-5.1.7-bin.jar from verndor page. same way for MSSQL server, Oracle, etc\r
http://dev.mysql.com/downloads/connector/j/\r
\r
1.- create new project\r
2.- build path > configure buil path > Libraries... > Add external jar > mysql-connector-java-5.1.7-bin.jar > open\r
this step attach lib to /WEB-INF/lib/\r
3.- create classes\r
http://www.clubdesarrolladores.com/articulos/mostrar/61-jdbc-y-mysql\r
\r
i hope this information to serve you like base.\r
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n hey guys, let me understand\r
1.- ----> execute query\r
2.- 100...record<----db\r
3.- loop\r
each record get mail----> send mail\r
4.- close\r
\r
It is correct?\r
\r
In step 2.- is where it breaks.\r
or where?\r
My first suggestion: is consult db like when consult by page. retrieve first block, second block...etc\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n ja ja a HeyMark, you did it !!\r
all time, here, we looking for the way to solve our technical problems and frecuently we forget laugh a little. Ok \"pros\" know how do the job.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nSpring\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n Ok, thanks kevin for your suggestion.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nSpring\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nDharmenrda kumar wrote:congrates Bro... \r
next week i have to also give the exam so will you please tell me what mock test you have given during preparation?\r
is there any Drag & Drop type question?\r

\n
\r
\r
there are very useful mock exams, but i dont know if i can paste url here without consider them like spam. You acan learn about a topic, or objective and take the exam by chapter or full.\r
probably you dont need it already, but other people can find them useful.\r
send me an email and i reply with the url\r
\r
best regards !!\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nRohit Mehta wrote:As suggested above- 'Spring in Action' is really a good point to start with.\r
\r
You can start with one module at a time - like DI, MVC, DAO, Restful Services etc. There are tutorials on net for each of them.\r
Happy learning.\r

\n
\r
\r
you are right. And using Spring in Action book, i think a find a road. The book and your comments are really good\r
\r
thanks guys!!\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nSpring\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nJeanne Boyarsky wrote:

\n

\nWouter Oet wrote:And I copied that straight out of a Wikipedia page. So no guarantee that it is any good.

\n
\r
Did you mean to post something else here? This is all you have and not the wikipedia info.

\n
\r
\r
sorry guys, i didn't get it\r
we are still about pools\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

\nMark Spritzler wrote:I like a lot of professional sports athletes.\r
I think the majority of them should stay in jail....\r
\r
I appreciate the effort to give information.\r
but I really do not understand your point...\r
the question is to know about certifications for development with Spring,\r

\n
\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nSpring\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n go ahead champion!!\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\n

short called: OCEJEE6JSPSD ;-) with 84%.

\n
\r
\r
congratulations champion !!\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nthks !!\r
I appreciate your recommendation(Spring in Action, 3rd Edition)\r
I'll start with this book.\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nSpring\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nspring source\r
\r
1.- certified spring profesional\r
\r
2.- certified spring web application developer\r
\r
3.- certified spring enterprise integration specialist\r
\r
I would like to know your opinions.\r
pros?\r
cons?\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nSpring\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\nhi guys\r
\r
I want to learn spring framework, but i don't know where to start\r
\r
some speak of Groovy, AOP, OSGi\r
I'm confused\r
\r
Best regards\r\n
\r\n
\r\nshow more\r\n
\r\n
\r\n
\r\n
13 years ago
\r\n
\r\nSpring\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n
\n\n\n\n" }, { "url": "https://coderanch.com/t/88505/Deploying-Dynamic-file", "domain": "coderanch.com", "file_source": "part-00017-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nDeploying Dynamic file (JBoss/WildFly forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"thread\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nDeploying Dynamic file \n

\n
\n
\n
\n
\n
 
\n
\n
\n
\nHL \n
\n
\nGreenhorn\n
\n
Posts: 4
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 21 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I have a war file for my application ex. test.war in jboss (dir c:\\jboss) which i put in deploy directory and it works fine. However i need to create a dynamic image file in my application and want to set the location where the image should be copied in my properties file.
I suppose it should be possible to create dynamic files in my application. What path/location do i set for dynamic files ? Do i have to update any configuration files.
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
It runs on an internal combustion engine. This ad does not:
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/533159/java/java/Unchecked-Exception-Xlint", "domain": "coderanch.com", "file_source": "part-00687-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nUnchecked Exception( -Xlint) (Java in General forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"building\r\n \r\n\"advertise\r\n \r\n\"meaningless\r\n \r\n\"book\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nUnchecked Exception( -Xlint)\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 17
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
\r
\r
I'm getting the warning as: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List\r
\r
Kindly throw some light on this.\r
\n

kingmansoor

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 4568
\n
\n
\n9\n\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
That's because List is a generic type, but you aren't using generics. If you change List to List<String> everywhere the warnings will go away. Remember they're only warnings...but you should always use the generic version (unless you have to work with legacy libraries that don't).
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMansoor Khan\n
\n
\nGreenhorn\n
\n
Posts: 17
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Thank you Matthew.
\n

kingmansoor

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nSheriff\n\n
\n
Posts: 22821
\n
\n
\n132\n\n
\n
\n\n
\n\"Eclipse\n\"Spring\"\n\"Chrome\"\n\"Java\"\n\"Windows\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 13 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
This might be worth reading over.
\n

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6\r
How To Ask Questions How To Answer Questions

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
It's a tiny ad only because the water is so cold.
\r\n
Smokeless wood heat with a rocket mass heater
\r\nhttps://woodheat.net\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n\n\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/212553/JSF/java/JSF-IBM-EAD", "domain": "coderanch.com", "file_source": "part-00397-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nJSF with IBM's EAD4J (JSF forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"book\r\n \r\n\"advertise\r\n \r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"building\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nJSF with IBM's EAD4J\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nRanch Hand\n
\n
Posts: 61
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 18 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Hi All,

Can we use both the IBM's EAD4J framework and JSF framework in a single project? Mainly we are trying to use teh capabilities of the JSF in the presentation layer and fit into EAD4J.

If so what are all the dependencies and limitation we might face.

Thanks in Advance...

Inr...
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
\r\n
We need your help - Coderanch server fundraiser
\r\nhttps://coderanch.com/wiki/782867/Coderanch-server-fundraiser\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n\n" }, { "url": "http://www.coderanch.com/t/506821/Spring/Spring-security-file-downloads", "domain": "coderanch.com", "file_source": "part-00619-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000", "content": "\n\n\n\n\n\n\n\n\n\nSpring security on file downloads (Spring forum at Coderanch)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n\n\n
\nPie\n
\n
\n
\n
\n\n
\nFAQs\n
\n\n\n
\n\n
\n
\n
\n
\n
\n\n\n\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\"permaculture\r\n\r\n\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n\n\n\n\n\n\n
\n
\n
    \n
  • \nPost Reply\nBookmark Topic\nWatch Topic\n
  • \nNew Topic\n
\n
\n
\n
\n
\n\n
\n
\n\nprogramming forums\nJava\nMobile\nCertification\nDatabases\nCaching\nBooks\nEngineering\nMicro Controllers\nOS\nLanguages\nParadigms\nIDEs\nBuild Tools\nFrameworks\nApplication Servers\nOpen Source\nThis Site\nCareers\nOther\nPie Elite\nall forums\n
\n
\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\"thread\r\n \r\n\"meaningless\r\n \r\n\"building\r\n \r\n\"book\r\n \r\n\"advertise\r\n
\r\n
\r\n\r\n
\n
\n
\r\n
this forum made possible by our volunteer staff, including ...
\r\n
Marshals:
\r\n
    \r\n
  • Campbell Ritchie\r\n
  • Tim Cooke\r\n
  • paul wheaton\r\n
  • Jeanne Boyarsky\r\n
  • Ron McLeod\r\n
\r\n
Sheriffs:
\r\n
    \r\n
  • Paul Clapham\r\n
  • Liutauras Vilda\r\n
  • Devaka Cooray\r\n
\r\n
Saloon Keepers:
\r\n
    \r\n
  • Tim Holloway\r\n
  • Roland Mueller\r\n
\r\n
Bartenders:
\r\n
    \r\n
\r\n
\r\n
\n
\n
\n
\n\n\n
\n

\n\nSpring security on file downloads\n

\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nGreenhorn\n
\n
Posts: 14
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
We have a Java/Spring application that has a secure area that we allow users to download certain files, if their LDAP entry has the proper role(s). It seems to work just fine - EXCEPT - if you right click and copy the link to the file, then go to another browser session and paste the link into the browser address bar, you get the file download dialog box, as if you are logged in and have been checked for role assignment (even works from an entirely different PC). What is missing from this application that would allow an un-authenticated user to merely copy in a url to the file and be able to download it?\r
\r
BTW - I am not a well versed Java programmer and have never used Spring. I have looked in the Spring in Action book, but many of the things in the security chapter are not in this particular application. I do see some filters and filter mappings in the web.xml (none are the file download directory), and I see some security: intercept-url in the security.xml - and those seem to have the directories in question and proper LDAP role(s) for access.\r
\r
Can someone point me on a trouble-shooting methodology to track down this embarrasing failure in this application? Thanks.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n\n
\nBartender\n\n
\n
Posts: 4121
\n
\n
\n\n
\n\"IntelliJ\n\"Spring\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Can you post the general directory structure of your app?\r
\r
What is the filter mapping in the web.xml? It could be that the path of the downloads directory isn't covered by the filter mapping.\r
\r
What are the intercept url entries in the security.xml? Again, the path of the downloads directory may not be covered, or it may fall under something like filters=\"none\" and have security turned off.\r
\r
\n

-Nate\r
Write once, run anywhere, because there's nowhere to hide! - /. A.C.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Brothers\n
\n
\nGreenhorn\n
\n
Posts: 14
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
The files for download are located in webapp/dataDownloads/secure directory.\r
\r
Security.xml has security:intercept-url entries for patterns of /dataDownloads/secure/xyz - where xyz is a subdirectory, with Active Directory roles allowing the link to be hidden if role is not assigned to that user. Example might be subdirectories of finance, admin, or maintenance. User would have to log in and have the admin role to see the links to the files for download in the admin subdirectory.\r
\r
Web.xml has filter mappings for /data/* and /secure/* - but not /dataDownloads/*\r
\r
Hope this helps. It looks to me like the dataDownloads directory is not included in the filter mappings at all.\r
\r
Thanks for any input on this.\r
\r
Mark
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nNathan Pruett\n
\n
\nBartender\n\n
\n
Posts: 4121
\n
\n
\n\n
\n\"IntelliJ\n\"Spring\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
I agree - perhaps the mapping for /data/* was really supposed to be for /dataDownloads/* ? Or is there another directory called /data ?
\n

-Nate\r
Write once, run anywhere, because there's nowhere to hide! - /. A.C.

\n
\n
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nMark Brothers\n
\n
\nGreenhorn\n
\n
Posts: 14
\n
\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Okay, I added the following to the web.xml file:\r
\r
<filter-mapping>\r
<filter-name>springSecurityFilterChain</filter-name>\r
<url-pattern>/dataDownloads/*</url-pattern>\r
</filter-mapping>\r
\r
I can still do a copy of the link and get to the file without the application forcing a login. I thought the filter mapping would make any request for a file in the /dataDownload directory go through the user login. Are there other parts to the Spring security framework that have to be redone or completed to get this to work properly? The change to the web.xml file is the only thing I have done to this point (since it seemed like it was an obvious omission).\r
\r
Thanks.
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
\nNathan Pruett\n
\n
\nBartender\n\n
\n
Posts: 4121
\n
\n
\n\n
\n\"IntelliJ\n\"Spring\"\n\"Java\"\n
\n
\n
\n
\n
\n
\n
\n\nposted 14 years ago\n\n\n
    \n
  • \n\n
  • \n\n\n\"send\n\n
    \nNumber of slices to send: \n\n
    \n
    \nOptional 'thank-you' note:
    \n\n
    \n
    \n\nSend\n
    \n
    \n
    \n
    \n
  • \n\"Quote\"\n
  • \n\"Report\n
\n
\n
\n
Depending on the configuration, you may need to change other things...\r
\r
What does the <security:http> configuration look like in your Security.xml?\r
\r
You said it has <security:intercept-url> entries for patterns like /dataDownloads/secure/xyz... are the files you're trying to access in one of these directories specified?\r
\r
Is there a <security:intercept-url> pattern for /** or /dataDownloads/** to define a default configuration?\r
\r
Are there any patterns that have a filters=\"none\" attribute? - this basically \"turns off\" security for that path.\r
\r
Do you see anything like ROLE_ANONYMOUS listed in the access lists? This would mean that anonymous access is enabled...\r
\n

-Nate\r
Write once, run anywhere, because there's nowhere to hide! - /. A.C.

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
 
\n
\n
\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\nDon't get me started about those stupid light bulbs.\r\n
\r\n
\r\n\r\n
\n
\n
\n
\n
\n
\n
\r\nreply\r\n
\r\nreply\r\n\r\n
\r\n
\n
\n
\n
\n
    \r\nBookmark Topic\r\nWatch Topic\r\n
  • New Topic\r\n
\r\n
\r\n
\r\n\n
\n
\n
\n
Similar Threads
\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n" } ]