All,
Is it possible for two separate POSTs to be supported under a single URI?
For e.g.
I have a URI ... say ... /newAccount
And, my Jersey code looks like this ...
@Stateless
@Path("/ca")
public class ConsumerAccountRsrc {
@POST
@Consumes("application/x-www-form-urlencoded")
@Produces("text/html")
public String createNewAcc(
@FormParam("email") String emailAddr,
@FormParam("atype") String AccType)
{
...
}
@POST
@Consumes("application/x-www-form-urlencoded")
@Produces("text/html")
public String createNewAcc(
@FormParam("email") String emailAddr,
@FormParam("atype") String AccType,
@FormParam("somethingDifferent") String blah
)
{
...
}
}
It seemed to compile but ...
--
Arthur Y.
*Don't ever forget Sept. 11 !!!*