But if you don't want to access request object then first one is good.
if you want to access request object you have to implements your action to ServletRequestAware and implement the methid of this interface and then you can aaccess you request object.