Re: Congratulations on the struts 1.1 final release
Great job! I am at China, where are you come from? "Mounagurusamy, Jayakumar (HAL)" <[EMAIL PROTECTED]> :[EMAIL PROTECTED] > Congratulations, Struts team > > You guys have done a marvelous work, keep the good work and provide the JAVA > world with better solutions > > thanks > > Jay > > > -- x-- x-- x-- x-- x-- > x-- x-- x-- > Jayakumar Mounagurusamy Email: [EMAIL PROTECTED] > Senior Programmer Analyst Work: 206-298-3831 > Information Services Pager: 206-570-4532 > 300 Elliott Avenue West Extension: x3831 > Seattle WA 98119 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
's disabled property is according to other property
Hi I have a elementary question want to ask the experts like you guys, in my form bean ,there are 3 field : depid, empid, choosetype in jsp, depid and empid will list as dropdown menu, and choosetype will list as radio button, clip like this : .. .. dep emp my question is, How can I set the select tag property according to the value of choosetype, for example, if the choosetype equal to "E", the disabled of depid is set to true : "> .. thank you very much... lcl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: a jsp question:how to get the web application's directory?
OutputStream, seemed very good, but could you give me a more detailed infomation, because I have touch it before, thank you very much. "Dan Tran" <[EMAIL PROTECTED]> [EMAIL PROTECTED] > Cant you just create a stream on the fly and ship it back to the user thru > HTTPResponse? > > In you insist on writting to a webapp directory, look up > getRealPath(). > > -Dan > - Original Message - > From: "lcl" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 12, 2003 7:41 PM > Subject: a jsp question:how to get the web application's directory? > > > > Hi all, > > > > I just have a question about jsp/servlet, how to gain the directory in > the > > file system of a web application? because I want to create a file under > the > > web application, and redirect it to user. > > > > Best Regards > > lcl > > > > > > > > > > - > > 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]
a jsp question:how to get the web application's directory?
Hi all, I just have a question about jsp/servlet, how to gain the directory in the file system of a web application? because I want to create a file under the web application, and redirect it to user. Best Regards lcl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: readonly of text
thank you very much "El Harouchi, Jaafar [IT]" <[EMAIL PROTECTED]> дÈëÏûÏ¢ÐÂÎÅ :[EMAIL PROTECTED] > Check: http://jakarta.apache.org/struts/userGuide/struts-html.html#text > It supports both readonly and disabled. > So try something like: > > -jaafar > > -Original Message- > From: lcl [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 10:47 PM > To: [EMAIL PROTECTED] > Subject: readonly of text > > > Hi all, > > In struts html tag , such as text ,there is not a readonly property, so How > can I set the readonly property of the text input control to "readonly" , > for example, the output html will like this : > > > Could you give me some advice? Thank you very much. > > Best Regards > lcl > > > > > - > 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]
readonly of text
Hi all, In struts html tag , such as text ,there is not a readonly property, so How can I set the readonly property of the text input control to "readonly" , for example, the output html will like this : Could you give me some advice? Thank you very much. Best Regards lcl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using nested tags
I need online tutorial :-) "Mark Galbreath" <[EMAIL PROTECTED]> :[EMAIL PROTECTED] > you didn't. would you like lessons? > > -Original Message- > From: lcl [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2003 11:55 PM > > Hi Dan, > > Sorry for post it to your email directly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using nested tags
Hi Dan, Sorry for post it to your email directly. I have meet the same question when I use nested tag, could you give me a more detailed info about it, the best is some codes about it. Thank you very much. "Dan Tran" <[EMAIL PROTECTED]> :[EMAIL PROTECTED] > When you hit the submit, at the server side BeanUtils will try to insert > the array item to your form bean. > > like set(int index, Item, eee) > > do the error handling in this code to make sure your internaly Collection > size and handle the index, most likely you would need to increase it > dynamically. > > -Dan > > - Original Message - > From: "Huan Le" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 03, 2003 11:59 AM > Subject: Using nested tags > > > > Hello: > > > > Could somebody explain this error message for me? > > E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: > > java.lang.ArrayIndexOutOfBoundsException > > > > I'm using nested tags to display a list of info. Whenever, clicking the > > submit button, I get the error above. Do you know any solutions to > resolve > > this problem or any tutorial discussing this situation. > > > > Thank you very much. > > > > Huan > > > > > > > > > > > > > > > > > > > > > > - > > 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]
Re: html:options can not automatically match value
Sakis, Thank you very much. I have done as you mentioned, but the result has not changed. I have tried to changed the collection name to com_nsk_gs_sales_ClientInfo(of course, do it in action form to set a same named attribute in session), and add a name attribute in html:selection tag , which will like : the output html will like this : name1 name10 name11 ... but no one will be mark as "SELECTED" , WOW! "Sakis Chatzinikolaou" <[EMAIL PROTECTED]> [EMAIL PROTECTED] > Maybe you need to specify the name of the form bean before the > property="projclieid" > e.g. > > > and maybe the collection name should not be the com.nsk.gs.sales.ClientInfo > > but the name you put in the request from the action class before you call > the jsp > > >property="estateOfficeID" labelProperty="estateOfficeName" /> > > > The estateOfficesNames is an attribute set in the request from the action > class > The apartmentForm is the form bean and the apartmentOffice is a property of > the bean > > Hope this helps > > - Original Message - > From: "lcl" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 04, 2003 12:33 PM > Subject: html:options can not automatically match value > > > > Hi all , > > > > I have using the following code to express a select control in html using > > strtus tag: > > > > > >> labelProperty="cliename" > > property="clieid" /> > > > > > > When this jsp page is running, all is ok, but the options will not match > > what the "projclieid" is. in the dropdown list, there is one item match > the > > value,but it is not mark as "selected", what's wrong? > > > > And if I manually specific the value,such as > property="projclieid" value="aa">, > > it will work fine, it will more surprise me... > > > > Please help me, thank you very much. > > lcl > > > > > > > > > > - > > 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]
html:options can not automatically match value
Hi all , I have using the following code to express a select control in html using strtus tag: When this jsp page is running, all is ok, but the options will not match what the "projclieid" is. in the dropdown list, there is one item match the value,but it is not mark as "selected", what's wrong? And if I manually specific the value,such as , it will work fine, it will more surprise me... Please help me, thank you very much. lcl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts can not accept a date field if it is blank
thank you very much "Chen, Gin" <[EMAIL PROTECTED]> :[EMAIL PROTECTED] > Thats the way that I do it if my form is also my vo. > I have: > > String getFormattedDate() > { > //code to format the java.util.Date here > return formattedDate; > } > > void setFormattedDate(String formattedDate) > { > //code to set the java.util.Date here > } > Hope that helps, > -Tim > > -Original Message- > From: Matthew Van Horn [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 3:31 AM > To: Struts Users Mailing List > Subject: Re: Struts can not accept a date field if it is blank > > > What I do is make the form field be a string, and then just add another > accessor method like: > java.util.Date getMyFieldAsDate(String format) { > String dateString = this.MyField; > //parse the string to a date and return > } > I don't know if this is 'correct', but it works for me. > > -matt > > On Monday, June 2, 2003, at 03:49 PM, lcl wrote: > > > Is there not any other ways? > > Because I want to use a single class to act as formbean and value > > object :-) > > > > However, thank you very much. > > > > "Chen, Gin" <[EMAIL PROTECTED]> > > :[EMAIL PROTECTED] > > .. > >> Use java.lang.String instead of java.sql.Date in your FormBeans > >> -Tim > >> > >> -Original Message- > >> From: lcl [mailto:[EMAIL PROTECTED] > >> Sent: Sunday, June 01, 2003 11:13 PM > >> To: [EMAIL PROTECTED] > >> Subject: Struts can not accept a date field if it is blank > >> > >> > >> Hi all , > >> > >> In my form, there is a date field which can be null in database. So > >> the > > user > >> can let it to be blank,but struts can not convert it to form bean, > >> error > >> message is : > >> org.apache.commons.beanutils.ConversionException > >> > >> So , How can deal with it? > >> Any advice will be appreciate. > >> > >> lcl > >> > >> > >> > >> > >> - > >> 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts can not accept a date field if it is blank
Thank you. It seemed that I have to do as you:-) "Matthew Van Horn" <[EMAIL PROTECTED]> :[EMAIL PROTECTED] > What I do is make the form field be a string, and then just add another > accessor method like: > java.util.Date getMyFieldAsDate(String format) { > String dateString = this.MyField; > //parse the string to a date and return > } > I don't know if this is 'correct', but it works for me. > > -matt > > On Monday, June 2, 2003, at 03:49 PM, lcl wrote: > > > Is there not any other ways? > > Because I want to use a single class to act as formbean and value > > object :-) > > > > However, thank you very much. > > > > "Chen, Gin" <[EMAIL PROTECTED]> > > :[EMAIL PROTECTED] > > .. > >> Use java.lang.String instead of java.sql.Date in your FormBeans > >> -Tim > >> > >> -Original Message- > >> From: lcl [mailto:[EMAIL PROTECTED] > >> Sent: Sunday, June 01, 2003 11:13 PM > >> To: [EMAIL PROTECTED] > >> Subject: Struts can not accept a date field if it is blank > >> > >> > >> Hi all , > >> > >> In my form, there is a date field which can be null in database. So > >> the > > user > >> can let it to be blank,but struts can not convert it to form bean, > >> error > >> message is : > >> org.apache.commons.beanutils.ConversionException > >> > >> So , How can deal with it? > >> Any advice will be appreciate. > >> > >> lcl > >> > >> > >> > >> > >> - > >> 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]
Re: Struts can not accept a date field if it is blank
Is there not any other ways? Because I want to use a single class to act as formbean and value object :-) However, thank you very much. "Chen, Gin" <[EMAIL PROTECTED]> :[EMAIL PROTECTED] > Use java.lang.String instead of java.sql.Date in your FormBeans > -Tim > > -Original Message- > From: lcl [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 01, 2003 11:13 PM > To: [EMAIL PROTECTED] > Subject: Struts can not accept a date field if it is blank > > > Hi all , > > In my form, there is a date field which can be null in database. So the user > can let it to be blank,but struts can not convert it to form bean, error > message is : > org.apache.commons.beanutils.ConversionException > > So , How can deal with it? > Any advice will be appreciate. > > lcl > > > > > - > 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]
Struts can not accept a date field if it is blank
Hi all , In my form, there is a date field which can be null in database. So the user can let it to be blank,but struts can not convert it to form bean, error message is : org.apache.commons.beanutils.ConversionException So , How can deal with it? Any advice will be appreciate. lcl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to ignore a date input in a form
Hi experts here , In my form, there is an text which contain a data value, this column in my database table is nullable, so user can ignore it by blank when submit the form, but Struts can not passed! The error is : org.apache.commons.beanutils.ConversionException So my question is how can I let struts to ignore the conversion when the field is blank ? Thanks lcl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]