Re: html:form help

2002-07-01 Thread Lolik Tum

Why don't you use Integer Objects as wrap arounds your integeres? This way
you can have nulls which will be blank on you form.

- Original Message -
From: "Pete Serafin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 28, 2002 8:07 AM
Subject: html:form help


> OK ... I have what should be an easy one.  When using html:form and
> html:text tags, how can I prevent my form from initializing integer
> form fields to the default values set in my ActionForm?  For example,
> when my form renders, I always have zeros in form elements representing
> numbers, but I want them to be blank.  Obviously, these attributes cant
> be set to null as with strings, so how can this behavior be "fixed"?
> TIA.
>
>
>
> Pete Serafin
>
>
> --
> 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]>




html:form help

2002-06-28 Thread Pete Serafin

OK ... I have what should be an easy one.  When using html:form and 
html:text tags, how can I prevent my form from initializing integer 
form fields to the default values set in my ActionForm?  For example, 
when my form renders, I always have zeros in form elements representing 
numbers, but I want them to be blank.  Obviously, these attributes cant 
be set to null as with strings, so how can this behavior be "fixed"? 
TIA.



Pete Serafin


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




html:form help!!

2002-02-11 Thread Luke Studley

Hi there.

I just found some 'interesting' behaviour with the html:form tag that I hope
somebody can explain.

I have the action servlet mapped in my web.xml to "*.do", this worked fine
for me until I wanted some files to be downloaded with the extension .csv,
so I added another servlet-mapping of action to the "*.csv" extension.

Now however my old html:forms are appearing with the *.csv extension and
nothing works (except for the csv file download - which works a treat)! Is
it possible to have multiple mappings like this or does Struts just assume
one mapping for actions?

So, e.g. in my jsp


but what now comes out in the browser is 



Any ideas appreciated

Luke



--
To unsubscribe, e-mail:   
For additional commands, e-mail: