2015-04-24 178 views
0

我正在通过jax-rs端点调用一个jsp页面,如下所示。将参数传递给url

public String logout(@Context HttpServletRequest request,@DefaultValue("Empty Details") @QueryParam("logoutNotification") String logoutNotification, 
        @QueryParam("id_token_hint") String id_token_hint) { 
    Response response= Response.status(200).entity(logoutNotification).build(); 
    if(response.getEntity().toString().equals("True")){ 
     return "<html><head><script>\n" + 
       "window.open(\"https://localhost:9443/carbon/authenticationendpoint/test.jsp\");</script></head><body></body></html>"; 
    } 
    else { 
     return null; 
    } 

的事情是我需要一些参数从这个端点传递到“https://localhost:9443/carbon/authenticationendpoint/test.jsp”。我该怎么做? 我可以将它作为来自端点的查询参数传递吗?请指教我。 谢谢

+1

你就不能添加参数是这样的: window.open( \ “的url = PARAMNAME值\?”); – Sarkhan

回答