struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amir Jamak <amirja...@yahoo.com>
Subject Re: Query String limitation
Date Wed, 29 Oct 2008 15:03:36 GMT
Thanks a lot Paweł I think you have solved my problem. In fact I didn't know how to change
from get to post. :-)
Thanks again.

Amir

--- On Wed, 10/29/08, Paweł Wielgus <poulwiel@gmail.com> wrote:
From: Paweł Wielgus <poulwiel@gmail.com>
Subject: Re: Query String limitation
To: "Struts Users Mailing List" <user@struts.apache.org>, amirjamak@yahoo.com
Date: Wednesday, October 29, 2008, 11:40 PM

Hi Amir,
i have completly no idea what Your problem is, but maybe this will help:
use <form action="myaction">....</form> instead of <a
href="myaction">...</a> on the jsp where this action is
triggered,
also pay attention to not to add method="get" inside form tag.
If You would provide more details about what You want to do it would
be simpler to answear.

Best greetings,
Paweł Wielgus.



2008/10/29 Amir Jamak <amirjamak@yahoo.com>:
> Hello everyone,
>
> I am using Struts 1.2.9, and this is my first post to this list. I was
trying to find solution elsewhere without any success.
> This is the problem, in the action form I have some sort of a collections
which can grow in size.  I have observed that all of the items are listed in the
query string. Once the collection reaches certain size, the page becomes white
after form submission, and query string becomes more than 1500 characters long.
I suppose that query string has some length limitation, therefore I should use
POST instead of GET, but I don't know how. In the struts-config.xml file the
action form is configured as follows:
>
>         <form-bean name="ActionForm"
>                    type="com.mycom.ActionForm" />
>
>         ....
>
>         <action input="/incl/somePage.jsp"
>                 type="com.mycom.Action"
>                 path="/Action"
>                 parameter="method"
>                 name="ActionForm"
>                 validate="true"
>                 scope="session">
>             <forward name="forward"
path="/incl/somePage.jsp"/>
>         </action>
>
> Any help is appreciated. Thanks in advance.
>
> Amir
>
>
>
>



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message