简体   繁体   中英

Open new page, deserialize object in GWT

I need to open new page and pass to this page object. New page will be handled by servlet. Please, tell me, how can pass object to servlet? Note, that this servlet will write content directly to new page.

Standard way of doing this is to issue a RPC request once the page is loaded. If you want to pass these data without additional RPC, you can pre-serialize the data into javascript variable. The most difficult for understanding part is serialization itself but these two articles give quite good insight on this:

  1. http://www.techhui.com/profiles/blogs/simpler-and-speedier-gwt-with
  2. http://wiki.shiftyjelly.com/index.php/GWT

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM