Not able to POST using struts2 .

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Not able to POST using struts2 .

manish_suriya

Hi All,


I am integrating Xforms with Struts2.

Please find the sample application attached.

In this On submit i am changing the previouss instance xml    (books-instance)   with the new  response instanc xml (books-instance) from server.


<xforms:submission action="/action/xformsave.action" id="load"
                instance="books-instance" method="post" ref="/" replace="instance" />


<xforms:submit submission="load">
<xforms:label>Revert</xforms:label>
</xforms:submit>


This thing is not happening..... I m not getting the updated instance in my jsp.


I am facing problem in POSTing data to the server.

Please let me know how should i do using POST ?

Thanks in Advance




Manish Suriya
ASE
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Strut2 and xforms.zip (25K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Not able to POST using struts2 .

Alessandro Vernet
Administrator
Manish,

On Oct 14, 2008, at 10:19 AM, Manish Suriya wrote:

> Please find the sample application attached.
>
> In this On submit i am changing the previouss instance xml    (books-
> instance)   with the new  response instanc xml (books-instance) from  
> server.
>
>
> <xforms:submission action="/action/xformsave.action" id="load"
>                 instance="books-instance" method="post" ref="/"  
> replace="instance" />
>
>
> <xforms:submit submission="load">
> <xforms:label>Revert</xforms:label>
> </xforms:submit>
>
>
> This thing is not happening..... I m not getting the updated  
> instance in my jsp.
>
>
> I am facing problem in POSTing data to the server.
>
> Please let me know how should i do using POST ?

You are submitting an instance with an <xforms:submission> to /action/
xformsave.action. How do you expect to receive the XML in your JSP? In  
the Java code for your action, or in the JSP, you can have access to  
the POSTed instance. You can see an example of that in xforms-jsp/
flickr-search/service-search.jsp. I am not sure if this is exactly  
what you are shooting for though.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws