Java Noob Question

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2007
Posts: 1
Reputation: javarookie is an unknown quantity at this point 
Solved Threads: 0
javarookie javarookie is offline Offline
Newbie Poster

Java Noob Question

 
0
  #1
Apr 16th, 2007
I need some help with some Java code for a web interface that provides should provide task information as follows. Just give me some guidence and I will (try)do it on my own. Thanks. Input parameters are date char(8) YYYYMMDD and tasknumber – char(4) If date is today it should go to http://www.info.com/servlet/info?num...y&request=main If date is tomorrow it should go to http://www.info.com/servlet/innfo?nu...w&request=main If date is yesterday it should go to http://www.info.com/servlet/info?num...y&request=main
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 4
Reputation: evilfruitsmashe is an unknown quantity at this point 
Solved Threads: 0
evilfruitsmashe's Avatar
evilfruitsmashe evilfruitsmashe is offline Offline
Newbie Poster

Re: Java Noob Question

 
0
  #2
Apr 16th, 2007
Just write some if statements. First off, make sure that you have a 4 digit task number
if the length of the tasknumber = 4 then
if date = today's date then
go to the corresponding link
elseif date = today's date + 1 day then
go to the tomorrow date link
elseif date = today's date - 1 day then
go to the yesterday date link
else
have a message stating that the date is incorrect or does not have a corresponding link

end if

Hope that this pseudocode helps
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC