Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. WhiteSox

    simple question on parsing HTML

    What I want to do is very simple. For the following HTML file, I want to use javax.swing.text.html.parser to retrieve the text between <a> and </a>. Sample code please, even a piece does help. <html> <body> <a>test</a> </body> </html>
  2. WhiteSox

    Undefined entity?

    I have an XML file. Whhen I parsed it, I always got the exception: Reference to undefined entity &quot;&char1;&quot; Factually, I don't care this undefined entity. Is there any way to get it around? and, what's the final solution? thanks in advance,
  3. WhiteSox

    I have an XML file. Whhen I parse

    I have an XML file. Whhen I parsed it, I always got the exception: Reference to undefined entity &quot;&char1;&quot; Factually, I don't care this undefined entity. Is there any way to get it around? and, what's the final solution? thanks in advance,
  4. WhiteSox

    A Simple Task

    I need some code to do this: when I click a cell of a table, the row in which that cell resides will change background color. I need this code to work for both IE and NN. thanks for your input.
  5. WhiteSox

    Easy One?: Syntax to return hashtable from a method?

    u'd better return Cleection instead of Hashtable. let the caller cast it if it wanna.
  6. WhiteSox

    the TAB

    I want to use JavaScript and DHTML to create a tab (click Tools --> Internet Options..., you will see what the tab is). Is there any available code? thx in advance,
  7. WhiteSox

    file locking in Java

    <B>System:</B> Linux <B>Question:</B> how to do file locking stuff? <B>What I have done:</B> Synchronizing all objects that will be operating files. any suggestion?
  8. WhiteSox

    Where to find Microsoft's Reference on JavaSript?

    trust me, that reference is pretty cool. it's comprehensive and not hard to understand (well, sometimes needs some tries). but be advised that's JScript reference, which is not 100% same as JavaScript implemented strictly by Netscape. So all stuff in that reference works well for IE, but some...
  9. WhiteSox

    Tool-tip in javascript

    here: http://www.dynamicdrive.com/dynamicindex5/index.html enjoy
  10. WhiteSox

    JavaScript Collaspe Menu

    here: http://www.dynamicdrive.com/dynamicindex1/index.html
  11. WhiteSox

    File List by Date/Time Created

    well, File.list() just returns file names in a String[], no time info included. i think u should sort them based on time by yourself. take a look at the following piece: String[] FileName = File.list(); for (int i=0; i<FileName.length; i++) { File fileObj = new File(FileName[i]); long...
  12. WhiteSox

    an interesting Q on popup window

    i found how to solve this problem. see the window.open() syntax: oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace]) set the last parameter 'bReplace' to false. it will guarantee the new page shows up in previously opened window. for further info, please refer to...
  13. WhiteSox

    Where to find Microsoft's Reference on JavaSript?

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jslrfjscriptlanguagereference.asp BTW, M$ call it JScript
  14. WhiteSox

    an interesting Q on popup window

    in page 1, i have a sentense <a href=&quot;javascript:window.open(url, '')&quot;> every time i click this link, it will pop up a new window. what i want to see is: the first time i click it, it pops up a new window. for the second time, it doesn't pup up another new window. instead, it uses the...
  15. WhiteSox

    3 Questions on Textarea

    I have 3 questions on TextArea: 1) Suppose a textarea contains a couple of lines and i want it to scroll down to the last line. is there any code compatiable to both IE and NN? (I know for IE, i can use the following to scroll down one page...
  16. WhiteSox

    Why Tomcat launches many Java process?

    When I starts Tomcat, i notice (ps auxww | grep tomcat) that Tomcat launches many (about 30+) Java processes. What are they for? can I reduce them to 5-10 processes? thx,
  17. WhiteSox

    About Runtime

    Vepo, Your code does really work for me, though it doesn't look good. i know it's J's fault, not yours. Thanks a lot for your hint. I've figured out what's preventing me from running the samples @ at http://www.javaworld.com/jw-12-2000/jw-1229-traps.html. add &quot;proc.waitFor()&quot; before...
  18. WhiteSox

    About Runtime

    old question, new variation. we all know the following piece does work well: String cmd = &quot;ls&quot;; Process proc = Runtime.getRuntime().exec(cmd); here, the external command is simple enough. now, i wanna play with pipe. for example, i wanna execute &quot;ls -l | grep -i abc&quot; with...
  19. WhiteSox

    Need help launching external executable files from a Java program

    your code is incomplete for successfully executing an external application. here's a piece of sample code. the variable 'extCommand' is the external program name (of course, make sure the right path is applied). this code does work for running external Perl program. i do believe it works for...
  20. WhiteSox

    How to upload a file from a HTML page to Servlet?

    the html code looks like: <form method=&quot;post&quot; action=&quot;http://xxx/servlet/receiver&quot; enctype=&quot;multipart/form-data&quot;> <input type=&quot;file&quot; name=&quot;doc&quot;> </form> my question is: how to receive the file on server side (java servlet)? thanks a lot in advance

Part and Inventory Search

Back
Top