roseline ruba

Greenhorn
+ Follow
since Mar 21, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by roseline ruba

I'm trying to use JFreeChart in my struts application. But i didnt get any help documents for using Jfreechart in struts application. Please let me know the details of the integration of jfreechart with struts application.

And I need the following features in my chart.
1. Dynamic refreshing rate.
2. Zooming
3. legend
4. tool tip
5. Scrollbars


Thanks in advance..
13 years ago
Hi,

Is there any option to get the datasource connection from the non-action class?, where the datasource specified in the struts-config.xml file.
14 years ago
Thanks for your suggestion.

But my requirement is ,,
I have a list.
I want to get some values in the list from Action to JSP Page.
And when submitting the JSP, I want to pass new values in the list.
So I want to clear the list in JSP.

How can I do this?
14 years ago
What if the property is ArrayList instead of String?
[ October 12, 2007: Message edited by: roseline ruba ]
14 years ago
Thanks for your response.
But i'm using struts v1.
And i'm using layout.
So Please let me know how to do to this?

Thanks in advance
[ October 11, 2007: Message edited by: roseline ruba ]
14 years ago
I have a form bean property.
I want to set empty value to the form bean after the page loads.

Any ideas?

Thanks in Advance
14 years ago
Hi,
The locations is not constant.
It is coming from database.
And I'm using DynaValidatorActionForm.
14 years ago
anybody have solution?
14 years ago
this is the type of my 'location' & 'locationList' property
struts-config.xml:
<form-property name="location" type="java.lang.String"/>
<form-property name="locationList" type="java.util.ArrayList"/>

My jsp :
<layout:checkboxes key="flightallocation.location1" property="location" styleClass="LABEL" >
<layout ptions collection="locationsList" property="data1" labelProperty="data2"/>
</layout:checkboxes>

html output for the above jsp:
<input type="checkbox" name="location[0]" value="EK01"> Carousel 01
<input type="checkbox" name="location[1]" value="EK02"> Carousel 02
<input type="checkbox" name="location[2]" value="EK03"> Carousel 03
<input type="checkbox" name="location[3]" value="EK04"> Carousel 04
<input type="checkbox" name="location[4]" value="EK05"> Carousel 05
<input type="checkbox" name="location[5]" value="PROB"> Mis-track line

i use he following function to set selected locations to locationList:

public void set(String name, int index, Object value) {
Object t_list = get(name+"List");
if (!(t_list instanceof ArrayList))
set(name+"List",new ArrayList());
ArrayList temp = (ArrayList) get(name+"List");
temp.add(value);
set(name+"List",temp);
log.info(name + " " + index + " = " + value);
}

It is working corretly.
When i fetch record from the database, if i have more than one location in a record, then i set those locations in 'locationList' property.
so i have 'locationList' property having the locations to be selected.
and also i have a collection 'locationsList' having all locations.

Help me to generate the checkboxes with the locations selected in 'locationList' property
14 years ago
Hi,
I used struts layout to populate my checkbox.

<layout:checkboxes key="flightallocation.location1" property="location" styleClass="LABEL" >
<layout: options collection="locationsList" property="data1" labelProperty="data2"/>
</layout:checkboxes>


'locationsList' having data from database.

It is populating correctly. And also when submitting the page I'm getting the values of selected locations in a array 'locationList'

when i want to update my records in database, I want to populate my records in the page. for example, If i have more than one location for the record, I fetch those locations, and put it in 'locationList' property in my form.

But i dont know how to populate these locations with selected checkboxes.
in my Page i'm having
'locationsList' having all the locations.it is a collection.
'locationList' having the location names to be selected. it is form bean property.it is ArrayList.

from these two collections, how can I populate my checkboxes with the selected locations?
14 years ago
1. i didnot understand
2. You can try 'intRange' in struts validator.
14 years ago
Did you put the struts.jar file WEB-INF/lib folder?
14 years ago
Hi,
I used struts layout to populate my checkbox.

<layout:checkboxes key="flightallocation.location1" property="location" styleClass="LABEL" >
<layout: options collection="locationsList" property="data1" labelProperty="data2"/>
</layout:checkboxes>


'locationsList' having data from database.

It is populating correctly. And also when submitting the page I'm getting the values of selected locations in a array 'locationList'

when i want to update my records in database, I want to populate my records in the page. for example, If i have more than one location for the record, I fetch those locations, and put it in 'locationList' property in my form.

But i dont know how to populate these locations with selected checkboxes.
in my Page i'm having
'locationsList' having all the locations.it is a collection.
'locationList' having the location names to be selected. it is form bean property.it is ArrayList.

from these two collections, how can I populate my checkboxes with the selected locations?

[ October 03, 2007: Message edited by: roseline ruba ]
[ October 03, 2007: Message edited by: roseline ruba ]
14 years ago
hi, i want to display the checkbox in my page. user can check oone or more checkbox at a time. I'm using dynaActionForm. Please let me know how can i create this kind of check box. and which type i can use to specify the checkbox values (java.lang.String[] or java.util.ArrayList) ? Please help me.

i use like this <layout:checkboxes key="flightallocation.location1" property="location" styleClass="LABEL">
<layout ptions collection="locationList" property="data1" labelProperty="data2" />
</layout:checkboxes>


and i used java.lang.String[] .then I got non-indexed property error...
[ September 24, 2007: Message edited by: roseline ruba ]
14 years ago
Hi,
i want to do a application in struts2.
i want to know the initial steps to create a simple application.
i gone through some help documents.
but didnt help me ..
please let me know what are the jar files need for the simple application..
14 years ago