7.2.1 getCustomWindowUrl method
This method acquires the URL of a custom window. You need to specify the ucnpUserPageId parameter for the URL acquired by this method.
- Organization of this subsection
(1) Format
public static String getCustomWindowUrl(HttpServletRequest request, HttpServletResponse response);
(2) Arguments
None
(3) Return values
The custom window URL beginning with ucnpBase is returned.
(4) Exception
None
(5) Example of use
The following shows an example when the form tag is used in the JSP file of the custom window.
<% String url = CustomWindowUrlUtil.getCustomWindowUrl(request, response); %> <form action="<%= url %>" method="post" target="_self"> <input type="hidden" name="ucnpUserPageId" value="userCustomPage" /> (snip) </form>