java - Redirect or forward in web application -
hi all
have requirement like, web page on event user redirect myapp's login page parameter. want test myapp able parameter or not. test made app in using (code below ). showing parameter in url don't want. want know other ways there redirect/forward url parameter ( parameter should hidden hiddn ).
<% response.setstatus(httpservletresponse.sc_moved_permanently); response.setheader("location","http://localhost:8080/myapp/login/login.jsf?user_id=inc&reference_id=123456789"); %>
thanks
it's not possible post redirects, can't redirect post scriptlet.
what can is:
build html form in post parameters want pass, remember, post perceived security brittle, since tool firebug can see variables (or can @ html source).
a way around problem use encryption or 1 time passwords (that last session). used way, connect seamlessly java application php. if you're interested , share details of solution.
Comments
Post a Comment