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 ?
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 =...
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...
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>...
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 =...
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 ...
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) {...
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 ?
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.