| |
| |
| |
|
Page: 1 2
Comments:
<0> hello, im currently building a java web application with Spring and Tomcat 5, but i can't get the normal <welcome-page> web.xml tag to work, anyone ever had problems like this? <1> meh.. and he leaves before I can offer a suggestion.. impatient people, not bothering to even wait a full hour for #java to answer ;) <2> how to make a thimble of 1/3.8 ? <2> 1 chance out of 3.8 <2> "throw" it and win or not <2> if would be 1 out of 4 <2> random(4) <2> and if its 1/4 then win <2> ...but 3.8... ? <3> so look into java.util.Random. <3> and write your own method around it. <2> i imported Random how do i use it <3> check the API docs. <2> this is crap <2> why now Math.random <2> why not
<4> hehe.. <3> agh: because its a bit useless? <2> math.random ? <3> from the top of my mind such a cl*** does exist though. <3> or rather; method. <3> but if it is random numbers you're after then the Random cl*** is IMO your best bet anyway. <5> how come i am able to p*** private instance variables to methods in another cl*** in main? since main is static isn't outside of any cl***? <2> cl***.getPrivateVariable <3> dga: without more context thats impossible to answer. main isn't outside of any cl***. <2> Cl***1.method(Cl***2.getPrivateVariable()) <3> dga: the only thing special about main is that the JVM will start a thread to execute it. <3> agh: you're talking nonsense. <2> Instance1.method(Instance2.getPrivateVariable()) <2> Instance2.getPrivateVariable() returns the private variable you want to return of Instance2 <3> dga: be sure you're not mixing up instance variables with cl*** variables. <3> agh: no it doesn't. <4> for one thing, don't capitalize instance names <2> well <4> second, i don't see what's the big deal.. seems you're just describing a method of a cl*** accessing a variable.. that's perfectly legal.. <4> in your example, it's actually instanc2 that's calling the method, then you push a copy of it for instance1.. <4> nothing unusual there <3> Apart from the fact that its lousy programming (private is private for a reason) and not what dga was asking about. <4> hrm.. <4> please explain it to me.. <5> http://javafaq.mine.nu/lookup?4&wb=true <-i'm not understanding why the println in main doesn't give compiler error <4> what's wrong now dga? <4> (i'm way too lazy to follow links..) <5> i thought main was not local to any particular cl*** <4> so it belongs to the aether? what? <3> dga: I just explained above. <3> dga: main is part of the cl***, its a method like any other. The special thing... see above. <4> lion-o.. i think he may be thinking of global methods like in C/C++.. <6> heh <4> dga, you should really lean the language before you ask such elementary questions.. <6> thinking in C/C++ when you should be thinking in Java is pretty stupid <4> yeah, next he'll be asking why + works on strings.. <3> more like why ("name" == "name") doesn't seem to match :P <4> well, i got nothing against the guy, but he definitely needs some tough love in this instance :) <4> btw, sorry about the physics reference.. <4> so when do you guys think java will die? <4> i noticed nokia phone now run on symbian os.. that made me wonder <4> and after all these years there are still no java processors? i thought this was the master plan.. hrm <4> then i run the sun vm, which claims it's a jit, but it's dog slow still.. who's running this company? <4> go look at the sunw stock chart.. in jan'02 it was at 15, then dropped to 5 and stayed at 5 since then.. <3> it would seem we have a troll in here. Thats good to know. <4> i think sun is a good case study for how technology is not the deciding factor in the computer business.. <3> well, fortunatly there are plenty of people who have a wider focus and don't suffer from tunnel vision :P <4> who? <3> see? thats what I mean :) <4> hehe <4> people have dollar signs in their eyes.. <3> and some people have mud in their eyes. <3> I think you're calling the kettle that he's black :P <4> multi user d&d? <3> dude, you should spend less time trolling on irc and actually go out in the open for a chance. It helps your chances of following serious and non-serious conversations a /lot/. <4> hrm, at least i'm not judging somebody and presuming to everything about them from a 5 min irc conversation, i think you should take your own advice, buddy <3> bpj1138: suffering from amnesia too? <4> i get on irc once in a blue moon, how much do you irc? <3> you just judged an entire company based on flawed data :) <4> huh? a stock chart is flawed?
<3> depends on the way you look at it and the kind of conclusions you draw from it. <3> need I explain that too? its amazing... So... a 3 year company makes a major profit in its 2nd year, and loses some in its second. Now I look at the 2nd year and claim the company to go on booming streak? I don't think so. Anyway, work it out, have fun, troll on :P <4> i can understand why you're upset that sun is doing so badly, i am too, but don't take it out on me.. i'm not the enemy <4> and if you don't believe my conclusions, go read "dealers of lighting".. <4> lightning.. <4> the computer business is full of politics and stupid people.. that's nothing new <4> hell, take the pc for example, everybody and their grandma knew it was a "piece of ****", but it won the market.. <4> ok, y'all have a nice day.. <7> Hello #java! <6> morning <1> morning <8> morning <3> afternoon <6> hey <1> afternoon ;) <9> hi <10> afternoon :) <9> hi asriel <9> http://home.arcor.de/blackwell/missing.jpg <11> wtf do you mean "Unicode"? WHICH ENCODING?! <12> Anyone here use websphere? <12> welcome <12> Anyone here use websphere? <11> woo <11> I just got our webapp running under Jetty 6 <11> Slightly painful, but not too bad. Exposed some liberties I was taking <1> rhowe: I couldn't get JSF to work under jetty <11> wlfshmn: Sun's JSF? <1> no, myfaces <11> wlfshmn: Hm.. myfaces worked for me, at least for some simple stuff <11> wlfshmn: I never did get around to using it in anger <11> wlfshmn: The reference implementation does some weird stuff and needs a configuration tweak to Jetty 5, not sure about 6 <1> rhowe: I'm unsure if it's actually a JSF problem of if it's a general JSP problem (I lack non-JSF JSP), but didnt' bother following thorugh, when everything worked well enoguh in tomcat for now ;) <11> wlfshmn: Ah well, if you ever want to have a stab at getting it going, I'll try and help out, although the jetty IRC channel's probably a better ebt <11> wlfshmn: My main problems were that I didn't have all the dependencies for Hibernate (I guess the old jetty had them included, but not the new one) <11> wlfshmn: And they'd changed their JAAS stuff a bit, so I needed to tweak my LoginModule slightly <11> wlfshmn: Oh, and the Jetty configuration's pretty much totally different <1> rhowe: I'm fairly sure I have all dependencies included since the same war works in tomcat, and I don't have any ext libraries in tomcat <11> wlfshmn: Also, do you use a logging API? <1> I don't deal with JAAS, since I don't auth agianst anything exotic <11> wlfshmn: AD + OpenLDAP here :) <1> rhowe: I don't, but I have configured the simple logger jetty calls for, and commons-logging and log4j are both used by 3rd parties <1> (and thus, libs are included) <11> wlfshmn: you didn't include jcl104-over-slf4j or whatever it is? <11> wlfshmn: (in place of commons-logging) <1> not in place of, both at the same time <11> jcl104-over-slf4j provides the commons-logging API, but directs all requests to slf4j <1> I don't remember the error message ofhand, but it cartainly wasn't a Cl***DefNotfound atleaast ;) <11> wlfshmn: hang on, lemme try my JSF test page.. <11> XML Parsing Error: prefix not bound to a namespace <11> hmmm :) <1> rhowe: no, that not the one I had ;) <1> rhowe: mine was something about access to deffered variables or some such <11> wlfshmn: It's OK, I'm being stupid.. <1> rhowe: probably put up by el, jasper or the jsf libs <1> anyway, no need to waste time on it now, I'm fine with tomcat for development and I'll look back into jetty when it comes time to make a real deployment <11> wlfshmn: *shrug* it just seems to be byp***ing the JSF servlet altogether here, and returning the JSF page <11> wlfshmn: and yes, I am accessing it via the .faces URL, not the .jsp one :) <11> wlfshmn: Servlet mapping is in web.xml etc.. oh well, another day <1> indeed <11> wlfshmn: I'm just happy to have the webapp I need up and running :) <11> wlfshmn: Tomorrow, it's time to add some more pages to it <11> wlfshmn: Whole ***load of wheel-reinvention to be done tomorrow :) <1> I've got some more patching to do to catch up, then I need to figure out why acegi didnt' like me the other day and get authentication running <13> sydney rome <13> or sydney, australia <14> uhmm sydney bristow <14> hehe
Return to
#java or Go to some related
logs:
Valerie Bertaneli
#linuxhelp #c #AllNiteCafe #linuxhelp #squid #javascript #linux play wmv2 ubuntu #linux
|
|