Two Laptop Bag
The moose likes Struts and the fly likes Why the 'initial' in the form-bean Does Not Automatically Populate the Form? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Why the Watch "Why the New topic
Author

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

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Why the 'initial' in the form-bean Does Not Automatically Populate the Form?
 
Similar Threads
Getting error in trying to display form.
Perform the Same Action "with" and "without" a Form
DynaActionForm with ActionMapping
html:optionsCollection from a DynaActionForm
How To Get the 'initial' From the form-property?