conditional statement in struts2

2007-10-23 Thread carmi_cd
hi i'm new in struts 2..my question is how can i get a value from a member variable of my action class and evaluate it in my if-else-if statemet? i try to code it but it doesn't evaluate properly..here is my exisiting code. Loading report... Ple

iframe to disply jasperreports generated pdf in struts 2

2007-10-24 Thread carmi_cd
hi i want to be able to display a pdf generated from a action class that uses jasperreports to produce pdf format report, i want it to be displayed in a portion of my browser using iframe or something the same like . how can i do this? please i'm new in implementing struts 2..thanks in advance fo

Re: conditional statement in struts2

2007-10-24 Thread carmi_cd
gt; > > hope it will help u.! > Regards, > Jignesh > > > > > carmi_cd wrote: >> >> hi i'm new in struts 2..my question is how can i get a value from a >> member variable of my action class and >> evaluate it in my if-else-if statemet? &

[S2] JasperReports and Struts2 DataSource was null error

2007-10-25 Thread carmi_cd
i'm new in integrating JasperReports and Struts 2..my problem is its always saying that my datasouce is null so it displays a pdf file with all the labels in it without anything on the detail part..my datasource is an ArrayList of Personnel object, i name it reportData. here is part of my code..

[S2]Datasource is null in JasperReports integration

2007-10-26 Thread carmi_cd
i'm new in integrating JasperReports and Struts 2..my problem is its always saying that my datasouce is null so it displays a pdf file with all the labels in it without anything on the detail part..my datasource is an ArrayList of Personnel object, i name it reportData. here is part of my code..

Data source was null exception..

2007-10-29 Thread carmi_cd
hi i followed this tutorial.. in JasperReports/Struts 2 Integration http://cwiki.apache.org/WW/jasperreports-tutorial.html but I got this exception Data source value for data source myList was null. i dont know whats causing the problem..thanks in advance. -- View this message in context: htt

Struts 2 and JasperReports Integration

2007-10-29 Thread carmi_cd
hi i followed this tutorial.. in JasperReports/Struts 2 Integration http://cwiki.apache.org/WW/jasperreports-tutorial.html but I got this exception Data source value for data source myList was null. i dont know whats causing the problem..thanks in advance. -- View this message in context: htt

Re: [S2]Datasource is null in JasperReports integration

2007-11-01 Thread carmi_cd
i have done what you suggested but got the same errors..thanks again. strutstwouser wrote: > > I guess you need to have reportData as a field in the Action and do > setReportData(reportData) in execute() after populating it. > > On 10/26/07, carmi_cd <[EMAIL PROTECTED]>

[S2] ArrayList of Object as datasource in JasperReports

2007-11-04 Thread carmi_cd
I need a tutorial that uses ArrayList of Object as datasource for JasperReports..do you know any? -- View this message in context: http://www.nabble.com/-S2--ArrayList-of-Object-as-datasource-in-JasperReports-tf4749173.html#a13580062 Sent from the Struts - User mailing list archive at

Re: [S2] ArrayList of Object as datasource in JasperReports

2007-11-07 Thread carmi_cd
; } } here is part of my struts.xml /apps/reports/ReportNotFound.jsp apps/reports/templates/hr004.jasper reportData PDF i hope you could help me..thanks a lot. strutstwouser wrote: >

Re: [S2] ArrayList of Object as datasource in JasperReports

2007-11-08 Thread carmi_cd
wrote: > > Can you paste the entire struts.xml ; ensure that you have : > > > > > > On Nov 7, 2007 8:51 PM, carmi_cd <[EMAIL PROTECTED]> wrote: > >> >> hi actually i tried using that tutorial and got a pdf with no data in it >> only >> pa

[S2]Checkbox value

