Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Egidius Bakker   on Jul 28 In Java Category.

  
Question Answered By: Antonio Dunn   on Jul 28

This is a simple example of use these article :


public FileUploadForm() {
if(FacesContext.getCurrentInstance().getExternalContext().
getRequestParameterMap().containsKey("defaultsavepath_name"))
{
this.savePathName=FacesContext.getCurrentInstance().
getExternalContext().getRequestParameterMap().
get("defaultsavepath_name").toString();

FacesContext.getCurrentInstance().getExternalContext().
getRequestParameterMap().put("defaultsavepath_name",this.savePathName);
}
else
{
Object tmpDir =
FacesContext.getCurrentInstance().
getExternalContext().getRequestParameterMap().get("dirName");
if (tmpDir != null && !tmpDir.toString().equals(""))
{
String tmpdirName = tmpDir.toString();
savePathName = savePathName + "\\" + tmpdirName;
FacesContext.getCurrentInstance().getExternalContext().
getRequestParameterMap().
put("defaultsavepath_name", this.savePathName);
}
...
}

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on JSF Error Or get search suggestion and latest updates.


Tagged: