Re: [OT] Re: Printing PDF Files in java
try datavision reporting tool http://datavision.sourceforge.net/ Prashanth.S [EMAIL PROTECTED] 12/04/2003 08:12 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: [OT] Re: Printing PDF Files in java Hi daniel... Thanks for the reply...but my requirement is just to stream the existing pdf files from server and print into the browser printer...?? Thanks Prashanth [EMAIL PROTECTED] wrote: try jasper reports. the examples show how to create a report then toss it to several differnt formats including a printer. - Original Message - From: Jesse Alexander (KADA 11) To: 'Struts Users Mailing List' Sent: Thursday, December 04, 2003 7:40 AM Subject: RE: [OT] Re: Printing PDF Files in java Are you definitely sure you want to tdo this? Better is to show the PDF (download it to the user) and let the browser and os of the client do the nasty job of rendering and printing... hth Alexander -Original Message- From: Prashanth.S [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 4. Dezember 2003 13:37 To: Struts Users Mailing List Subject: Re: [OT] Re: Printing PDF Files in java try pjx third party toolbut i still havent got the answer for printing pdf files in java:(( Rouven Gehm wrote: BTW what is a good tool, to create PDF with Java ? Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free Pop-Up Blocker - Get it now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.547 / Virus Database: 340 - Release Date: 12/3/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free Pop-Up Blocker - Get it now = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
datavision and struts
Does anyone use datavision as reporting tool together with struts? any examples? thank you. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
Re: [FRIDAY] Free Dog.....
where is the picture? Julie Member of HSUS Martin Gainty [EMAIL PROTECTED] 10/16/03 07:33 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: [FRIDAY] Free Dog. Ditch the wife Keep the dog.. -M - Original Message - From: Shane Mingins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 7:27 PM Subject: [FRIDAY] Free Dog. Hi A mate of mine is looking for a good home for their family's dog. He said it's really lovable and friendly with kids, but his wife said the dog makes her nervous when it stares at her (I know - weird - I thought the same thing). She wants it out of the house ASAP unfortunately. If you know of anyone who might like to have this loveable pup for a pet, let me know my mate has attached a jpeg of the little mutt. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
Re: Calling a javascript function with the logic:iterate tag
try this: bean:define id=signal property=code/ html:link href='' onclick='%=closeWindowWithCode(+signal+)%' Frederic Dernbach [EMAIL PROTECTED] 10/16/03 09:57 AM Please respond to Struts Users Mailing List To: struts-user [EMAIL PROTECTED] cc: Subject:Calling a javascript function with the logic:iterate tag How can I call a javascript function with one parameter using a logic:iterate tag (the parameter being different from row to row). Below is a simple JSP snipplet which uses an iteration. Its first item prints a code property with an hyperlink with a onclick attribute that points to a javascript function with ONE parameter (closeWindowWithOK). As you can see, I would like to pass the code property to the javascript function when the link is clicked on. How can I do this ? How should I write the onclick attribute of the html:link tag ? Obviously waht I write is wrong since I do not get the expected result. Thanks in advance for your help. Fred script type=text/javascript function closeWindowWithCode(myparameter) { opener.updateWith(myparameter); window.close(); } /script table width=650 border=0 cellspacing=0 cellpadding=0 tr align=left thCode/th /tr logic:iterate name=searchSignalForm property=signals id=signal type=com.rubis.web.system.bean.SignalBean tr align=left td html:link href='' onclick='closeWindowWithCode(bean:write name=signal property=code/)' bean:write name=signal property=code/ /html:link /td /tr /logic:iterate /table - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
can not get bean property, help!!
Hi, I have an attribute called actionName in my actionformbean and I set it properly in my action class before forward to my jsp in the jsp I try to retrieve it like this: form action=nested:write property=actionName/ ... ... /form it always gives me Attribute value must be quoted error message in action.jsp anything wrong ? thank you very very much!!! Julie = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
RE: can not get bean property, help!!
thank you, David, actually i tried single quote ' ...' before, however it doesnt work, always gave me Cannot retrieve mapping for action /' error Karr, David [EMAIL PROTECTED] 10/02/03 01:20 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: can not get bean property, help!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I have an attribute called actionName in my actionformbean and I set it properly in my action class before forward to my jsp in the jsp I try to retrieve it like this: form action=nested:write property=actionName/ ... ... /form it always gives me Attribute value must be quoted error message in action.jsp anything wrong ? Well, I don't know how much clearer that error message could be. You need to change this: form action=nested:write property=actionName/ To: form action='nested:write property=actionName/' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
[maybeOT] multi-select drop down list value?
Hi, if I use multi-select option box in my action form, after I select some options and submit the form, the selected values are stored in a array of String. My question is : is that possible to get both selected values labels instead of only values? thanx! = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
Re: logic:iterate understanding
use the propery ...in your case it is fields Prashanth.S [EMAIL PROTECTED] 09/26/03 09:04 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:logic:iterate understanding Hi all, i found this tag while going through one of jsps but i couldnt understand what this denotes logic:iterate id=oneInput property=fields I dont find any name attributeThan how can a property attribute can be used.. Thanks Prashanth - Do you Yahoo!? The New Yahoo! Shopping - with improved product search = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
[solved]Re: LabelValueBean - 3 fields?
thank you for all your useful input!!! you guys are brilliant!! [EMAIL PROTECTED] 09/24/03 04:12 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:LabelValueBean - 3 fields? Hi, is it possible to store 3 fields in LabelValueBean instead of 2? i.e. value, label description? thanx! = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
Re: Is there a way to find an Object type? Please help
Mathew, Manoj [EMAIL PROTECTED] 09/26/03 09:47 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Is there a way to find an Object type? Please help String fieldValue = (String) form.get(propertyNameObj.toString())? I guess this always returns String no matter what, 'cause you use propertyNameObj.toString(). Hi I been using only String data types in my DynaAction form.But i had a requirement to use multi select options and i have to declare a String[] for it. the issue is i have my own method which maps the form element to the appropriate fields of my controller factory.there i have some code like this public final static Collection transformFieldMap(DynaActionForm form) { DynaClass dynaClass = form.getDynaClass(); DynaProperty[] props = dynaClass.getDynaProperties(); for (int i = 0; i props.length; i++) { Object propertyNameObj = props[i].getName(); try { String fieldValue = (String) form.get(propertyNameObj.toString()); }catch (Exception e) { if (e instanceof ClassCastException) { String[] temp = (String[]) form.get(propertyNameObj.toString()); }} } I am assuming that i get this ClassCastException only when the form element is a String[]. I am live with this for now as i am using only one String[] and rest are just String type.Is there anyway i can find whether the 'Object' is of type string[] ??? I tried with instance of and it is not working.. Thank you Mathew Manoj Group Information Systems (H243) * (515)362-0539 * mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
LabelValueBean - 3 fields?
Hi, is it possible to store 3 fields in LabelValueBean instead of 2? i.e. value, label description? thanx! = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
Re: Multipage JDBC result
we are using orcale 8i, maybe it is the time to migrate to MySQL??:P thank you! Navneet Karnani [EMAIL PROTECTED] Sent by: news [EMAIL PROTECTED] 09/18/03 09:24 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:Re: Multipage JDBC result What database are you using ? We use the MySQL database and have effectively used the limit clause to work with a limited set of records. we just store the query condition in the forms and work with that in every page. - Navneet [EMAIL PROTECTED] said the following on 18/09/2003 1:56 AM: It seems that it pulled the whole JDBC resultset into the memory at one time(correct me if I am wrong at this point) since my data sets will be very huge, I don't think it is a good idea to pull down all the data to the session for paging. Any better solution /examples? very appreciated!! Julie Andrew Kuzmin [EMAIL PROTECTED] 09/16/03 09:12 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Multipage JDBC result Hi, see this link http://jakarta.apache.org/struts/faqs/newbie.html#pager -- Andrew Kuzmin http://www.java201.com - Original Message - From: Jonathan Hawkins [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:39 PM Subject: Multipage JDBC result Howdy, Any tips as to where I can find code examples of how to break down a large JDBC result into say 25 rows per page? Jon Hawkins - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multipage JDBC result
It seems that it pulled the whole JDBC resultset into the memory at one time(correct me if I am wrong at this point) since my data sets will be very huge, I don't think it is a good idea to pull down all the data to the session for paging. Any better solution /examples? very appreciated!! Julie Andrew Kuzmin [EMAIL PROTECTED] 09/16/03 09:12 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Multipage JDBC result Hi, see this link http://jakarta.apache.org/struts/faqs/newbie.html#pager -- Andrew Kuzmin http://www.java201.com - Original Message - From: Jonathan Hawkins [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:39 PM Subject: Multipage JDBC result Howdy, Any tips as to where I can find code examples of how to break down a large JDBC result into say 25 rows per page? Jon Hawkins - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
Re: application.properties file location
did you put it your struts-config file? i have the following in my struts-config.xml file: message-resources parameter=resources.ApplicationResources/ ( I put it into my resources directory) Samanth Athrey [EMAIL PROTECTED] 08/13/03 10:57 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:application.properties file location Hi, I have my application.properties file stored in the classes directory. But the application is unable to locate and load this file. Any tips would be of great help. Thanks, Samanth Athrey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
RE : How to display error message coming from DynaValidatorForm?
yes, it works fine. but I can't see any html:errors/ in your code? Laurent MARQUEZ [EMAIL PROTECTED] 08/14/03 09:24 AM Please respond to Struts Users Mailing List To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject:RE : How to display error message coming from DynaValidatorForm? Ok for typo, but does html:errors / work with dynaValidatorForm? -Message d'origine- De : Jeff Kyser [mailto:[EMAIL PROTECTED] Envoyé : jeudi 14 août 2003 14:09 À : Struts Users Mailing List Objet : Re: How to display error message coming from DynaValidatorForm? Don't know if you've just got a typo in your e-mail or not, but html:errors/ (plural) works fine. or for your specific field below, html:errors property=name/ -jeff On Thursday, August 14, 2003, at 07:02 AM, Laurent MARQUEZ wrote: I would like to display error message coming from my DynaValidatorForm. /html:error doesn't work. html:form action=/project table width=45% border=0 tr tdbean:message key=project.data.name/:/td tdhtml:text property=name//td /tr tr td colspan=2 align=centerhtml:submit //td /tr /table /html:form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
Re: how to pass a jsp variable to a javascript function
I don't have javascript errors, the problem is %=tmpIndex% can't be translated into 0,1,2,. in javascript, only the String%=tmpIndex%. Adam Hardy [EMAIL PROTECTED] 08/07/03 04:32 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: how to pass a jsp variable to a javascript function Hi Julie, what do you get as a result of that iterate? It looks correct. Do you have javascript errors? Adam [EMAIL PROTECTED] wrote: Hi All, Can anyone suggest how to pass a jsp variable to a javascript function correctly? It is in a nested:iterate block that has an indexId=tmpIndex. what I would like to do is to have the 'y%=tmpIndex%' variable pass into my JavaScript function.It seems like the server side %=tmpIndex% variable can not be translated into the client side script function. Here is my code: nested:iterate property=projectList id=pro indexId=proIdx bean:define id=tmpIndex value=%= String.valueOf(proIdx.intValue())%/ script language='JavaScript' var y%=tmpIndex%=%=tmpIndex%; /script nested:select property=projectCodeId onchange= projectChange(y%=tmpIndex%) nested:optionsCollection property=../projectCodeList/ /nested:select /nested:iterate any suggestions? Very Appreciated. Julie = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to pass a jsp variable to a javascript function
Hi All, Can anyone suggest how to pass a jsp variable to a javascript function correctly? It is in a nested:iterate block that has an indexId=tmpIndex. what I would like to do is to have the 'y%=tmpIndex%' variable pass into my JavaScript function.It seems like the server side %=tmpIndex% variable can not be translated into the client side script function. Here is my code: nested:iterate property=projectList id=pro indexId=proIdx bean:define id=tmpIndex value=%= String.valueOf(proIdx.intValue())%/ script language='JavaScript' var y%=tmpIndex%=%=tmpIndex%; /script nested:select property=projectCodeId onchange= projectChange(y%=tmpIndex%) nested:optionsCollection property=../projectCodeList/ /nested:select /nested:iterate any suggestions? Very Appreciated. Julie = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
RE: how to pass a jsp variable to a javascript function
Thank you very very much!! It works perfect !!! Julie Steve Armstrong [EMAIL PROTECTED] 08/07/03 10:25 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: how to pass a jsp variable to a javascript function Howdy, There are definitely a number of funky things in your code example. I'm not exactly sure what you're trying to do since your onchange attribute is calling a JavaScript function called projectChange which I don't see anywhere, but here are a couple of things to look out for: 1. I don't believe you can use a JSP expression inside some JavaScript code, but someone can certainly correct me if I'm wrong. What I have done in the past is use a bean:write tag, so you should be able to do something like: bean:define id=tmpIndex value=23/ script language=JavaScript type=text/javascript var ybean:write name=tmpIndex/ = bean:write name=tmpIndex/; /script if you *really* want to do that. 2. However, your question was how do I pass a JSP variable to a Javascript function and it looks like this is what you are attempting to do with the next part of your code: nested:select property=projectCodeId onchange=projectChange(y%=tmpIndex%) For this to work correctly, your JSP expression needs to be the entire value for the onchange attribute (i.e., you can't embed a JSP expression into the middle of an attribute value). Thus, assuming you have a JavaScript function named projectChange defined, and you really want to pass in a JavaScript variable to this function as opposed to say, the Integer value itself, then you should be able to say something like: nested:select property=projectCodeId onchange='%= projectChange(y + tmpIndex +) %' 3. But, rather than setting a JavaScript variable inside a nested:iterate and then trying to pass this variable into projectChange it would seem to be much simpler to simply pass in the value itself. In other words, something like: nested:iterate property=projectList id=pro indexId=proIdx nested:select property=projectCodeId onchange='%= projectChange( + proIdx +) %' I haven't tested the above, but if I haven't missed any syntactic sugar, it should work. Cheers, -Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 5:30 PM To: Struts Users Mailing List Subject: Re: how to pass a jsp variable to a javascript function I don't have javascript errors, the problem is %=tmpIndex% can't be translated into 0,1,2,. in javascript, only the String%=tmpIndex%. Adam Hardy [EMAIL PROTECTED] 08/07/03 04:32 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: how to pass a jsp variable to a javascript function Hi Julie, what do you get as a result of that iterate? It looks correct. Do you have javascript errors? Adam [EMAIL PROTECTED] wrote: Hi All, Can anyone suggest how to pass a jsp variable to a javascript function correctly? It is in a nested:iterate block that has an indexId=tmpIndex. what I would like to do is to have the 'y%=tmpIndex%' variable pass into my JavaScript function.It seems like the server side %=tmpIndex% variable can not be translated into the client side script function. Here is my code: nested:iterate property=projectList id=pro indexId=proIdx bean:define id=tmpIndex value=%= String.valueOf(proIdx.intValue())%/ script language='JavaScript' var y%=tmpIndex%=%=tmpIndex%; /script nested:select property=projectCodeId onchange= projectChange(y%=tmpIndex%) nested:optionsCollection property=../projectCodeList/ /nested:select /nested:iterate any suggestions? Very Appreciated. Julie = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: iterate over collection a show the inner collection as html:select - how ?
I think something wrong with your selection code. I assume you want to present a selection of email list. try the following: [CODE] logic:iterate id=outMsgList name=OUTBOX tr class=tablebody td align=left == change to : html:select property=email html:select property=outMsgList == change to html:options property=recipientList / html:options name=recipientList property=email / /html:select /td td align=left bean:write name=outMsgList property=subject filter=true/ /td td align=left bean:write name=outMsgList property=sentDate filter=true/ /td Stefan Berger [EMAIL PROTECTED] 08/12/03 09:22 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:iterate over collection a show the inner collection as html:select - how ? Hi, I guess this problem is many time solved but i cant find the solution. I put into the session a collection. Each members is a class. In this class i have normal member like name, street, and this class has another collection ! Now i want to iterate over the main - collection and the second (inner collection) i want to present as a html:select: The simple String i can write but i cant show the selection, what i do wrong. Sorry for my easy question, i don't see the solution. Thanks for hints !!! Regards Stefan [CODE] logic:iterate id=outMsgList name=OUTBOX tr class=tablebody td align=left == change to : html:select property=email html:select property=outMsgList == change to html:options property=recipientList / html:options name=recipientList property=email / /html:select /td td align=left bean:write name=outMsgList property=subject filter=true/ /td td align=left bean:write name=outMsgList property=sentDate filter=true/ /td td align=left bean:write name=outMsgList property=sizeKB filter=true/ Kb /td Stefan Berger [EMAIL PROTECTED] 08/12/03 09:22 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:iterate over collection a show the inner collection as html:select - how ? Hi, I guess this problem is many time solved but i cant find the solution. I put into the session a collection. Each members is a class. In this class i have normal member like name, street, and this class has another collection ! Now i want to iterate over the main - collection and the second (inner collection) i want to present as a html:select: The simple String i can write but i cant show the selection, what i do wrong. Sorry for my easy question, i don't see the solution. Thanks for hints !!! Regards Stefan [CODE] logic:iterate id=outMsgList name=OUTBOX tr class=tablebody td align=left == change to : html:select property=email html:select property=outMsgList == change to html:options property=recipientList / html:options name=recipientList property=email / /html:select /td td align=left bean:write name=outMsgList property=subject filter=true/ /td td align=left bean:write name=outMsgList property=sentDate filter=true/ /td td align=left bean:write name=outMsgList property=sizeKB filter=true/ Kb /td = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =