RE: Null String in Error Message
the answer is here: http://www.scioworks.net/devnews/strutsDistilled/updates/update-020906/htmlE rrorsHasNulls.html -Original Message- From: Sanjeev [mailto:[EMAIL PROTECTED]] Sent: 11 September 2002 12:31 To: Struts Users Mailing List Subject: Null String in Error Message Hi , When I display the error message in JSP page using html:errors property=propertyName/, a null string is getting appended at the beginning of the error message. eg; null custom error message How do I get rid of this null string? I am using Jboss as application server and catalina as servlet engine. Thanks in advance, Sanjeev. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ClassCastException:java.lang.Integer
I think the thing to point out here is that you shouldn't have to do any of this sort of code because struts takes care of this for you. If the input fields in your jsp are defined with struts tags, eg. html:text property=age/ html:text property=name/ and you have methods in your form bean called getAge()/setAge() and getName()/setName(), when you submit your jsp struts will magically populate the bean fields for you! -Original Message- From: Vijeth R Naik [mailto:[EMAIL PROTECTED]] Sent: 06 September 2002 11:59 To: 'Strut User' Subject: ClassCastException:java.lang.Integer Hi I am a newbie using struts. I have a simple jsp which has 2 fields, a String and a Number(eg: Name and Age)br When I try displaying the jsp, I get this exception, ClassCastException:java.lang.Integer I am using Tomcat-3.3.1 and Struts-1.0.2 I have a form bean, where Name is a String and Age is an int. In my ActionClass, I set the bean values.. String age_str=request.getParameter(age); int age_int=(new Integer(age_str)).intValue(); beanClass.setAge(age_int); Kindly let me know what is the error.. TIA Vijeth -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Proposal] Thread Topic Identification (was [BS] Are we gettingo ff the topic)
bound to be... if someone isn't sure which category their problem falls into, they will probably mail to both... -Original Message- From: Cliff Rowley [mailto:[EMAIL PROTECTED]] Sent: 29 August 2002 15:08 To: Struts Users Mailing List Subject: Re: [Proposal] Thread Topic Identification (was [BS] Are we gettingo ff the topic) I guess the question is, filter one list or two. Is the volume of two separate lists going to be more than the same information in one list? On Thu, 2002-08-29 at 15:04, Tim T. Young wrote: My fear with another list is that good information will be available in both, and I will have to process 300+ emails a day (2 lists x 150 a list). Tim -- Regards --- Cliff Rowley| [EMAIL PROTECTED] Software Engineer | www.doctype.co.uk +44 (0) 1206 514263 | www.cliffrowley.com --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]