• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why the 'initial' in the form-bean Does Not Automatically Populate the Form?

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The form-bean in my struts-config.xml is specified like this:

My servlet extends Action has the following code:

The action mapping for this action is like:

If I call the action with the threadForm submitted, the application works fine.

If I call the action "without" the threadForm submitted, the server cannot get the 'initial' in the form-bean.

Something must be missing because the 'initial' should automatically populate the form if the server cannot find a form.

I really hope someone could spot the error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic