How can I refresh my jsp

2004-03-22 Thread Mu Mike
sample1.jsp: form action=/action1.do .. /form this is my action definition action path=/action1 type=com.mycom.Action1 name=myForm scope=session forward name=success path=/sample2.jsp/ /action but when I finished the action in sample1, it

RE: How can I refresh my jsp

2004-03-22 Thread Mu Mike
still trying to figure out how any one can be of help? Thanks From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: How can I refresh my jsp Date: Tue, 23 Mar 2004 02:38:26 + sample1.jsp: form action=/action1.do .. /form

off-theme question: about getServletConfig and getServeletContext

2004-03-21 Thread Mu Mike
does the servlet container has only one servletcontext instance for all the servlets it manages? and the same to servletconfig instance? ThanksRegards _ MSN Hotmail http://www.hotmail.com

Can javascript generate a html form?

2004-03-18 Thread Mu Mike
Hi, I need to know if javascript is able to write a from 'on' an html file while certain events are activated and then submit the form to a server action? if it can ,can anyone give me a simple example? ThanksRegards _ MSN

how to submit javascript variable of array type

2004-03-16 Thread Mu Mike
I now have a javascript array var, and I need to submit it by a form to an action class, how can I achieve this? ThanksRegards _ MSN Explorer: http://explorer.msn.com/lccn/

please help, using logic:iterate and html:form

2004-03-15 Thread Mu Mike
Hi, all, last week, I spent a whole day trying to figure the below problem out, and you warmhearted guys just came and helped me,but to greatly disappiont you, I m still at a loss to know where the problem is ,so I decided to explain detailedly and completely of what I did and hope you nice

RE: submit an arraylist

2004-03-12 Thread Mu Mike
right? From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: submit an arraylist Date: Fri, 12 Mar 2004 07:55:33 + I have a form as the below TestBeanForm.java public class TestBeanForm extends ActionForm { public ArrayList

Re: submit an arraylist

2004-03-12 Thread Mu Mike
=testForm property=testBean html:text name=mybean property=string1 indexed=true / ... On 12 Mar 2004, at 09:23, Mu Mike wrote: I write this in jsp file,but it failed html:form action=/testAction.do logic:iterate name=TestBeanForm property=testBean id=mybean1 indexId=0

Re: submit an arraylist

2004-03-12 Thread Mu Mike
Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: submit an arraylist Date: Fri, 12 Mar 2004 09:59:50 +0100 does your nested bean have a getString1() method? There's load of examples in the archives. Have a look. On 12 Mar 2004, at 09:48, Mu Mike wrote

help! I m going mad

2004-03-12 Thread Mu Mike
I just cant use logic:iterate correctly! this is my form bean class: public class TestBeanForm extends ActionForm { public String[] getTestBean() { return testBean; } public void setTestBean(String[] testBean) { this.testBean = testBean; } String[] testBean; and this

how can I submit an array object in a form using struts?

2004-03-11 Thread Mu Mike
I now need to submit an array object to an action, how can I achieve this using struts? you know, for a primary type value you just do like this html:form html:text property=name value=Mike/ html:submit property=submitButto value=submit/ /html:form or maybe you can submit values to a bean

RE: can anyone help me address this issue

2004-03-11 Thread Mu Mike
I really need to get some idea about this issue, any suggestions? ThanksRegards From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: can anyone help me address this issue Date: Thu, 11 Mar 2004 05:12:16 + I m using javascript

RE: can anyone help me address this issue

2004-03-11 Thread Mu Mike
- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: 11 March 2004 12:16 To: [EMAIL PROTECTED] Subject: RE: can anyone help me address this issue I really need to get some idea about this issue, any suggestions? ThanksRegards From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

help me about indexed properties

2004-03-11 Thread Mu Mike
I have the below jsp file needs help %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body html:form action=indexedtest5.do logic:iterate name=stringbean property=stringArray id=foo indexId=ctr !--what do

RE: help me about indexed properties

2004-03-11 Thread Mu Mike
sorry, the last mail doesnt display correctly, but when I tried to write a new one, I saw it displays correctly as the below ThanksRegards From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: help me about indexed properties Date

(again)help me about indexed properties

2004-03-11 Thread Mu Mike
well,sorry again, my qeustion is the below I have the below jsp file needs help %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body html:form action=indexedtest5.do logic:iterate name=stringbean property=stringArray id=foo

asking for help about indexed properties

2004-03-11 Thread Mu Mike
I have the follow in a jsp file html:form action=indexedtest5.do logic:iterate name=stringbean property=stringArray id=foo indexId=ctr (QUESTION: WHAT DO name,property,id,indexId MEAN HERE? WHAT VALUES CAN I SET TO THEM?) html:text name=stringbean

RE: help me about indexed properties

2004-03-11 Thread Mu Mike
..list.length]) For html:text === The attributes are pretty well explained in http://jakarta.apache.org/struts/userGuide/struts-html.html#text Hope that's enough to get you started. Craig tataryn:craig/ On Fri, 12 Mar 2004 02:53:11 +, Mu Mike wrote: sorry, the last mail doesnt

submit an arraylist

2004-03-11 Thread Mu Mike
I have a form as the below TestBeanForm.java public class TestBeanForm extends ActionForm { public ArrayList getTestBean() { if(testBean==null) testBean=new ArrayList(); return testBean; } public void setTestBean(ArrayList testBean) { this.testBean =

RE: help ,action path

2004-03-10 Thread Mu Mike
for guiding programming with struts 1.1 thank you all From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: help ,action path Date: Wed, 10 Mar 2004 05:46:16 + of course, I m using an ide to edit the jsp page, it can hotly tell

help me with using bean

2004-03-10 Thread Mu Mike
I have files like the below,I m trying to submit a bean object to my action class, yet when I pressed the submit on the jsp file,it threw an exception:java.lang.IllegalArgumentException: No bean specified what is the correct way? ThanksRegards myjsp.jsp html:form action=/selectFont.do

RE: help me with using bean

2004-03-10 Thread Mu Mike
and objects to null from the document: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes Regards, David -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 8:31 PM To: [EMAIL PROTECTED] Subject: help me with using

RE: help me with using bean

2004-03-10 Thread Mu Mike
, David -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 9:16 PM To: [EMAIL PROTECTED] Subject: RE: help me with using bean David, Thank you, I m a newbie to struts, in fact ,I dont know exactly what kind of form should be there when I want

RE: help me with using bean

2004-03-10 Thread Mu Mike
David: by the way, the setBean method in FontBean seems never been called, I think it should be called sometime during the running process From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: help me with using bean Date: Thu

RE: help me with using bean

2004-03-10 Thread Mu Mike
a return to get you to /mjsp.jsp? Are you doing some sort of redirect? I haven't used DynaActionForms in a while but I think that your use of Form-Property without extending from the class DynaActionForm is giving you the trouble. Regards, David -Original Message- From: Mu Mike [mailto

can anyone help me address this issue

2004-03-10 Thread Mu Mike
I m using javascript doing dhtml, now I have a table, every time a user changes the width of a specific column(by draging the border line), I will save the column index and the new width to variables in javascript.Now ,after doing many such changes, I need to submit those values saved in the

RE: help me with using bean

2004-03-10 Thread Mu Mike
ok, I have solved the problem,seems I should use html:submit instead but not input type=submit by the way,thank you all ,especially David ThanksRegards From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: help me with using

help ,action path

2004-03-09 Thread Mu Mike
I got this jsp page: sample.jsp: html:form method=post action=/openReport.do tr td html:text property=fileName value=this is the filename/ /td /tr input type=submit/ /html:form it is saved in /contextPath/rv/sample.jsp this is part of my web.xml web.xml: init-param

RE: help ,action path

2004-03-09 Thread Mu Mike
? (I think I m doing the right which I described in my last mail(below) ) thank you all From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: help ,action path Date: Wed, 10 Mar 2004 03:18:51 + I got this jsp page: sample.jsp

RE: help ,action path

2004-03-09 Thread Mu Mike
described in my last mail(below) ) thank you all From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: help ,action path Date: Wed, 10 Mar 2004 03:18:51 + I got this jsp page: sample.jsp: html:form method=post action=/openReport.do