Hi Krishna,
You're right, there's currently no explicit way of telling Cactus to
simulate a method type. It could be added and you can create a JIRA issue
for this if you want.
That said, it is possible to make Cactus client side connects to the server
side using a POST method, which will lead the getRequest() method to return
"POST".
For this you have 2 options:
1- Set at least one HTTP parameter to be sent as POST
2- Specify user data to be sent in the request body
The simplest is the first solution:
public void beginXXX(WebRequest request)
{
[...]
request.addParameter("whatever", "whatever", WebRequest.POST_METHOD);
[...]
}
-Vincent
> -----Original Message-----
> From: krishna gajula [mailto:[EMAIL PROTECTED]
> Sent: mercredi 11 ao�t 2004 19:08
> To: [EMAIL PROTECTED]
> Subject: Setting request method type
>
> I am a writing a cactus test to test a struts action class. Here I need to
> set the request method as "POST" before I call "actionPerform()". The
> "getRequest()" method, sets the request method as "GET" , but I could not
> find any API to set request method as "POST". Please let me know if you
> have a solution to my problem. Your input is greatly appreciated. Thanks
> in advance.
>
> -Krishna
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]