Re: How to access Static Data in jsp file

2006-09-07 Thread Puneet Lakhina
On 9/8/06, Ashish Vijaywargiya <[EMAIL PROTECTED]> wrote: Hi Puneet, Thx for the reply. I think if you have the facility to import classes then you should use the import statement at the top of JSP file.That's what I did in my case. Like this : <%@ page import="java.util.*, com.exporder.web.St

Re: How to access Static Data in jsp file

2006-09-07 Thread Ashish Vijaywargiya
Hi Puneet, Thx for the reply. I think if you have the facility to import classes then you should use the import statement at the top of JSP file.That's what I did in my case. Like this : <%@ page import="java.util.*, com.exporder.web.StaticData" %> and then as simple as I used is shown

Re: How to access Static Data in jsp file

2006-09-07 Thread Puneet Lakhina
On 9/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The object should be Collection object... not just simple String array Can someone please clarify on this, coz AFAIK it can be an array of Objects. -- Puneet

Re: [OT] Re: How to access Static Data in jsp file

2006-09-07 Thread Bart Busschots
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",

[OT] Re: How to access Static Data in jsp file

2006-09-07 Thread Antonio Petrelli
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", "2

Re: How to access Static Data in jsp file

2006-09-07 Thread Puneet Lakhina
On 9/7/06, Ashish Vijaywargiya <[EMAIL PROTECTED]> wrote: Thx for the reply puz. I changed as you said. and kept the values in pageContext and i also converted the member variable to "public static". <% request.setAttribute("hours", StaticData.hours); request.setAttribute("minutes", StaticData.

Re: How to access Static Data in jsp file

2006-09-06 Thread paz . periasamy
9/2006 04:36 PM To: [EMAIL PROTECTED], Struts Users Mailing List cc: Subject: Re: How to access Static Data in jsp file Thx for the reply puz. I changed as you said. and kept the values in pageContext and i also converted the member variable to "pu

Re: How to access Static Data in jsp file

2006-09-06 Thread Ashish Vijaywargiya
Thx for the reply puz. I changed as you said. and kept the values in pageContext and i also converted the member variable to "public static". <% request.setAttribute("hours", StaticData.hours); request.setAttribute("minutes", StaticData.minutes); %> But in the combo box it is not populating th

Re: How to access Static Data in jsp file

2006-09-06 Thread paz . periasamy
Create the Interface attributes / member variables as "public static " attributes. Then in the JSP use the attribute and set the value into pageContext. then u can easily use it wityh Struts tag libs. Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL