File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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
  • 0
  • 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.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic