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
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
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
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",
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
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.
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
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
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
9 matches
Mail list logo