| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> it should just provide some means to set the properties <0> either by setter methods or make them public static <1> but the getter/setter methods basically contain a body similar to MyInitServlet.getHost() right so they do know about them even if that line is performed within a private Host getHost() method in DBUtils <0> no
<0> public void init() { String host = ...; DBUtils.host = host; } <0> then somewhere in your webapp the DBUtils cl*** is used like <0> DBUtils.getConnection(); <0> then getConnection will use DBUtils.host to create a connection to that host <0> that way DBUtils doesn't have to have a reverence to the MyInitServlet <0> you could also set some System properties <0> which the DBUtils reads <0> just pick a solution <1> I'm following you now...i was confused at first because it seemed like we were instntiating a value in DBUtils from Init that may have been instantiated...but because it is static, it doesn't matter <0> yes <1> thank you very much for your help...going to do some editing know and see how it works! <0> ok
<2> Upgrading this laptop 256mb -> 1gb .. brb <0> Clackwell <3> Clack , got well ? <3> :P <0> clickediclackwell <4> anyone here able to help me with a problem i have encountered when trying to run xalan <4> i get the following error when trying to run my stylesheet:javax.xml.transform.TransformerException: a is not allowed in this position in the stylesheet! <4> if anyone is able to help me out with my xsl problem i am very thankful <5> Run your XSL through an XML validator. <4> i did <4> and it validates perfectly <4> the point is that i am using a contentmanagement system which runs xalan
Return to
#java or Go to some related
logs:
worlds longest pyton KARMNU TA RANDU #linux #chatzone #asm #mirc #linux pexxul #chatzone #AllNiteCafe
|
|