You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/01/14 17:17:44 UTC

DO NOT REPLY [Bug 16066] New: - How can I prepopulate a form

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16066>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16066

How can I prepopulate a form

           Summary: How can I prepopulate a form
           Product: Struts
           Version: Unknown
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Documentation
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: edgar@blue-moose.net


The simplest way to prepopulate a form is to have an action whose sole purpose 
is to populate an  ActionForm and forward to a servlet/jsp/etc to manipulate 
the form.  You can use request parameters from the query string (extracted 
using request.getParameter(paramName) if you want specific information loaded.  
This allows you to turn off validation for the populate action and on for the 
form manipulation.

As you get more familiar with the machinations of ActionForms and Actions you 
can get more sophistocated in how form fields are populated.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>