| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> yw <1> this is something I find I never do with an IDE any more. Great to have silly mistakes underlined for you before you get too far ahead of yourself <2> int[] x = new int[100]; <-- i didnt understand this statement <0> then read the manual <3> heh yeah <0> the left bit is a declaration <4> iMar: both smsie and calchas have already explained it to you. I'd suggest www.thejavatutorial.com here. <1> iMar: int[] x; does not create an array. it simply declares a variable x that can hold an array of ints. You still have to create the array with new <0> the right bit is instantiation of the object <4> this part: http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html <0> the tutorial has a section on arrays, <0> tada <1> it's something that trips most people up at least briefly. It's not immediately intuitive that you have to instantiate an array <4> smsie: true, but still. I can't help wonder if this isn't simply because people tend to jump ahead. If you're familiar with objects and then learn that an array is basicly a container its somewhat implied. IMO ofcourse. <1> Lion-O: indeed. If you come from languages like C though, it's not so clear <0> we all jump ahead, and we all get pointed back now and then, it's ok
<0> see all later <5> <input name="file1" type="file"> in iexplorer <5> submit file1=c:\asd.txt <5> and in firefox <5> submit file1=asd.txt <5> i am using an servlet and get the parameter file1 in one case file1=c:\asd.txt and the ather file1=asd.txt ??? how to corect that <5> pls help is this a problem of servlet or browser ? <5> in one case works fine and other FilenotFound exception <4> simple; write a parser which controls the p***ed parameter. <4> controls / checks. <5> ok and if file1=asd.txt what to parser ?? <4> kley: how should I know? <5> in case file1=c:\asd.txt works fine and the other not <4> depends on the whole program. <4> kley: so test if the parameter includes a full path, if not manually append it. <5> one more question in the begining of servlet should i use File myfile = new File( (request.getParameter("file1"))); or File myfile = new File( getServletContext().getRealPath(request.getParameter("file1"))); <5> the seconde is more normal i think <5> ?? <4> use whatever works for you. Impossible to tell with such little context. <5> ok thanks <5> if i use File myfile = new File( getServletContext().getRealPath(request.getParameter("file1"))); in firefox works fine he returns file1 =1.txt thats ok but in explorer doesnt work <5> because in webaps the is no c:\... <5> how to fix that? <4> hopefully you do realize that a servlet runs serverside. So a browser wouldn't be able to influence it that much. <4> besides; I already told you how you might be able to fix this. If you're not planning to pay attention then I'll just have to return the favor. <4> lol <4> wlfshmn: so thats why you don't use wireless? <6> Lion-O: I used to use cordless, but they tend to have crappy battery capacity, and as such I need to change several times throughout the day <5> ok can do that , this mean i cant open a file uotside the webapps and how to open if i got only file1=1.txt i dont know there the file are ? <6> Lion-O: besides, I'm a bit of a quasi-audiophile when it comes to headphones ,) <5> ?? <4> wlfshmn: ach so... I have a pair of wireless ones but they have rechareable batteries. Makes it much easier on me; esp. since I can charge them on its stand. <6> Lion-O: oh, mine had too, replaceable rechargable LiIon packs, but a pack lasted ~4 hours, I could have a single pack charging in the staiton while using the phones, and it took more than 4 hours to charge one. so, after 8 hours, my runtime decreases sharply towards zero, which i hit around 12h.. so after 12h, I have no audio <4> ha ha ha ;) <6> Lion-O: then the headphones broke and I never bothered gettign new wireless ones <4> wlfshmn: I never use my phones for that long <6> Lion-O: I do. not every day ofcourse (well, not in a single location anyway), but weekends or long workdays.. <7> hmm, anyone knows how to cause jasper to create a subreport on a new page? (the subreport is in a group which has the "start on a new page" option checked) , still the damn thing doesnt create it in a new page :( <8> hey, last night compiling/running a specific prog was working. i just tried running it now(compiles fine) but i get this damn error Exception in thread "main" java.lang.NoCl***DefFoundError: PRAcoursework <8> any ideas?:/ <3> lion-o <3> I hope I haven't angered you too much yesterday that you won't want to help me today <3> so I take that as a 'you won't'? <3> ok <9> anyone here use java_cup? <4> there. The scoot is all filled up with gas, ready to go tomorrow :) <3> hey Lion-O <3> wb <7> where are you heading to? <9> http://nomorepasting.com/paste.php?pasteID=73977 << can't work out what im doing wrong :( <4> MbGone: work :) Its quite a ride and I don't want to waste time over having to get some gas before heading there ;) <3> I find gas prices down the street from me to be lower than any other gas station in state. <3> right now it's a $1.86 <9> per gallon? <3> yes sir <9> be thankful you're not in the uk <7> oh, have fun <3> haha <9> lemme work out current price in us galons...
<3> how much is it there <3> you don't have to <9> just over $6 per us gallon <3> lol <3> wwooooww <9> just under per litre <3> yeah <3> geez <3> I would walk everywhere or take the buss <3> *bu <9> google ".98 per litre in us dollars per us gallon" <9> (UK 0.98) per litre = 7.29921273 U.S. dollars per US gallon <3> bus* damn, still drunk <3> right <9> so, be happy ;) <3> heh I am <9> whats the q? <5> i need help in here http://javafaq.mine.nu/lookup?1&wb=true why the File.isDirectory() allways return false <5> the result is on my local mashine http://212.0.217.13:8080/servletsPrj <5> pls help <4> I guess it does because well... File isn't a directory. <4> getRealPath("") would indicate as much IMO. <5> ? web-inf is not a directory <5> ? <5> you know that is it <4> kley: As I said: check the API docs to see what those methods actually do. <4> also setup a testcase.. For example "System.out.println(mf.toString());". Don't ***ume. <5> getServletContext().getRealPath("") return the project path <4> uh huh <4> and how would you know? <5> i tryied it .tostring <5> and its corect E:\workspace\servletsPrj\WebContent\ <5> but in .project and ...blabla of tomcat <4> Also note that your syntax style is a bit buggy.. "String []lf =mf" is ugly. "String[] lf = mf.list()". <4> well, no. Not buggy; sloppy. <5> look here http://212.0.217.13:8080/servletsPrj <4> that won't work, 8080 is blocked by my firewall. <5> its my local mashine <5> 80 is ok ? it will take some time <4> don't bother. <9> anyone used javacup and/or flex <5> getServletContext().getRealPath("") return E:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\servletsPrj <4> kley: well, thats one. Now continue testing on the other parts. You can do the same in the loop(s). <4> eventually you'll come across the cause of the problem. <5> strabge look at this WEB-INF <5> D:\eclipse-SDK\eclipse_3.2_plugins\WEB-INF <5> E:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\servletsPrj> <5> D:\eclipse-SDK\eclipse_3.2_plugins\WEB-INF doesn't exist maby it of cause of exadelstudio m'm working with ?? <5> why when i chose to download the file from FileLoader servlet(http://javafaq.mine.nu/lookup?2&wb=true) it changes the name an a filename become "FileLoader" allways pls help <4> that made very little sense. <5> ok look at http://212.0.217.16/servletsPrj/ pls and try to download that ms_word file <5> will see... <5> ?? you got it ? <4> I'm not going to connect to totally unknown sites. <5> oh.. <5> ok the problem is that i doesnt meter what file i open the result name of file is "FileLoader" ,but it shouldnt <5> can you help ? <4> time for a testcase then. <4> same as before. <5> ok i did run it in debuging mode and i dont understant why the result file name is ..."FileLoader" <4> hence the testcase. Start checking variable values in between. <5> ? <4> whats there so hard to understand about that? you have a variable, its being changed here and there, so check the new value(s) during the process. <4> better yet: cut the program down to size and start testing individual components of it. <8> ok my question may sound silly but i have ie 5 items in the same line in a Flowlayout... though i want the 7th item to not be in the same line, but on the next on.. is there a way to jump to another line or something like that? <8> noone :/? <10> got x? <4> yeah! <10> about time <4> lol :-)
Return to
#java or Go to some related
logs:
network linux vmware host unreachable #chatzone invalid uninstantiatable type `(null)' in cast to `BonoboMDI' #linux #linux #linux #MissKitten #chatzone #linux eidleweisse
|
|