You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Petrelli <br...@tariffenet.it> on 2006/09/07 11:45:16 UTC
[OT] Re: How to access Static Data in jsp file
Ashish Vijaywargiya ha scritto:
> Hello,
>
> I created an Interface as the code shown below :
>
> public interface StaticData {
> String[] minutes = { "01", "02", "03", "04", "05", "06", "07", "08", "09",
> "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
> "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31",
> "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42",
> "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53",
> "54", "55", "56", "57", "58", "59" };
>
> String[] hours = { "00", "01", "02", "03", "04", "05", "06", "07", "08",
> "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
> "20", "21", "22", "23" };
> }
>
I think that this code can be posted at TheDailyWTF :-)
Just a question: why did you write such a code?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [OT] Re: How to access Static Data in jsp file
Posted by Bart Busschots <ba...@so-4pt.net>.
Antonio Petrelli wrote:
> Ashish Vijaywargiya ha scritto:
>> Hello,
>>
>> I created an Interface as the code shown below :
>>
>> public interface StaticData {
>> String[] minutes = { "01", "02", "03", "04", "05", "06", "07",
>> "08", "09",
>> "10", "11", "12", "13", "14", "15", "16", "17", "18",
>> "19", "20",
>> "21", "22", "23", "24", "25", "26", "27", "28", "29",
>> "30", "31",
>> "32", "33", "34", "35", "36", "37", "38", "39", "40",
>> "41", "42",
>> "43", "44", "45", "46", "47", "48", "49", "50", "51",
>> "52", "53",
>> "54", "55", "56", "57", "58", "59" };
>>
>> String[] hours = { "00", "01", "02", "03", "04", "05", "06",
>> "07", "08",
>> "09", "10", "11", "12", "13", "14", "15", "16", "17",
>> "18", "19",
>> "20", "21", "22", "23" };
>> }
>>
>
> I think that this code can be posted at TheDailyWTF :-)
> Just a question: why did you write such a code?
You know I was thinking exact the same thing. Why bother with loops when
you can just waste your time and resources with arrays of sequential
numbers :)
BB
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org