Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-89

Name property of a submit input not correctly set ("1" instead of real value)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.4
    • None
    • struts
    • None
    • Local on windows, Jboss Portal 2.7.1 bundle, jboss AS 4.2.3

    Description

      Hi.

      I've got a problem in my form, in a struts web app.

      Directly via the action, form is ok, but with struts portlet, there is a problem at the "name" tag of a submit input.

      Here is the submit input of my form :

      Code:

      <html:submit property="action" ><bean:message key="link.Cancel"/></html:submit>

      For both directly via the action and via the portlet, the generated html is :

      Code:

      <input type="submit" name="action" value="Cancel" />

      But in my form bean, i've got 2 different things :

      • Via the action, the property is ok, when I do a getAction() I obtain "Cancel"
      • Via the Struts portlet, when I do a getAction(), I obtain "1". (whatever the value I give to the submit input name)
        And it does that only for the submit input, text input are normal

      So there's a problem in the form bean Validator, and my form don't work...

      thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vantek Vincent Vanghelle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: