| |
| |
| |
|
Page: 1 2 3
Comments:
<0> which jsp are we talking about? <0> the ajax jsp, or the display jsp? <1> The ajax jsp <1> There is a service form which invokes the JSP for some specific information upon Page LoAD event <1> First invocation is fine, but the next invocation, just displays the AJAX JSP <0> I'm not sure what you mean <1> [Neurotic] - I have a HTML FORM where I am filling some form information using AJAX call to JSP <0> right <1> when I load the HTML for the first time, it works fine <0> and the first call gives you what you want (xml? html? json?) and then the second call.... does something? <1> yep <1> First call returns me an XML <1> Second load of the page, just executes the JSP invoked earlier <0> and the second call displays the xml on the page? <0> or gives back the same result? <1> Just the XML and not the whole HTML form
<1> The JSP is executed,but it doesn't show up in the context of the HTML form <0> sounds like an issue with your javascript <1> My application remembers that the last URL was the URL of the JSP <0> is that the solution? <0> or the issue? <1> That is the framework of our application <1> But that I think is the likely issue <0> does anyone know what a ANTLR (v3) error like this means: Decision can match input such as "LEFT_PAREN" using multiple alternatives: 1, 2 <0> I'm not sure what it means by 'mutiple alternatives' <0> actually.. I think I worked it out <0> nvm <0> I can see the ambiguity <0> wait :P crap.. that wasn't it <0> aha <0> got it <2> C++'s continue works the same way as java's continue ? <2> double checking <3> VictorEye: pretty much the same yes <2> thanks cognition <4> hello <0> hello <2> if you have a string let's say: "this is a string" <2> how do i copy it to other strings so that it just copies the words ignoring the whitespaces <2> so if we had " this is a string " then it would copy "this" into a string, "is" into another string, "a" and etc... <5> what is the easiest way to check if String is a number or a text (letters and possibly numbers)? <6> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#split(java.lang.String) <6> kandrei: try/catch with Integer.parseInt, Float.parseFloat, Long.parseLong or Double.parseDouble <5> I saw some generic method isNumeric(String) which did not work for me.... <5> saw it online somewhere <6> kandrei: not in java <6> vbscript has IsNumeric, php has is_numeric, javascript has isNaN, but no such method in java <6> such a test would pretty much require trying to parse the number anyway. so it's easier here to just parse it and catch failure <0> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Integer.html#parseInt(java.lang.String) <7> how bigger file we can upload through gmail? <8> whoops i been here for days <4> My father, 70 years old and with almost no contact to me, decided to break the communication silence between us for an emergency: He had pressed the shift lock key on his notebook. <9> lol? <10> haha <10> acidjnk: did you learn when to use capslock in that 50s secretaries cl*** you took? <4> Yes, we did: When we have to type at least three uppercase letters in a row. <10> do you ever do that now? <4> No, the rule was more like that we CAN press it with three letters, and HAVE TO with four or more, and four are rare. <11> beep <4> hello <11> hey <11> just the man I was looking for <11> I'm having trouble finding documentation on this and I know you will the answer :) <11> Can I use wildcards in the constructor of a java.io.File <11> ie, File f = new File(/blah/*.jpg); <4> no <10> acidjnk: so if you want to write LMAO, do you hit capslock? <4> Hm, that would be an ecomenical matter ... <4> egrep -i 'acidjnk.*LMAO' *java* <4> probably never happened before <11> acidjnk, how would I go about deleting *.jpg <11> I can't seem to find a concrete example <10> there's a list(Filter) method or something <4> You could list the files in the directory, then use a custom FileFilter with a simple regex implementation in the method, and loop through the files. <11> yah
<11> listFiles(FileFilter) <11> bingo <11> I can just list the files that I need <4> Oh, that's not what I meant, I didn't know about that! Much better! <11> I hate this, I don't touch java for 3 weeks then I have to do something really quickly and don't have time to refresh my memory <4> I just told you to use a FileFilter to give you more work and tease you a little, but here a FileFilter would really help. <11> hmm <11> FileFilter.accept(new File("*.jpg"); <11> make sense? <11> with the extra ) <11> or can a file not be instantiated with a wildcard? <10> you asked that already <11> theres very little doc available about wildcards <4> no, it cannot, and there are 4 or 5 other problems in that line. <11> so FileFilter does nothing for me here <10> quantum_: you're supposed to implement it <11> **** it, they're only going to use this in linux so ill just execute the process <4> it's like: for (File f : new File("mypath").listFiles(new FileFilter() { public boolean accept(File f) { return f.matches(".*\\.jpg"); } )) f.delete(); } <4> Probably did some brackets wrong. <11> yes I just realized FileFilter was an interafce <11> i need coffee <11> first day back from the holidays... <11> and im doing contracts on the side while i'm at work lol <11> how much vacation time did you guys take? <4> I didn't take a real vacation for years. Last summer I had a month where I had things hang loose a little as a replacement. <11> btw, it returns File[] <11> wow <11> i took 3 weeks <11> you need to move to Canada and enjoy the benefits :D <4> Germany has the longest holiday already, I just am a freelancer and not an employee. <11> btw acidjnk, there is no File.matches() method <4> Yes, I meant getName().matches <11> I get 5 weeks paid <11> can't complain <4> Here it is corrected: http://rafb.net/p/xwzCzr22.html <4> I recommend to factor out the FileFilter, though :-) <4> A for loop should not contain an anonymous cl***, lol <11> yah, don't want to instantiate it in there <11> plus i have outside variables applied in the regex <11> and they're not final <11> and i need to work the regex <4> It disturbs me that I cannot type such a small program correctly in one line on IRC without a compiler, like I tried. <11> the file name is actually value-*.* <11> http://www.regular-expressions.info/javascriptexample.html <11> great site btw, if u want to test regexes <11> would value + "\\-*.*" where value is some arbitrating string <11> work? <4> You have to escape value, like Pattern.escape(value), or what was it ... <4> Pattern.quote(value) <4> since value could contain []- or whatever <11> the value is alphanumerical <4> then it is optional <4> An example for a match would be abc123-----------.............? <11> yah <11> so value + "\\-.+" <11> ? <11> its really value-anything <11> i don't care what the file extension is <4> that would be value + ".*" <4> or use f.getName().startsWith... instead of a regex <11> ah yes good point :) <11> acidjnk, whatever you're making, it's not enough! <4> puh, a few hours ago I overfed so much that I rolled on the floor in pain and made strange noises. I hope in a few hours I am fit again. <12> lol <11> copy con is the greatest invention in dos <11> i abuse it so much when working on a windows machine <4> I never felt secure on my computer again since Windows 95. All my great tools like Norton Commander, Discedit and so on are not useable any more. <11> doctor watson ftw <11> came with windows 3.0 <11> hasn't been updated since, microsoft is so good <12> lol... <11> it used to crash the file manager in windows 3.0 <11> now it just sits in system32\ <11> drwatson.exe i think
Return to
#java or Go to some related
logs:
Jeewe Jeewe pakistan mp3 #kl #india #india waagaga
#india englisch shakie #allnitecafe #kl carlenigma slow
|
|