Re: Strange error with logic:iterate

2002-04-03 Thread Michael Skariah
Hope this helps. bean:define id=list name='localForm' property=myList scope=session/ logic:iterate id=myRow name=list bean:write name=myRow property=myName/ /logic:iterate Here in this example, 'myList' is a java.util.List kept as a attribute in the ActionForm. Cheers!, -MS. Abel

RE: Nester iterate and style sheet

2002-03-20 Thread Michael Skariah
Hi Sanjay, You might want to look into http://husted.com/struts/resources.htm RowTag (ZIP file for download) by Amarda Business Systems Ltd - Source for a Struts-compatible tag to generate alternating row colors in a table by Niall Pemberton. Hope this helps. -MS. -Original Message-

RE: When i have three buttons that all can submit the same form...

2002-03-19 Thread Michael Skariah
Hello Laker, Pl. read this. http://jakarta.apache.org/struts/api/org/apache/struts/actions/DispatchActio n.html You can also change the form's action using Javascript code. Ex: This is the method in Javascript function changeAction(form, methodToCall) { form.action =

RE: check box

2002-03-19 Thread Michael Skariah
Hi Sanjay, Let me give an example to help you out here. Here I am assuming that the checkboxes (including the master checkbox) are present in a table that has got an id 'checkTable'. When I say 'master' check box I mean the one that will help you to trigger the event for selecting/de-selecting

Maintaining an array...

2001-08-23 Thread Michael Skariah
Hello all, I would like to create 'n' number of html:text property=test maxlength=10/ dynamically (where n is greater than 0). I also would like to maintain the same property name for all the 'n' html:text I create. Is that possible? If yes, how will I be able to get these values in the

Handling multiple forms...in a JSP

2001-07-20 Thread Michael Skariah
Hello all, I am not sure whether if this is a HTML question of a Struts question. Anyways, I am trying my luck here. I have a JSP with multiple forms. When the submit of form 1 is clicked, I would like to read the value from the source of form 2 and set it in the action property of form 1. How

RE: Handling multiple forms...in a JSP

2001-07-20 Thread Michael Skariah
Thanks to all. I got it working. -Mike. -Original Message- From: Michael Skariah [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 1:21 PM To: [EMAIL PROTECTED] Subject: Handling multiple forms...in a JSP Hello all, I am not sure whether if this is a HTML question of a Struts

Multiple html:text with the same property name

2001-07-16 Thread Michael Skariah
Hello all, Can anyone tell me if I can have multiple html:text tags with the same property name in a single JSP file. If yes, how can I map these tags with the same name to a single attribute in the ActionForm class. Can I have something like an attribute which is an array in the ActionForm class

Retaining values for the page.....

2001-07-09 Thread Michael Skariah
Hello all, Please have the patience to go thru'.. Assume that I have 2 pages... test1.jsp and test2.jsp. A link present in test1.jsp opens up a child window with test2.jsp. I also have the following in the config file: action path=/test2 type=com.nri.xenos.uibase.ui.Test2Action

Logic:Iterate in html:option

2001-07-03 Thread Michael Skariah
Hello all, I am trying to fill up an option value in a JSP file using the bean:write tag. Below is the code. I have the values present for the property and do not get any errors, but string written to the option is empty (). Could anyone tell me if something else has to be done. Thanks in

SCOPE OF THE Action in usebean......

2001-06-28 Thread Michael Skariah
Hello all, I have a code as shown below. the list I get from actNo.getList() is null. Infact I am populating the list in the perform() of the AccountNumberAction class. Could anyone tell me what modifications has to be done to get the populated list. Thanks!!, Michael.

ServletException....

2001-06-27 Thread Michael Skariah
Hello all, Below is the code I am trying to execute and I get the error "javax.servlet.ServletException: No getter method available for property singleSelect for bean under name org.apache.struts.taglib.html.BEAN". I have the get and set methos for singleSelect in my resultAction class.

RE: ServletException....

2001-06-27 Thread Michael Skariah
h different names instead of overloading. Anthony -Original Message-From: Michael Skariah [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 27, 2001 2:28 PMTo: [EMAIL PROTECTED]Subject: ServletException Hello all, Below is the code I am trying

RE: ServletException....

2001-06-27 Thread Michael Skariah
an onsubmit=return func() ; better serve you? Just make sure you return false from func() or the submit *will* take place. Anthony -Original Message- From: Michael Skariah [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 2:41 PM To: [EMAIL PROTECTED] Subject: RE: ServletException

RE: working with reports

2001-06-27 Thread Michael Skariah
Hi all, I would like to put the value of 'str' in line 13. Can anyone tell mw what has to be done. -Mike. --- html:select property=selectedValue value= html:option value=/html:option % // 'ht' is a hash table List myList =

RE: working with reports

2001-06-27 Thread Michael Skariah
I apologize to all for my question. Actually it was a spelling mistake and I fixed it. -Original Message- From: Michael Skariah [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 4:19 PM To: [EMAIL PROTECTED] Subject: RE: working with reports Hi all, I would like to put

Minimizing the code in JSP file......by removing the for loop

2001-06-26 Thread Michael Skariah
Hello all, I am new to Struts and was experimenting the various HTML tags. I was trying to improve the code below. Could anyone tell me how I can achieve the same functionality of filling the select block, but by removing the for loop from this code(I mean just by filling values with a list).

RE: Minimizing the code in JSP file......by removing the for loop

2001-06-26 Thread Michael Skariah
use the collection and property value on my html:options, and Struts does the rest! ie html:options collection=... property=... (and you can use the labelProperty if you want too) Check out the documentation on it... Dave Michael Skariah [EMAIL PROTECTED] on 06/26/2001 12:50:35 PM Please

HTML:link tag

2001-06-26 Thread Michael Skariah
Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael.

RE: HTML:link tag

2001-06-26 Thread Michael Skariah
- From: Michael Skariah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 3:23 PM Subject: HTML:link tag Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael.