Why does has no value?

2005-11-30 Thread Sebastian Stein
Hi, I'm still in the process of learning struts... but I have a HTML form with an input field: ... This string sourceDate is set in advance in a java class (extending Action): sourceDate="2005/10/14"; request.setAttribute("sourceDate", sourceDate); If I write in my jsp page the correct str

Re: Why does has no value?

2005-11-30 Thread Sebastian Stein
Gaet <[EMAIL PROTECTED]> [051130 17:39]: > Please send your code of tag I think is a tag defined by struts-html.tld using tag class org.apache.struts.taglib.html.TextTag. By the way, according to struts-config.xml, I'm using Struts version 1.1. Sebastian --

Re: Why does has no value?

2005-11-30 Thread Sebastian Stein
Dave Newton <[EMAIL PROTECTED]> [051130 17:43]: > >If I write in my jsp page the correct > >string > >is shown in the HTML output. So I'm sure that the value for sourceDate is > >correctly handed over to the jsp page. > > > >Is there a way to easily fix this? > > The property in an html:text tag

Re: Why does has no value?

2005-12-01 Thread Sebastian Stein
Laurie Harper <[EMAIL PROTECTED]> [051201 07:43]: > > > > > type="org.contineo.actions.documan.document.EditDocAction"> > > > path="/pages/editDoc.jsp" > > redirect="false"/> > >... > >

Handling config files

2005-12-08 Thread Sebastian Stein
Hi, I have a config file in WEB-INF/classes/ directory. This file has the information for database connection. How can I make this file accessible in all Action classes? I guess there must be a unified way to access such a file. Sebastian

Re: Handling config files

2005-12-08 Thread Sebastian Stein
[EMAIL PROTECTED] <[EMAIL PROTECTED]> [051208 23:27]: > String xpdlPropertiesFileName = "xpdl.properties"; //file should be in the > class path.. Sorry for the stupid question, but what are possible class paths in a webapp? I guess it is the WEB-INF/lib directory, but any other directory? Can thi

Re: Handling config files

2005-12-09 Thread Sebastian Stein
[EMAIL PROTECTED] <[EMAIL PROTECTED]> [051208 23:27]: > There are probably many ways of doing this (I don't know of any "standard" > way though). Here's some code which i use to populate a Properties object > from a file: > > String xpdlPropertiesFileName = "xpdl.properties"; //file should be in

What should I do with serializable classes?

2005-12-12 Thread Sebastian Stein
I have several classes derived either from ValidatorForm or ActionForm. Both classes mark my derived class as serializable. I get a compiler warning about a missing serialVersionUID. Why are those classes serializable, because data transfered through a network connection? How do I have to handle t

html:checkbox not storing property

2006-06-15 Thread Sebastian Stein
Hi folks, I have a jsp page with a struts html:checkbox looking as follows: The backupform is defined in struts-config.xml as: If I enter the page, the state of the checkbox is correctly set. However, when I leave the page, the value of the checkbox is not preserved. I debugged this a littl

Re: html:checkbox not storing property

2006-06-15 Thread Sebastian Stein
Samere, Adam J <[EMAIL PROTECTED]> [060615 15:20]: > Browsers do not send a request parameter for check boxes that are not > checked. Input of type text is always sent. I'm guessing what you see is > the box not being "unchecked"... You need to set it in the reset method. Great, this was already t

Problem with validation rule

2006-07-14 Thread Sebastian Stein
Hi, I have a form, which should also use validation based on a mask. I already enabled this kind of validation in another form and there it works. So I guess I just have a type or did something wrong during copy&paste. Here is the form definition in the struts-config.xml:

Re: Problem with validation rule

2006-07-16 Thread Sebastian Stein
nother jsp than at least another jsp is shown. There seems to go something completely wired going on and I have no idea what it is. Is there another point where one can define validation rules for a form? Sebastian > Sebastian Stein wrote: > >Hi, > > > >I have a form, which shou

Re: Problem with validation rule

2006-07-16 Thread Sebastian Stein
Sebastian Stein <[EMAIL PROTECTED]> [060716 11:50]: > Adam Gordon <[EMAIL PROTECTED]> [060715 09:50]: > > What happens if you remove the "requireList" dependency and just use "mask?" > > It is driving me crazy. I removed the requireList dependenc