After you get everything back, I needed to have everything stored into my application.
My question was how to redirect the user to the appropriate location.
Here's how you do it
Usually, the method that receives the Rest call says
@Produces("application/xml")
or
@Produces("application/pdf")
@Produces("text/plain")
turns out, you can do
@Produces("text/html")
Then, when your response is served to the client, it tells the browser to interpret it as an html. This is pretty neat! You can include a script tag inside the response and do a location.href = '/location_here'
I realized that this is just like saving the file with a .html extension. Neat!
So, we get a little lesson about how browsers read files.
That's about it! Everything seems pretty clear to me now. It's just a bunch of mop up work.
No comments:
Post a Comment