struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stéphane Zuckerman <stephane.zucker...@gmail.com>
Subject Re: html:option
Date Tue, 14 Jun 2005 09:03:52 GMT
Hello Amitava,

amitava.basak@tcs.com a écrit :
> I want 
> <html:option selected="true"> xxx </html:option>
> 
> Is there a way out to select a default value at design time?  (I hate 
> javascript!!....... lol. )

You could always prepopulate your form before forwarding to the JSP :

public ActionForward execute(...) {
   form.setMySelect("my value");
   ...

   return mapping.findForward("/toMyJsp");
}

-- 
Stéphane Zuckerman

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message