top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

recover data generated by jqurety from a form

0 votes
272 views

I have a problem recovering from data using my cgi, lets says I got the following form and I want to recover the info generated by the javascript funtion ( getCSVdata() ), do you know how i could do it?

param(submit) returns "Get CSV File"
posted May 29, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

The form is working perfectly. You have a submit button with a specific value, "Get CSV File". When you query the value of the submit button you get the expected result, "Get CSV file".

Have you queried the value of the hidden parameter, csv_text, yet?

answer May 29, 2013 by anonymous
Similar Questions
0 votes

In the context of an tag, for instance for a login action, we previously always coded forms as :

 ....

And in the struts.xml we have been using :

content.login
 content.menu
 summary_input
 welcome

This has worked in the past and allowed us to not only use the action="login" to target the execute method of the action, but also to build links to, for instance, login_checkStatus.action to target other, specific methods within the action. I am not sure this Is a common/best practice, I had no prior struts2 experience before joining this company and this is how a lot of the existing functionality is coded. (If this is wrong/there is a better way, please let me know)

Now randomly, this fails to generate the proper action url in the html (it is missing the '.action', which results in a 404 once you post the form)

The only workaround we have found so far is to add the '.action' suffix to the
s:form's action attribute. Before it was always added for us by struts.

So now we are having success with

 ...

I can only assume that this has been affected by the changes related to S2-015 and the wildcard action matching.

...