|
Post by gundamf91 on Jan 21, 2002 19:58:05 GMT -5
u know we have to return (using enumeration) both the URLs and the corresponding titles (the URList and title are both vectors), is there a way to do it??
i can't just return URList + title;
i want to be able to list them all not just one(ie: the list command method) is there a way? thanks in advance
gundamf91
|
|
|
Post by Sylph on Jan 22, 2002 18:34:02 GMT -5
i just realized something.. my program doesn't load actual webpages, e.g., "http://..." ... is it supposed to?
|
|
|
Post by Sylph on Jan 22, 2002 18:38:57 GMT -5
oh, nevermind. hopefully, it crashed becuz it wasn't in the right format, i.e., non-indented...
|
|
|
Post by 1.8T on Jan 22, 2002 18:44:09 GMT -5
oh, nevermind. hopefully, it crashed becuz it wasn't in the right format, i.e., non-indented... but indentation has no effect on html coding as long as u got all the <html> .... </html> coding it should work btw., did u manage to output an html file then goto view source and see it all nicely spaced and the content is on different lines? cuz no matter wut i do when i goto view source all my coding is on one big line.,.,
|
|
|
Post by Sylph on Jan 22, 2002 18:54:34 GMT -5
my program assumes that it's all lined up.
i'm not sure why it's like that for u. did u do [glow=purple,2,300]ps.println("some code");[/glow] instead of ps.print("something"); ?
|
|
|
Post by gundamf91 on Jan 22, 2002 18:59:46 GMT -5
arr no body answered my question but there were 4 posts weird...anyway i solved my own problems and yes u have to write the entire html tags <html> <head> <title></title> </head> etc.....
|
|
|
Post by 1.8T on Jan 22, 2002 20:15:35 GMT -5
my program assumes that it's all lined up. i'm not sure why it's like that for u. did u do [glow=purple,2,300]ps.println("some code");[/glow] instead of ps.print("something"); ? but i did do print instead of println., cuz it works for my list method,..,. hmmmm., maybe my browser has problems.,. gonna try it on win ME..,,. IE5
|
|
|
Post by 1.8T on Jan 22, 2002 20:35:27 GMT -5
ok., how come i can't write to file like this and make it write on multiple lines :
bla.print (url + "\n" + title)
where PrintStream bla = new PrintStream(new FileOutputStream(nameoffile));
anyone?
cuz when i print to that file its just on one line
|
|
|
Post by gundamf91 on Jan 22, 2002 20:40:45 GMT -5
u have to use println print just prints on the same line i think
|
|
|
Post by 1.8T on Jan 22, 2002 20:42:39 GMT -5
u have to use println print just prints on the same line i think yeah but can't i use print with the "\n" to drop the lines? cuz it works for list., arghhh., if i hafta use println then i'm gonna have so many println things like println ("<html>"); etc.. etc. arrghhh
|
|
|
Post by gundamf91 on Jan 22, 2002 20:46:44 GMT -5
that's what i have dude
|
|
|
Post by 1.8T on Jan 22, 2002 22:04:51 GMT -5
u have wut?. the println ... println ... println... or u have \n and it workz?
|
|
Linksys
Junior Member
Kenshin: It doesn't matter. Use whatever technique you like. However. Once I've said I'll kill you,
Posts: 12
|
Post by Linksys on Jan 22, 2002 22:51:27 GMT -5
Is it required to put each tag on seperate lines because the browser doesn't care if it's in seperate lines it all comes out ok when viewing the page.
|
|
|
Post by lordaeron on Jan 23, 2002 0:05:57 GMT -5
Hiya ppl, I just wanted to know, if i type the "add" command and then i type the "end" command, should my program end or treat that as a Url ??
|
|
|
Post by 1.8T on Jan 23, 2002 0:26:39 GMT -5
Hiya ppl, I just wanted to know, if i type the "add" command and then i type the "end" command, should my program end or treat that as a Url ?? well they did say assume valid inputs., so it'll just take end as an url., since after u type add, u are no longer asking for the input of a command , but asking for an url i think.....
|
|