struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sathish Kumar T.K." <>
Subject Re: How to disable a Text Box
Date Thu, 05 Feb 2004 05:24:36 GMT
Hm, use a hidden field along with the disabled text box.
Now u can take the value from the hidden field.

Something like...
<html:hidden property="start_date_hidden" value="<%=start_date%>"/>

Sathish Kumar T.K.

----- Original Message -----
From: "Ramachandran" <>
To: "Struts Users Mailing List" <>
Sent: Thursday, February 05, 2004 11:00 AM
Subject: How to disable a Text Box

> Hi All,
>              I am having an text box.At the right side of text box there
> link called 'Date Component'.If select the date from that component it
> display in taht text box. What i have to do means, i don't allow the user
> enter any thing inside that text box.
>             So i gave disabled property. But i was not able to get the
> request from another page. And also value of date is not entering into
> database. It is entered as null.
>             So what i have to do. Is there any possibilty in javascript.
> any knows, mail me regarding this.
> <html:text property="start_date" size="20"value="<%=start_date%>"/>
> <A id=anchor1
> return false;"href="#"name=anchor1><img src="images/calendar.gif"
> border="0" width='30' height='20'>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message