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 TouchToneTommy 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: *

  • Users: LuckyKoen
  • Content: Threads
  • Order by date
  1. LuckyKoen

    JMX and Websphere

    I have a java application with an MBean. This mbean has a getProperty and setProperty method to change properties in this application at runtime. When I deploy my application on Websphere, where can I see my MBean and call my 2 methods ?
  2. LuckyKoen

    Regex question

    I am trying to replace one string with another one. The string that needs to be replaced can't end on a letter or number. I have the following regex at the moment : myString.replaceAll("cloud[^a-z0-9A-Z]", "sun"); As expected, this regex will skip the word "clouds" but will replace the word...
  3. LuckyKoen

    Refactoring

    I currently use Eclipse to make my java projects. Eclipse allows refactoring of class names, and it will even update references in other classes and xml files to this class. However, you can only refactor one class at a time as far as I know. Are there any tools available that can refactor a...
  4. LuckyKoen

    Apache crashes with PHP

    I installed PHP 5 with a mysql extension enabled on Apache 2 which runs fine on my laptop with Windows XP. When I want to use the same configuration on a Windows 2003 server, apache crashes when I try to start it. It just hangs and nothing happens. This happens only when I enable the MySql...
  5. LuckyKoen

    Empty table cell taking up space

    I have a table that looks like this : <table cellspacing="0" cellpadding="0" border="0"> <tr> <td bgcolor="#9999FF"> One </td> </tr> <tr> <td></td> </tr> <tr> <td bgcolor="#9999FF"> Two </td> </tr> </table> In my browser the...
  6. LuckyKoen

    Javascript editors

    What editor do you use do write your Javascript code ?
  7. LuckyKoen

    File classpath

    In my webapplication, there is a directory JavaSource for my java classes and a directory WebContent for my .jsp and .xml files. I want to open one of the xml files in my Action class . Until now I used the full path (C:/ .../project/WebContent/myXMLFile.xml to open this file. Having this url...
  8. LuckyKoen

    load XML Document

    I have a small issue with reading XML documents. My code works fine in IE - where it shows an alert box with my XML file in it - but not in Firefox. What could be the problem ? function loadXML(file) { var moz = (typeof document.implementation != 'undefined') && (typeof...
  9. LuckyKoen

    Firefox issue, selecting table cells with ctrl key down

    I have a small problem with firefox : When I select several cells in a table with click-and-drag while holding the ctrl-key down, Firefox highlights the selected cells by placing a dark blue border around them. Is there any way of disabeling this feature ? My table already has border...
  10. LuckyKoen

    Struts and XSL Transformation

    I have a servet that transforms an xml and xsl file into a new html page. This new html page is generated as an output stream and shown in my browser. I want to use this servlet in a struts application and I have placed my transformation code in an action method. It seems however that the...
  11. LuckyKoen

    Integer changes to String

    I have some experience in Java but I am new to JavaScript. What confuses me is that you don't have to declare the type of a variable when defining it. Here is an example of how this is sometimes hard for me to work with : function getInt(anInteger) { if (anInteger == 10) { return anInteger...
  12. LuckyKoen

    Adding a value to a variable

    I want to assign the position of the first my-element that is greater than $start-position. However, the following code adds the position of every element to the variable's value and I end up with a long list of numbers. How do I only select the first position() ? <xsl:variable name =...
  13. LuckyKoen

    &lt;xsl:param&gt; basics

    I'm trying to get a basic understanding of xsl. I've read through a few xsl tutorials but the use of xsl:param is still unclear to me. 1) What exactly is the select attribute for.. Is placing the value in the select attribute the same as putting the value between tags like this : <xsl:param...
  14. LuckyKoen

    Selecting a range of paragraphs in WordML

    I have a WordML document of which I would like to select a certain heading. WordML however only consists of paragraphs that follow eachother. A paragraph (<w:p>) consists of paragraph properties (<w:pPr>) and text (<w:t>). A basic WordML document would look like this : <w:p> <w:pPr>...
  15. LuckyKoen

    String weirdness

    I have a script that works with data of a Word document and I use the OLE module for this. I have a problem when trying to read all the paragraphs and comparing each of them with a paragraph my $paragraphs = $doc->ListParagraphs; foreach my $paragraph (in $paragraphs) { my $text =...
  16. LuckyKoen

    Looping through double arrays

    I have some trouble with showing data in an array. I have 2 arrays and I put one array in another : my @array1; my @arraygroup push (@array1, "a"); push (@array1, "b"); push (@arraygroup, @array1); This seems to be no problem for perl, when I use the following loop I get " ab " as a result ...
  17. LuckyKoen

    A question about eq

    I have a file with a few lines of text in it. I read each line and put them in an array named @lines : open FILE, "file.txt"; while(<FILE>) { push @lines,$_; } close FILE; Then I want to look for a certain line named "Hello". my $text = "Hello"; foreach $line (in @lines) {...
  18. LuckyKoen

    Substituting a dot

    I have $string that contains "1.2.3" I would like to get the . out but with $string =~ s/./_/g the numbers are also replaced with _ instead of only the dots. How do I make sure that only the dots are replaced and not every character in $string ?
  19. LuckyKoen

    Get bookmarks out of a Word document

    I would like to get the items of the table of contents out of a Word document along with their corresponding reference number (like _Toc123456) for each item. So far I have found various ways to get the _Toc numbers out of a Word document but I can't do much with just the numbers. Are there any...
  20. LuckyKoen

    XSL Transformation through a servlet

    I have a servlet that uses the TransformerFactory to produce html from an XML and XSL document. I only want to show a specific part of the XML document however, and which part depends on another function in the servlet. I'm not sure how to approach this problem. Should I first edit the xsl...

Part and Inventory Search

Back
Top