Re: Help Req on Iterate Tag using HashMap

2003-11-04 Thread Sashi Ravipati
Hi This is how we iterate in a jsp page table width=100% border=0 cellpadding=0 cellspacing=1 logic:iterate id=sbList name=addProviderForm property=assocSBList indexId=i tr tdhtml:text name=sbList property=sbBeginDate maxlength=10 size=10 //td tdhtml:text name=sbList property=sbEndDate

Error when using Java Version 1.3.1_09

2003-11-03 Thread Sashi Ravipati
Hi The following code which is used to iterate works fine when using Java Version 1.3.1_07, but when we started to use 1.3.1_09 , we get an error. We are using Struts 1.1 final release libraries. I am pasting the code we used and also the error message. Are there any deprecated methods used by

Which version of JDK is compatable with Struts Tags

2003-11-03 Thread Sashi Ravipati
We are having a problem when using Iterate tag with JDK 1.3.1_09. Did any body face this problem ?. Pls help Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: ServletException Response has already been committed'

2003-07-25 Thread Sashi Ravipati
. Hope this does it. ranko -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 4:47 PM To: [EMAIL PROTECTED] Subject: RE: ServletException Response has already been committed' The jsp:include is not a direct JSP and it needs to retrieve data from

how to do this?? [Tag inside a tag]

2003-07-25 Thread Sashi Ravipati
jsp:param name=Name value=bean:write name=showvalue property=providerName / / I get the following errors Error(32): Attribute: showvalue is not a valid attribute name Error(32): Attribute: property is not a valid attribute name Error(33): Not expecting text inside this tag Can I give the tag

Re: how to do this?? [Tag inside a tag]

2003-07-25 Thread Sashi Ravipati
so how can I set the value in the jsp:param tag which is available in bean:write. Please bear with me as I am learning.. Thanks [EMAIL PROTECTED] 07/25/03 10:43AM You can't do that. See here for more: http://marc.theaimsgroup.com/?l=struts-userm=105771765327337w=2 HTH m --- Sashi

ActionForm in session scope

2003-07-25 Thread Sashi Ravipati
I am trying to have my Form in session and I have set the scope=session in my action mapping. If I try to access this form in other JSP page it is returing Null. Am I missing something?? action path=/updateprovider type=gov.mi.mdch.pe.strutsactions.UpdateProviderAction

ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
I have a jsp page which I need to include in all my other JSP pages. I created an action for JSP to be included and used jsp:include page=selectedproviderinfo.do /. This throws Servlet Exception. I also tried tiles:insert page=page=selectedproviderinfo.do / but the same result. How can this

