Post parameters are null while accessing through url rewrite

View: New views
4 Messages — Rating Filter:   Alert me  

Post parameters are null while accessing through url rewrite

by sacsha30@gmail :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All

I am a newbee to struts. I have made a test website in struts. I have added
some forms to the pages which inserts data to the database using action. The
parameters are sent as post.
All is working fine when I put http://localhost:8080/myproj.

I have done url rewriting to map my web app to my test url. When I tried
accessing the site from that url, none of the form is working although the
pages appears fine.

When I check the parameters by sysout in action, all the parameters are
null. But when I change the request to "get" from "post" all works fine.

Am I doing something wrong? Has anybody experienced this kinda problem?
Please suggest.

I am using tomcat 5.5.27.

--
Regards
Sachin Sharma

Re: Post parameters are null while accessing through url rewrite

by sacsha30@gmail :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Also I have used mod_rewrite for url rewriting.


On Thu, Jul 2, 2009 at 2:37 AM, sac sha <sacsha30@...> wrote:

> Hi All
>
> I am a newbee to struts. I have made a test website in struts. I have added
> some forms to the pages which inserts data to the database using action. The
> parameters are sent as post.
> All is working fine when I put http://localhost:8080/myproj.
>
> I have done url rewriting to map my web app to my test url. When I tried
> accessing the site from that url, none of the form is working although the
> pages appears fine.
>
> When I check the parameters by sysout in action, all the parameters are
> null. But when I change the request to "get" from "post" all works fine.
>
> Am I doing something wrong? Has anybody experienced this kinda problem?
> Please suggest.
>
> I am using tomcat 5.5.27.
>
> --
> Regards
> Sachin Sharma
>
>


--
Regards
Sachin Sharma

Re: Post parameters are null while accessing through url rewrite

by sacsha30@gmail :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All

Any ideas?

I am really stuck with this problem as it is restricting me to make my
application live.

Regards

On Thu, Jul 2, 2009 at 2:41 AM, sac sha <sacsha30@...> wrote:

> Hi
>
> Also I have used mod_rewrite for url rewriting.
>
>
> On Thu, Jul 2, 2009 at 2:37 AM, sac sha <sacsha30@...> wrote:
>
>> Hi All
>>
>> I am a newbee to struts. I have made a test website in struts. I have
>> added some forms to the pages which inserts data to the database using
>> action. The parameters are sent as post.
>> All is working fine when I put http://localhost:8080/myproj.
>>
>> I have done url rewriting to map my web app to my test url. When I tried
>> accessing the site from that url, none of the form is working although the
>> pages appears fine.
>>
>> When I check the parameters by sysout in action, all the parameters are
>> null. But when I change the request to "get" from "post" all works fine.
>>
>> Am I doing something wrong? Has anybody experienced this kinda problem?
>> Please suggest.
>>
>> I am using tomcat 5.5.27.
>>
>> --
>> Regards
>> Sachin Sharma
>>
>>
>
>
> --
> Regards
> Sachin Sharma
>
>


--
Regards
Sachin Sharma

Re: Post parameters are null while accessing through url rewrite

by DNewfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sac sha wrote:
> Any ideas?
>> Also I have used mod_rewrite for url rewriting.
>>> When I check the parameters by sysout in action, all the parameters are
>>> null. But when I change the request to "get" from "post" all works fine.

Sounds like url rewriting is eating the post data.  I'd guess you've got
the rewrite engine configured incorrectly.

Confirm that posting directly to the translated url works, then you know
it's the rewriter, and you can muck with that configuration until you
get the same results posting to the original or translated urls.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...