@Deprecated public class HttpPostRedirect extends Object
Constructor and Description |
---|
HttpPostRedirect()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
buildHtml(String title,
String actionUrl,
Map<String,String> params)
Deprecated.
Generate an HTML page that does a browser redirect via a POST.
|
public String buildHtml(String title, String actionUrl, Map<String,String> params)
<HTML>
<HEAD>
<TITLE>title</TITLE>
</HEAD>
<BODY Onload="document.forms[0].submit()">
<FORM METHOD="POST" ACTION="actionUrl">
<INPUT TYPE="HIDDEN" NAME="param" VALUE="value"/>
<NOSCRIPT>
<P>JavaScript is disabled. We strongly recommend to enable it. Click the button below to continue.</P>
<INPUT TYPE="SUBMIT" VALUE="CONTINUE"/>
</NOSCRIPT>
</FORM>
</BODY>
</HTML>
title
- may be null. Just the title of the HTML documentactionUrl
- URL to redirect toparams
- must be encoded so that they can be placed in an HTML form hidden INPUT field valueCopyright © 2021 JBoss by Red Hat. All rights reserved.