Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Fern Sanchez   on Mar 08 In Java Category.

  
Question Answered By: Alfonso Martin   on Mar 08

If it's a dynamic form, you can set a default value in struts-config.xml:


<form-bean name="contactForm"
type="edu.example.ContactForm">
<form-property name="onHoldFlag"
type="java.lang.Boolean" initial="true"/>
</form-bean>

Otherwise, the place to do this is in your Action, before you forward to the
JSP. You only need to set the default the first time  the form is displayed.
Exactly where and how depends on how you've written  the app

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on a problem in struts html:checkbox Or get search suggestion and latest updates.


Tagged: