Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4678

Post method doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.5.2
    • 2.5.5
    • Core Actions
    • None

    Description

      <s:form action="test" includeContext="true" namespace="/compte" theme="simple">
          <s:textfield name="toto"></s:textfield>
          <s:submit type="button" value="Submit"/>
      </s:form>
      
      <s:url var="urlPage" action="test" namespace="/compte">
          <s:param name="toto">toto</s:param>
      </s:url>
      <s:a href="%{urlPage}"> ici</s:a>
      

      if i submit the form, the result is a 404 error, struts can't go into my action java. But if i click on the <a> url it's ok, I have the same result if i force get method to the form.

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            flomomo Florian Laluque
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: