Pass a string from one class to another class
<p>I have checked the tutorials and this should work but it doesn't. I have a string in one class that I want to use in another, but when I do, I get a null exception.</p>

<pre><code>@ViewScoped
@ManagedBean
public class FileDirectoryViewer {
FileUploadController destination = new FileUploadController();

        NewDestination = destination + username + "/";
</code></pre>

<p>And I am trying to get the destination from</p>

<pre><code>@ViewScoped
@ManagedBean(name = "fileUploadController")
public class FileUploadController {

    public String destination  = "D:/Documents/NetBeansProjects/printing~subversion/fileupload/Uploaded/"; // main location for uploads
</code></pre>

<p>How do I get the destination from <code>FileUploadController</code> to <code>FileDirectoryViewer</code>?</p>
