Hi folks

This might be a stupid question, but for me it seems to be hard to
understand in Stripes framework: How do I pass parameters between pages?

I want to pass more than just text fields (complex data objects) and I don't
want see the parameters in the URL. So, how to use forms effectively.

Not workable example:

page_1.jsp:
<stripes:form beanclass="foo.FirstActionBean" method="post">
  <table>
    <tr><td>Select CSV file to import. Maximum file size is 10 MB.</td></tr>
    <tr><td><stripes:file name="importedFile" size="60"/></td></tr>
    <tr><td align="right"><stripes:submit name="import"
value="Import"/></td></tr>
  </table>
</stripes:form>


FirstActionBean.java
@DefaultHandler
public Resolution importContacts() {

  // logic here ...

  RedirectResolution resolution = new
RedirectResolution("/pages/page_2.jsp");
  resolution.addParameter("result", complexDataType);
  return resolution;
}


page_2.jsp:
<p>Contacts imported
<p>Result: <!-- Some code here to parse the complex data object -->


Bests,
Timo


-- 
View this message in context: 
http://www.nabble.com/How-to-pass-data-between-pages-tp20268349p20268349.html
Sent from the stripes-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to