HI i have made a module in which i have a controller which adds product to the cart through url . I have add a error messages from controller if the product is not valid.

The problem is the error message is shown above the content area .I need to show those in the content area.I have also tried to add these blocks in 

> 
> checkout.xml in content area
> 
> 
> 

```
         <reference name="content">
            <block type="checkout/cart" name="checkout.cart">
<block type="core/messages" name="global_messages" as="global_messages"/>
            <block type="core/messages" name="messages" as="messages"/>

```

but still it not loads the messages in the content area and show above the content area. Can you please suggest me how can i do this.