working with zoho writer in JSF frame work

working with zoho writer in JSF frame work


Hi Friends,

This is Sailaja, 

I am working with JSF framework in java.
While using zoho in my application, I am facing a problem,

i.e., when I am using html from , I can able to open document using Remote API
the code is like,

<form method="post"   enctype="multipart/form-data" target="_self" action="http://export.writer.zoho.com/remotedoc.im?apikey=ad40de81a92f4d644b474276c7ac1640&amp;output=editor">
<h:commandButton actionListener="#{zoho.edit}" value="Edit" >
<input type="hidden" name="url" value="http://customers.info-sun.com/itrack/templateDocuments/TestPlan.doc"></input>
<h:inputHidden value="#{zoho.edit}" id="saveurl"/> 
<input type="hidden" name="filename" value="mydocument.doc"></input>
<input type="hidden" name="id" value="12345678"></input>
<input type="hidden" name="format" value="doc"></input>
</h:commandButton>
</form>


but to save that file I need HTTPServeletRequest and HTTPServlet responce,
to get them in jsf i need FacesContext , using that I am getting request and responce


But,  my problem is if I use html form I cannot able to get request and Responces in my java code

if Iam using <h:form>
I cont able to give action attribute in form, so it is not opening in zoho editor.



Please any one of u guid me to work with zoho in my application.