2007-12-12 Thread carmi_cd
hello i have a checkbox which supposed to have the value of UserId property of the action class I try to do it this way but its having an exception.. here is how i've done it.. /> and here is the exception.. Unexpected Exception catched: Error setting expression 'chkUserId' with value '[Lja

Re: [S2]Checkbox value

2007-12-12 Thread carmi_cd
hello i tried to view the value of and its value is just one id for each row.. but it seems the checkbox are not accepting this value.. "/> i dont know what wrong with this? thanks again. Ray Chen wrote: > > carmi_cd 写道: >> hello >> i have a checkbox which

Re: [S2]Checkbox value

2007-12-13 Thread carmi_cd
I've tried what you've suggested but i got same error.. Unexpected Exception catched: Error setting expression 'chkUserId' with value '[Ljava.lang.String;@138c03' here is part of the code..

Re: [S2]Checkbox value

2007-12-14 Thread carmi_cd
i already solved it.. i hope this help other new struts user just replaced it with this one.. carmi_cd wrote: > > hello > i have a checkbox which supposed to have the value of UserId property of > the action class > I try to do it this way but its having an exception.. &

[S2]Checkbox formatting..

2007-12-14 Thread carmi_cd
I have a table with four columns, the other three columns are all filled with text, while the first column of each row is a checkbox to select the row. My problem is the checkbox move the other column to the next line. It seems that it occupy to much space in the table..how should i change thi

[S2] How to retained pre selected values in Struts form select

2008-01-01 Thread carmi_cd
i have preselected values in my form select..my problem is when i try to add to its selected values by clicking other entries.. it looses the preselected values. how could i solve this? here is the code.. thanks in advance.., -- View this message in context: http://www.nabble.com/-S2--H

[S2] how to get the value of form select

2008-01-04 Thread carmi_cd
i have a form select..my problem is how to i get the selected values of the form select.. what is its data type..is it ArrayList? here is my code.. thanks in advance for your help -- View this message in context: http://www.nabble.com/-S2--how-to-get-the-value-of-form-select

how to get the value of form select

2008-01-04 Thread carmi_cd
i have a form select..my problem is how to i get the selected values of the form select.. what is its data type..is it ArrayList? here is my code.. thanks in advance for your help -- View this message in context: http://www.nabble.com/how-to-get-the-value-of-form-select-tp14

Re: [S2] how to get the value of form select

2008-01-06 Thread carmi_cd
;selectedModules" in the name attribute is also a list and > the > values of selected items will be > populated into it. If you wouldn't write multiple=true, the return data > type > would be String. > > On Jan 4, 2008 3:14 PM, carmi_cd <[EMAIL PROTECTED]> wrote: >

[S2] Form Select

2008-01-06 Thread carmi_cd
i have a form select.. my problem is i dont know how can i get the selected values in the form select box. here is my code.. it has multiple set to true..so it should return something like a list or array..but if i try to retrieved it using this code.. List selectedModules =getSel

Re: [S2] Form Select

2008-01-07 Thread carmi_cd
ed is null..when i selected values from the list. i'm really new with S2, hope you could help me with this..thanks in advance. Ted Husted wrote: > > Hmmm, did you try selectedModules as an array of String? > > HTH, Ted > * <http://www.StrutsMentor.com/> > >

Re: [S2] Form Select

2008-01-08 Thread carmi_cd
setter methods for the selectedModules property > look like? Remember, you need both for data to be passed in both > directions. > > L. > > > carmi_cd wrote: >> hi ted..thanks.. i tried to retrieved selectedModules as an array of >> String.. >> but it w

[S2] What does Select tag set to multiple returns

2008-01-08 Thread carmi_cd
i have a select that like this.. how should the getter and setter of selectedIds should look like? what should the selectedIds type? please help it take me already a long time to figure this out..thanks. -- View this message in context: http://www.nabble.com/-S2--What-does-Sele

Re: [S2] Form Select

2008-01-09 Thread carmi_cd
thank you so much..it solved the problem.. Laurie Harper wrote: > > They need to be public for Struts to be able to call them... ;-) > > carmi_cd wrote: >> here is my getter and setter method for selectedModules >> >> private String[] getSelecte

[S2]method not called

2008-01-14 Thread carmi_cd
hi i have a table that has a checkbox, details of the record such as lastname, firstname with it. when user selects a record or records using checkbox corresponding to it, and click the delete button the record or records selected should be deleted. My problem is it is not able to execute the dele

[S2] Delete confirmation message

2008-01-16 Thread carmi_cd
hi i have a form that has a delete button in it to delete the particular record.. i want to put a confirmation message before it execute the deletion. how should i do it in Struts 2? I'm really new with this..please help me . Thanks in advance. -- View this message in context: http://www.nabble

[S2] Validation

2008-02-17 Thread carmi_cd
Hi I have an application in Struts 2, my problem is when i try to submit the form even if there are values in the form input box it stills give validation message to the user to enter values for the required fields. here is my form fields. here is my UserMgt-save-validation.xml: http://

[S2] form not retrieving values in IE

2008-02-18 Thread carmi_cd
I have a form that works find in Firefox but when I tried to run it in Internet Explorer, all the values from the form input box are returned null. I dont know what should I do to fix this problem in IE, here is my form code here is my action class code: public String save() {

Re: [S2] Validation

2008-02-18 Thread carmi_cd
i was able to identify the problem it was only in IE,I put the showLoadingText="false" to my save button then it validates correctly before it wasn't able to get the form values in IE. still thanks newton.date. :-) newton.dave wrote: > > --- carmi_cd <[EMAIL PROTECT

[S2] IE does not refresh page

2008-02-18 Thread carmi_cd
Hi i have program that when the user input data in the form and clicked the save button, it should display list of records that reflects changes made in the record edited thru the form. In Firefox it works perfectly but in IE the list does not reflect the changes made. It was refreshing the list b

Re: [S2] IE does not refresh page

2008-02-19 Thread carmi_cd
hi, yes my submit reached my action because the record is saved/updated in the database. yes the list is the response from the action. the list is refreshing in Firefox but not in IE..here is part of list.jsp

Re: [S2] IE does not refresh page

2008-02-21 Thread carmi_cd
simplify the > pages (the one making the request and the result) to isolate the cause. > > Good luck! > > PS. > All your calls like this: > > > > can be replaced with this: > > > > as it's a javabean-compliant property name (what have works too but