I haven't actually worked with cookies this way, but it seems like this should work: <bean:cookie id="the_cookie" name="username_cookie" value="username_cookie not set" /> <bean:define id="the_value" name="the_cookie" property="value" /> <html:text property="username" value="<%= the_value %>" /> This doesn't deal with using the cookie value as a substitute for the form bean value, but hopefully this will point you in the right direction. -- Martin Cooper At 06:25 AM 8/3/01, [EMAIL PROTECTED] wrote: >How do I use cookies to prefill form fields? > >Specifically, I need to pull the value of a cookie who's name doesn't >match the field name in the FormBean associated with this form. I've >tried something like this: > ><bean:cookie id="cookie" name="username_cookie" value="username_cookie not >set"/> >name="username_cookie" /> But, there's no "getter" for the field >"username" in the cookie (understandable). I need to get the "value" field >from the cookie. I guess what I really need to accomplish is this: If the >FormBean's field is null, use the value from the cookie instead. Any ideas >on how I can do this? -jason

