Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.5.2
    • Fix Version/s: 2.5.5
    • Component/s: Core Actions
    • Labels:
      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

        Activity

        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Can you post content of a generated html page?

        Show
        lukaszlenart Lukasz Lenart added a comment - Can you post content of a generated html page?
        Hide
        flomomo Florian Laluque added a comment -

        <form method="post" action="/TicketScan/compte/test.action" name="test" id="test">
        <input type="text" id="test_toto" value="" name="toto">
        <button value="Submit" id="test_0" type="submit">Submit</button>
        </form>
        <a href="/TicketScan/compte/test.action?toto=toto">ici</a>

        Show
        flomomo Florian Laluque added a comment - <form method="post" action="/TicketScan/compte/test.action" name="test" id="test"> <input type="text" id="test_toto" value="" name="toto"> <button value="Submit" id="test_0" type="submit">Submit</button> </form> <a href="/TicketScan/compte/test.action?toto=toto">ici</a>
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Can you add method="get" to your form?

        Show
        lukaszlenart Lukasz Lenart added a comment - Can you add method="get" to your form?
        Hide
        flomomo Florian Laluque added a comment -

        it's ok with get method but i don't know why it doesn't work in post mode

        Show
        flomomo Florian Laluque added a comment - it's ok with get method but i don't know why it doesn't work in post mode
        Hide
        newton_dave Dave Newton added a comment -

        We'll probably need more information. But the appropriate place for this would be the Struts-User mailing list until it's confirmed there's a bug--JIRA tickets are for diagnosed, reproducible issues, not general application help.

        Show
        newton_dave Dave Newton added a comment - We'll probably need more information. But the appropriate place for this would be the Struts-User mailing list until it's confirmed there's a bug--JIRA tickets are for diagnosed, reproducible issues, not general application help.
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Florian Laluque maybe you have a servlet filter upfront which blocks POST requests

        Show
        lukaszlenart Lukasz Lenart added a comment - Florian Laluque maybe you have a servlet filter upfront which blocks POST requests

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development