Re: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
? From: Sashi Ravipati [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ServletException Response has already been committed' Date: Thu, 24 Jul 2003 14:39:34 -0400 I have a jsp page which I need to include in all my other JSP pages. I created

RE: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
be able to clear this up. ranko -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2:57 PM To: [EMAIL PROTECTED] Subject: Re: ServletException Response has already been committed' I checked it , it works fine when I just use

RE: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
It didn't work. It gives me the same error. [EMAIL PROTECTED] 07/24/03 03:48PM Try this action path=/updateprovider ... forward=/WEB-INF/jsp/UpdProvDetailInfo.jsp / -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2:42 PM To: [EMAIL

RE: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
in your jsp:include tag. I don't know how kosher that is in the Struts environment though. Is there a way to tell ActionServlet to use include() instead of forward()? ranko -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 3:42 PM To: [EMAIL

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
an html:form tag, I can't think of anything else. m --- Sashi Ravipati [EMAIL PROTECTED] wrote: This is how I have my cancel tag. html:cancel bean:message key=button.cancel/ /html:cancel [EMAIL PROTECTED] 07/08/03 02:27PM The complete content of your html:cancel tag

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
HTML is as shown below input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel onclick=bCancel=true; [EMAIL PROTECTED] 07/09/03 09:21AM Sashi, what HTML does the tag produce? Adam Sashi Ravipati wrote: I am trying this on Struts 1.1 final. Will this make any difference

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
realised I'm suffering the same problem. I'll try it myself. Let me know what you find as well! Adam Sashi Ravipati wrote: HTML is as shown below input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel onclick=bCancel=true; [EMAIL PROTECTED] 07/09/03 09:21AM Sashi, what

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
if the request.attribute is set with request.getAttribute(Globals.CANCEL_KEY); For some reason in the RequestProcessor it sets this attribute to true when the request.parameter is present. Check it out. This is the one that the Action.isCancelled() checks. It has to be not null. Adam Sashi Ravipati wrote: it says

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
. Adam Sashi Ravipati wrote: request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I set it to not null and where Should I do this.. Can u explain how u solved ur problem.. Thanks [EMAIL PROTECTED] 07/09/03 11:22AM I've solved my problem. Now you've checked

Cancel Button Does not work in Struts 1.1 final ??

2003-07-09 Thread Sashi Ravipati
I have a cancel button which works fine in Struts 1.1b2 and when I have replaced the .jar files with Struts final 1.1 (Downloaded on July 3rd) it does not work. The part that is not working is isCancelled(request). It is always returning false. This is frustrating Thanks

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
and recompiling and deploying. I don't think you need the whole lot. Here's my base action class for what its worth Adam Sashi Ravipati wrote: I check the first thing u asked and it is same i.e org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == org.apache.struts.taglib.html.CANCEL

Cancel button not working?

2003-07-08 Thread Sashi Ravipati
I have a html:cancel in my jsp page. and in my action I have if(isCancelled(request)){ return mapping.findForward(index); } But it is not working. What am I doing wrong here. I am using Struts 1.1 final Thanks

Re: Cancel button not working?

2003-07-08 Thread Sashi Ravipati
isCancelled(request) is always returning false (Even when cancel button is clicked) Need some help... Thanks [EMAIL PROTECTED] 07/08/03 09:10AM I have a html:cancel in my jsp page. and in my action I have if(isCancelled(request)){ return mapping.findForward(index); } But it is

Re: Cancel button not working?

2003-07-08 Thread Sashi Ravipati
This is how I have my cancel tag. html:cancel bean:message key=button.cancel/ /html:cancel [EMAIL PROTECTED] 07/08/03 02:27PM The complete content of your html:cancel tag is probably key to solving this problem. m --- Sashi Ravipati [EMAIL PROTECTED] wrote: isCancelled(request

How to do this

2003-06-30 Thread Sashi Ravipati
Hi I have a lookup table which has approx(1000 rows) with Code and Description. (Say 1=Office,2=home etc) The user will input data(Say code=1) in a text field and when he moves to next field he wants the description (Office) to be displayed. Did somebody have similar situation or does struts

How to read init-parm defined in web.xml in an Action class

2003-06-25 Thread Sashi Ravipati
Hi I have this entry in my web.xml file init-param param-namedeveloper-test-id/param-name param-valuetestmode/param-value /init-param How can I get the value (testmode) in my action class. In a servlet we I could do it like this public void init(ServletConfig config)

RE: How to read init-parm defined in web.xml in an Actionclass

2003-06-25 Thread Sashi Ravipati
Thanks [EMAIL PROTECTED] 06/25/03 10:19AM Try this this.servlet.getServletConfig().getInitParameter() -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: How to read init-parm defined in web.xml

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Sashi Ravipati
pressed try {if (request.getParameter(saveBtn.x).equals(null)) return null;} catch (NullPointerException ex) {return null;} I'm also interested in feed-back on my approach. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Sashi Ravipati
to validate right in the form class. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 1:24 PM To: [EMAIL PROTECTED] Subject: RE: How to ignore validation when form loads (first time) Even my code is working with 2 action mappings, but I have 15 JSP

How to ignore validation when form loads (first time)

2003-06-18 Thread Sashi Ravipati
Hi We have JSP pages which need user input. How can I display the form initially with out validation and then when user enters data and submits the page, the validation has to be done. I tried to accomplish it by giving two action in Struts-Config.xml. as shown below eg: action path=/AddRate

Re: Creating text fileds dynamically

2003-06-18 Thread Sashi Ravipati
I have a solution for this, but can u tell me if u will now the size of text fields before u load the page? Thanks [EMAIL PROTECTED] 06/18/03 01:19PM Hi , How can one create text fields dynamically? For ex: may be one time i need 20 textfields othertime i would like to show only 10 text

Re: Creating text fileds dynamically

2003-06-18 Thread Sashi Ravipati
Let me rephrase Do u know the number of text boxes required before u come to ur JSP page? or Do u want to add text baxes dynamically in the page? [EMAIL PROTECTED] 06/18/03 01:22PM I have a solution for this, but can u tell me if u will now the size of text fields before u load the page?

Dynamic table data using struts

2003-06-18 Thread Sashi Ravipati
With the help of user group found solutions to questions like 1. How to repopulate multiple HTML elements with same name 2. Repopulate data where rows are built at the client side. May not be the best approach but spent lot of time to get here, wanted to share this with user group , so that it

RE: what setters do i implementinan indexedtag--NewBiequestion

2003-06-17 Thread Sashi Ravipati
fields? (i.e. something like person[0].firstName, person[1].phoneNo, etc) -john -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 5:13 AM To: [EMAIL PROTECTED] Subject: RE: what setters do i implementinan indexedtag--NewBiequestion No returning

RE: what setters do i implementinan indexedtag--NewBiequestion

2003-06-13 Thread Sashi Ravipati
may or may not be acceptable in your case). I'm not sure what your javascript that might throw things off. Does returning from validation work when you have NOT added a row? -john -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:57 PM

lost form data when validate returns errors

2003-06-13 Thread Sashi Ravipati
Hi I have the form info in my action and it passes the form's validation, but if I add an error the displayed page doesn't have the form info. The error displays properly, but I lose all the form data.? Will the reset() method be called when a validation error occurs? Sashi

RE: how to pass more than one value when a multibox ischecked?

2003-06-13 Thread Sashi Ravipati
is corresponding to the first checkbox, even I checked the second or third checkbox. How can I know which checkbox related to which text field. Thanks a lot! Sarah -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:10 PM To: [EMAIL PROTECTED] Subject

RE: what setters do i implementinan indexedtag--NewBiequestion

2003-06-13 Thread Sashi Ravipati
) -john -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 5:13 AM To: [EMAIL PROTECTED] Subject: RE: what setters do i implementinan indexedtag--NewBiequestion No returning from Validation does not work even when I did not add the new row

RE: what setters do i implement in an indexed tag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: what setters do i implement in an indexed tag --NewBiequestion Can some body help in as how to define get and set methods when we use indexed tags. eg: logic:iterate id

RE: what setters do i implement in an indexed tag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
of the list and set it into a hidden in the jsp in a field named personListLength. -john -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: what setters do i implement in an indexed tag --NewBiequestion Can

RE: what setters do i implement in an indexedtag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
in a field named personListLength. -john -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: what setters do i implement in an indexed tag --NewBiequestion Can some body help in as how to define get

RE: what setters do i implement in an indexed tag--NewBie question

2003-06-12 Thread Sashi Ravipati
to be a wide choice of taglibs to use - is this going to consolidate at some point in struts' development? Adam Sashi Ravipati wrote: Can some body help in as how to define get and set methods when we use indexed tags. eg: logic:iterate id=person name=myFormBean property=personList tr

RE: what setters do i implement in anindexedtag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
there. -john -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:08 AM To: [EMAIL PROTECTED] Subject: RE: what setters do i implement in an indexedtag--NewBiequestion John Made few changes and code worked fine. Would like to extend this so

Re: how to pass more than one value when a multibox ischecked?

2003-06-12 Thread Sashi Ravipati
I used the following code for two text boxes, u can change it to your need I am also learning so bear with my suggestions. 1. Action form code: private ArrayList personList; public void reset(ActionMapping mapping, HttpServletRequest request){ this.personList = new ArrayList();

RE: what setters do i implement inan indexedtag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
Sorry for the post, I figured it out and got working. Only issues is to Increase the size of the personList when rows are added by user. Any ideas Thanks [EMAIL PROTECTED] 06/12/03 02:25PM -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] I had a question on how

RE: what setters do i implementinan indexedtag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
for me without having to increase the size. :) -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:33 PM To: [EMAIL PROTECTED] Subject: RE: what setters do i implement inan indexedtag--NewBiequestion Sorry for the post, I figured it out

RE: what setters do i implementinan indexedtag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
' Subject: RE: what setters do i implement inan indexedtag--NewBiequestion personList is an ArrayList. I thought they increased automagically. Maybe only my special Java code makes ArrayList increase for me without having to increase the size. :) -Original Message- From: Sashi Ravipati [mailto

RE: what setters do i implementinan indexedtag--NewBiequestion

