Hi,
I'm not quite sure how to do this, hopefully someone can help me out. I have a
page with two forms and a stripes:link at the bottom. This link needs to also
pass all of the parameters of the first form. Example,
<html>
<s:form beanclass="com.test.action.ActionOne" id="filterForm">
<s:text name="filter.field1" />
<s:text name="filter.field2" />
..
</s:form>
<s:form beanclass="com.test.action.ActionTwo" id="listForm">
<s:text name="list[${i}].field1" />
...
</s:form>
<s:link beanclass="com.test.action.ActionOne" event="exportExcel">
Export Excel
</s:link>
Here the first form contains some stuff to filter the contents of the second
form. The link takes all of the data items shown in the second form and
creates an excel sheet. I'd like to have their filter settings from the first
form also pass in here. Currently the only idea I've been able to come up with
is:
<a href="javascript:exportExcel()">
<script>
exportExcel() = function() {
window.location = '/ActionOne.action?exportExcel=&' +
$('filterForm').serialize();
}
</script>
But I'm not particularly fond of that, does anyone have any other ideas of how
to accomplish this?
Thanks!
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users