How to pre-populate a form from a web app on a different server
<p>I have Web Application A on Server A that links to Web Application B on Server B. I'm linking to a form that I want to pre-populate with data from Web Application A. So:</p>

<p>Web App A --Links to form and sends data for pre-population--> Web App B</p>

<p>Since they're on seperate servers I importunately can't just plop something into Session, so I'm going to have to be a little more creative. I'm considering a few different options and I'm looking for the simplest of those solutions. Any suggestions?</p>

<p>Here's a few options I'm considering:</p>

<ul>
<li>Pass the form data in the link via query string parameters. This seems simple enough, is the legit to do? Or is it a security concern? I'd be passing about 8 parameters, the most sensitive being e-mail address and address. This would all be over SSL.</li>
<li>Similarly, I could pass the data as POST parameters.</li>
<li><a href="http://stackoverflow.com/questions/2415032/share-session-between-2-j2ee-applications-deployed-in-jboss-server#2415599">Web App A writes a cookie, Web App B reads the data from the cookie</a>. (This seems like more of a security concern than passing as GET or POST parameters)</li>
<li>I could <a href="http://stackoverflow.com/questions/665941/any-way-to-share-session-state-between-different-applications-in-tomcat#answer-666072">share an object via JNDI to use for prepopulation</a>. Then I guess I could pass a unique ID on the query string which Web App B could use to pick up the object. This seems like it might be "overkill" and I'm not sure how this would work.</li>
<li>I could store the data in a database against a unique ID, pass the unique ID on the query string, then pick it up in Web App B from that same database. Again, this might be "overkill".</li>
</ul>

<p>Any thoughts? Or is there a better solution that I don't have listed? </p>