2003-06-12 Thread Sashi Ravipati
to post like all the other info you want to still have upon return from validation. An alternate, of course, is to put the form in session scope, then everything will still be available when you return. -j -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday

Error Message: Invalid indexed property

2003-06-11 Thread Sashi Ravipati
Hi I am using logic:iterate tag as shown below logic:iterate id=element name=addRateForm property=firstName indexId=i tr % int j = ((Integer) pageContext.getAttribute(i)).intValue(); % tdhtml:text name=addRateForm property=firstName[%=j%]/td

RE: Error Message: Invalid indexed property

2003-06-11 Thread Sashi Ravipati
+];% tdhtml:text name=addRateForm property=%=fname%/td i didnt check it.pardon me if it doesn't work Partha -- From: Sashi Ravipati[SMTP:[EMAIL PROTECTED] Reply To: Struts Users Mailing List Sent: Wednesday, June 11, 2003 5:48 PM To: [EMAIL PROTECTED] Subject: Error

RE: Error Message: Invalid indexed property

2003-06-11 Thread Sashi Ravipati
- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 2:56 PM To: [EMAIL PROTECTED] Subject: RE: Error Message: Invalid indexed property I tried that it works , but I have many HTML elements like that and I would like to use html:text name=addRateForm property=firstName[%=j

RE: Scope related Vector iteration problem

2003-06-11 Thread Sashi Ravipati
I have a similar problem, Is the form bean session scope u r talking abt or something else. I tried to set the scope=session in Struts-config.xml, it that right (Please bear with me as I am newbie) thanks [EMAIL PROTECTED] 06/11/03 10:00AM Thanks Tib, you've been very helpful (and quick too!).

How can I do this

2003-06-11 Thread Sashi Ravipati
I am reading the values from an array, when I build my table I use html:text name=addRateForm property=%=\firstName[\+j+\]\% / the above tag converts to input type=text name=firstName[1] value=b Now I also want to build a hidden value along with the text box as shown below input type=hidden

Re: How can I do this

2003-06-11 Thread Sashi Ravipati
) Have you looked at or used indexed fields before? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: Sashi Ravipati [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:41 AM Subject: How can I do this I am

Re: How can I do this

2003-06-11 Thread Sashi Ravipati
: Sashi Ravipati [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:41 AM Subject: How can I do this I am reading the values from an array, when I build my table I use html:text name=addRateForm property=%=\firstName[\+j+\]\% / the above tag converts to input type

what setters do i implement in an indexed tag --NewBiequestion

2003-06-11 Thread Sashi Ravipati
Can some body help in as how to define get and set methods when we use indexed tags. eg: logic:iterate id=person name=myFormBean property=personList tr td bean:write name=person property=name/ html:hidden name=person property=name indexed=true/ /td td html:text

Logic:iterate

2003-06-10 Thread Sashi Ravipati
i have the following code in my .jsp TABLE id=mytable logic:equal property=amount name=addRateForm value=1 logic:iterate id=row name=addRateForm property=iterator tr tdhtml:text name=row property=firstName //td /tr /logic:iterate

Re: Logic:iterate

2003-06-10 Thread Sashi Ravipati
further? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: Sashi Ravipati [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 9:33 AM Subject: Logic:iterate i have the following code in my .jsp TABLE id=mytable

Re: Logic:iterate

2003-06-10 Thread Sashi Ravipati
on the jsp snippet you've provided, I'm not understanding what you are trying to do. Can you explain further? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: Sashi Ravipati [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday

RE: multiple HTML form elements with the same name

2003-06-10 Thread Sashi Ravipati
). I feel I wasted so much time sending an example in. It is practically all the code you could ever get free for something like that. Please, read between the (dashed) lines (above). -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:35 AM

Re: Logic:iterate

2003-06-10 Thread Sashi Ravipati
) Based on the jsp snippet you've provided, I'm not understanding what you are trying to do. Can you explain further? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: Sashi Ravipati [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

What are indexed struts-html tags and how to use them?

2003-06-10 Thread Sashi Ravipati
Can somebody explain how these work, or is there any example of this. Thanks

RE: What are indexed struts-html tags and how to use them?

2003-06-10 Thread Sashi Ravipati
indexes, so you can move values in and out of a collection/array in your form bean instead of scalars. The indexed tags work along with either the logic:iterate or c:forEach tags. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 8:38 AM

RE: logic:iterate and html:text indexed=true/

2003-06-10 Thread Sashi Ravipati
There is good example demonstrating this http://www.scioworks.net/devnews/strutsDistilled/updates/update-030401/indexedAttr.html It is not very clear on how to declare an Action Form, so if some body can show an example of how to use ArrayList etc it will be og great help. Thanks [EMAIL

RE: What are indexed struts-html tags and how to use them?

2003-06-10 Thread Sashi Ravipati
Any ideas how to make this to work [EMAIL PROTECTED] 06/10/03 03:24PM There is an error in that getPerson(int index) should return a Person object or something with name etc. sandeep --- Sashi Ravipati [EMAIL PROTECTED] wrote: I want to accomplish something which is similar to what is shown

Re: multiple HTML form elements with the same name

2003-06-09 Thread Sashi Ravipati
Can u post a working example, it will be of great help Thanks [EMAIL PROTECTED] 06/06/03 05:01PM Look at the struts docs regarding the index tag. Sashi Ravipati wrote: How to use multiple HTML form elements with the same name. In the Help it is given as Yes. Define the element

How do I get Struts to repopulate multiple elements havingsame name?

2003-06-09 Thread Sashi Ravipati
Hi I am reposting the same question as I did not get any answer. Some of the options suggested by various users were using logic:iterate indexed tags etc. But can somebody give me a working exaple of this. Thanks

Help- logic:iterate tag

2003-06-09 Thread Sashi Ravipati
Hi I am trying to understand the logic:iterate tag. I have gone thru the docs but could figure out some of the attributes of this tag. My confusion is following attributes 1. property=some name so should this have a get and set methods in the ActionForm 2. Collection - when will this be

RE: Help- logic:iterate tag

2003-06-09 Thread Sashi Ravipati
and Architecture Moog Inc. Phone: (716) 687-7001 -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:22 AM To: [EMAIL PROTECTED] Subject: Help- logic:iterate tag Hi I am trying to understand the logic:iterate tag. I have gone thru the docs but could

RE: multiple HTML form elements with the same name

2003-06-09 Thread Sashi Ravipati
time sending an example in. It is practically all the code you could ever get free for something like that. Please, read between the (dashed) lines (above). -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:35 AM To: [EMAIL PROTECTED] Subject

How to repopulate Form which has html elements with same name

2003-06-06 Thread Sashi Ravipati
Hi I am a newbie to struts... I have a dynamic table which has a html:text and a html:select . The user cliks on a add button and enter values in each row of the table and submits the form. How can I repopulate the valuse if validation fails. Can some body give a working exapmle of the

Re: How to repopulate Form which has html elements with samename

2003-06-06 Thread Sashi Ravipati
, at 09:59 AM, Sashi Ravipati wrote: Hi I am a newbie to struts... I have a dynamic table which has a html:text and a html:select . The user cliks on a add button and enter values in each row of the table and submits the form. How can I repopulate the valuse if validation fails

RE: How to repopulate Form which has html elements with samename

2003-06-06 Thread Sashi Ravipati
- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:59 AM To: [EMAIL PROTECTED] Subject: How to repopulate Form which has html elements with same name Hi I am a newbie to struts... I have a dynamic table which has a html:text and a html:select . The user cliks

Re-populate Form Data

2003-06-06 Thread Sashi Ravipati
Hi I have array of text boxes with the same name eg: tr td html:text propertye=name/ html:text propertye=name/ html:text propertye=name/ /td /tr When I sbimit the page all the values are stored in an String Array in my Form bean. private String [] name=null; public String[] getName(){

multiple HTML form elements with the same name

2003-06-06 Thread Sashi Ravipati
How to use multiple HTML form elements with the same name. In the Help it is given as Yes. Define the element as an array and Struts will autopopulate it like any other. private String[] id= {}; public String[] getId() { return this.id; } public void setItem(String id[]) {this.id = id;}

Re: How to repopulate Form which has html elements withsamename

2003-06-06 Thread Sashi Ravipati
be nice if someone could post what setup write IS. so we can check if we have something set up WRONG. After all, WSAD 5 came with struts preloaded so how can it be setup wrong? Sashi Ravipati [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Let me rephrase my question. I have a table

RE: How to repopulate Form which has html elementswithsamename

2003-06-06 Thread Sashi Ravipati
=/showform type=my.package.MyAction name=aForm input=form.jsp validate=true scope=request forward name=display path=form.jsp/ forward name=blah path=crap.jsp/ /action -Original Message- From: Sashi Ravipati

Re: adding / creating new collection elements in a form

2003-06-06 Thread Sashi Ravipati
I have a javascript wich woks, u can give it a try, replace the html tags with Struts Html tags, it should work html head titleadding table rows with input elements /title script type=text/javascript var TDCount = 0; function insertTableRow(id) { var table = document.getElementById(id); // get

How to access methods define in Action Form

2003-06-06 Thread Sashi Ravipati
I am newbie so bear with my questions.. How can I access the set and get methods in the JSP page. if i use jsp:Usebean the values are returned as null. Thanks

Re: How to repopulate Form which has html elementswithsamename

2003-06-06 Thread Sashi Ravipati
I read the 2 lines given there but did not get any clue,, I am a newbie so bear with me.. Thanks [EMAIL PROTECTED] 06/06/03 09:55AM Second hint: RTFF (Read The Fine FAQ) G http://jakarta.apache.org/struts/faqs/newbie.html#multiple -Kevin --- Gemes Tibor [EMAIL PROTECTED] wrote: Sashi

=?windows-874?q?Error=20=97=20[Ljava.lang.String;@d23.?=

2003-06-06 Thread Sashi Ravipati
Hi I get the following error when the jsp page is displayed after the validation fails (Validation errros are all working fine) [Ljava.lang.String;@d23. This happens when I am passing values to a String Array. eg: .jsp I have html:text property=firstName / These are my set and get methods

RE: How to repopulate Form which has html elementswithsamename

2003-06-06 Thread Sashi Ravipati
[ ] Name [ ] Name [ ] Then if you say, it is really key=du.theName1 and the next one is du.theName2 then that wouldn't be truly dynamic. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 8:26 AM To: [EMAIL PROTECTED] Subject: RE: How

RE: Error - [Ljava.lang.String;@d23.

2003-06-06 Thread Sashi Ravipati
from the tag your using you just want to print a simple string, why are you trying to pass an array as the property? -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:22 AM To: [EMAIL PROTECTED] Subject: Error - [Ljava.lang.String;@d23. Hi I

RE: How to repopulate Form which has html elementswithsamename

2003-06-06 Thread Sashi Ravipati
-Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:31 AM To: [EMAIL PROTECTED] Subject: RE: How to repopulate Form which has html elementswithsamename Shane Sorry for all the confusion and please bear with me.. How do I get Struts to repopulate multiple

RE: How to repopulate Form which has html elementswithsamename

2003-06-06 Thread Sashi Ravipati
: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 11:19 AM To: [EMAIL PROTECTED] Subject: RE: How to repopulate Form which has html elementswithsamename Thanks for the code, this will help to start off, Should I do any thing in the ActionForm . I do have get and set methods

RE: Error - [Ljava.lang.String;@d23.

2003-06-06 Thread Sashi Ravipati
experiencing. I hope that this helps. Larry -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: RE: Error - [Ljava.lang.String;@d23. I do have multiple elements of the same name. I started to work with one element

RE: Error - [Ljava.lang.String;@d23.

2003-06-06 Thread Sashi Ravipati
(); % html:text name=addRateForm property=firstName[%= i %] / /logic:iterate -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:47 PM To: [EMAIL PROTECTED] Subject: RE: Error - [Ljava.lang.String;@d23. Thanks for the code.. I started to build my

RE: Error - [Ljava.lang.String;@d23.

2003-06-06 Thread Sashi Ravipati
=firstName[%= i %] / /logic:iterate -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:47 PM To: [EMAIL PROTECTED] Subject: RE: Error - [Ljava.lang.String;@d23. Thanks for the code.. I started to build my code based on your replay as shown below

RE: How to repopulate Form which has html elementswithsamename

2003-06-06 Thread Sashi Ravipati
on the form etc.) is not normal circumstances. How about your JavaScript will work under normal circumstances but, wait, if a user turns off JavaScript then your app will be almost useless. There's definitely variables to every equation. -Original Message- From: Sashi Ravipati [mailto:[EMAIL