Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF 2.0 , passing URL hidden parameters in ExternalContext.redirect() programmatically

user4658745Jul 15 2013 — edited Jul 16 2013

Hi , I have the following code on the submit of command button on the jsp page

 

ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
  try {
   externalContext.redirect("http://reportsserver.com/reports/rwservlet?server=server001&ORACLE_SHUTDOWN=YES&PARAMFORM=no&report=testrepr.rdf&desformat=pdf&desname=testrep.rdf.pdf&destype=cache&userid=scott/tiger@test&param1=7002&faces-redirect=true");
  } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }


I need to send all the parameters after rwservlet? as hidden parameters. These values do not come from any form field on the page. They are a part of the properties file on the disk. I would not like them to be displayed to the user when loading the next webpage or on the next web page.

Please let me know if there is any way to mark specific parameters in externalcontext.redirect() as hidden programatically

The xhtml code is

    <h:commandButton value="Submit" action="#{helloWorldBean.submitAction}"></h:commandButton>

 

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2013
Added on Jul 15 2013
1 comment
3,158 views