Martin Mikolajek

Greenhorn
+ Follow
since Jan 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Martin Mikolajek

Hello,
i am trying to create a new JDBC-Provider for MySql

Databasetyp : userdefined
Implementationclass error undefinded Impl.Class

the Driver-Location is : C:\MySQL\mysql-connector-java-3.1.14\src\lib\jdbc2_0-stdext.jar

what is the correct pathname for the

jdbc2_0-stdext.jar\javax\sql\XADataSource class ???
16 years ago
Hi,

I populate a Listbox with a TreeMap<Integer,String> and the Display of the entries works fine, but when i select a Item i get the Error Value is not a valid Option.
My set-method is defined public setWert(Integer sw) {}

can anybody help me ?

Greetings

Martin Mikolajek
17 years ago
JSF
Hello,

i think i will use IBM WebSphere Application Server Community Edition for preparing or is it better to use JBoss ???

Martin
Hello Everyone,

I have cleared SCWCD 1.4 with 85% 59 out of 69. I thank Javaranch for providing such a informative forum which helped me pass the certification.
I would also like to thank kathy sierra and bert bates for providing such a informative book.
Thanks also to Whizlab the Exam Simulator is really a great help for preparing.

I startet on 09/19/2007 with reading HFSJ
and from 09/24/2007 i tried all available Exam Simulator most time Whizlab
and Marcus Green's but i think (sorry Marcus) your Simulator is a little bit
to easy. Thanks to Peabody's Pattern Description they helped me really (83%).
The Exam-Simular here on JavaRanch is also fine.

i learned every day between 8 and 10 hours.

Thanks to all

What should i take next Enterprise Java Bean ?

SCJP 1.4
SCWCD 1.4

000-730 DB2 V9 Fundamentals
000-730 DB2 V9 DBA

000-285 IBM WebSphere Studio V5.0
000-255 IBM RAD for WebSphere V6.0
Hello,

i think you will take the 000-255 Certification.
Therefore i have the complete Question-Pool.

Greetings

Martin

I took the Cert with 96 %
Hello,

i am trying to convert a XML-File to HTML with JAVA

String filename = "C:\\Temp\\Zinsen_mit_Jdom.xml";
try {
Document doc = new SAXBuilder().build
(new FileInputStream(filename));
Source xmlfile = new JDOMSource(doc);
JDOMResult htmlfile = new JDOMResult();
Transformer tf = TransformerFactory.newInstance().
newTransformer (new StreamSource
("C:\\Temp\\Zinsen.xsl"));

tf.transform(xmlfile,htmlfile);

System.out.println("##### Ausgabe des html Dokumentes #####");
XMLOutputter outputter = new XMLOutputter();
outputter.output(htmlfile.getDocument(), System.out);
} catch (Exception e) { errMsg(e); }
}

Root element not set

java.lang.IllegalStateException: Root element not set
at org.jdom.Document.getContent(Document.java:408)
at org.jdom.output.XMLOutputter.output(XMLOutputter.java:369)
at org.jdom.output.XMLOutputter.output(XMLOutputter.java:203)
at dom.Java_mit_XSL.main(Java_mit_XSL.java:48)

That's my XSL-File
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt">
<xsl:output method="xml" />
<xsl:template match="/">

<xsl:apply-templates select="Zinsberechnung"/>

</xsl:template>

<xsl:template match="Zinsberechnung">
<xsl:apply-templates select="header">
</xsl:apply-templates>
<br/>
<TABLE border="4pt">
<TR STYLE="font-size:16pt;color:red">
<TD>Jahr</TD>
<TD>Betrag</TD>
<TD>Zinsen</TD>
<TD>Tilgung</TD>
<TD>Restwert</TD>
</TR>
<xsl:apply-templates select="body">
</xsl:apply-templates>
</TABLE>
</xsl:template>

<xsl:template match="header">
<h2>Laufzeit-Berechnung</h2>
<h3>Zinsberechnung vom : <xsl:value-of select="@Datum"/></h3>
Betrag: <xsl:value-of select="Kreditbetrag"/><br/>
Rate: <xsl:value-of select="Rate"/><br/>
Zinssatz: <xsl:value-of select="Zinssatz"/><br/>
</xsl:template>

<xsl:template match="body">
<TR STYLE="font-size:16pt;color:blue">
<TD><xsl:value-of select="jahr"/></TD>
<TD><xsl:value-of select="betrag"/></TD>
<TD><xsl:value-of select="zinsen"/></TD>
<TD><xsl:value-of select="tilgung"/></TD>
<TD><xsl:value-of select="restwert"/></TD>
</TR>
</xsl:template>
</xsl:stylesheet>

and this the XML

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Zinsen.xsl" ?>
<Zinsberechnung>
<header Datum="Thu Aug 02 18:54:37 CEST 2007">
<Kreditbetrag>50000.00</Kreditbetrag>
<Rate>5000.00</Rate>
<Zinssatz>5.00</Zinssatz>
</header>
<body>
<jahr>1</jahr>
<betrag>50000.00</betrag>
<zinsen>2500.00</zinsen>
<tilgung>2500.00</tilgung>
<restwert>47500.00</restwert>
</body>
<body>
<jahr>2</jahr>
<betrag>47500.00</betrag>
<zinsen>2375.00</zinsen>
<tilgung>2625.00</tilgung>
<restwert>44875.00</restwert>
</body>
</Zinsberechnung>


can anybody help me ???
what is wrong in my Files ??

Martin
Thanks

the wrong references was the Problem
17 years ago
JSF
Hello,
i can't set the values for the ListBox
here is my coding:

public List getDrinks() {
drinks = new ArrayList();
drinks.add(new SelectItem(new Integer(1),"Kaffee"));
drinks.add(new SelectItem(new Integer(2),"Tee",""));
drinks.add(new SelectItem(new Integer(3),"Milch",""));
drinks.add(new SelectItem(new Integer(4),"Kakao",""));
return drinks;
}
and this is the JSF definition
<h:selectOneListbox styleClass="selectOneListbox" id="drink" size = "1" value="#{pc_Welcome.mo_User.drink}">
<f:selectItems value="#{selectitems.pc_Welcome.mo_User.drinks.drinks.toArray}" />
</h:selectOneListbox>

and the Output of the Box looks:

javax.faces.model.SelectItem@xxxxxxxx
javax.faces.model.SelectItem@xxxxxxxx
javax.faces.model.SelectItem@xxxxxxxx
javax.faces.model.SelectItem@xxxxxxxx
xxxxxxx is the Reference to an Object (i think)

can anybody help me and tell me what i am doing wrong ???

Thanks
17 years ago
JSF
Hello,

has anybody already passed the IBM Certification 731 DB2 9 DBA ???
but which of the two IBM 257 or SUN SCWCD is better for job ?
Hello,

Today i took IBM 285 exam with 88 % and IBM 730 DB2 V9 Fundamentals with 70 % 45 out of 64. The 730 is really simple but it is requested for DB2 V9 DBA .

For 285 it was a great help the http://java.boot.by/icad-guide/ from Mikalai Zaikin and the Q/A from Itexamworld.com

Now my Question how much time do i need for preparing on SCWCD or is it better
to take the IBM Test 287 IBM Certified Enterprise Developer - WebSphere Studio, V5.0

Martin
i can't find the Mock-Test
Hello,
has anybody here experiences with this Certification and where can i get more Information and Study-Material ?
[Removed on braindump suspicion. Please private message Marc Peabody if you feel this moderation was made in error.]
[ March 03, 2007: Message edited by: Marc Peabody ]