I have a jsf
application in which on the first page, the user is allowed to select a file. In the action of that component
the selected file is set in the request as an attribute, and the page is redirected to a servlet
. In the servlet,
i do a request.getAttribute for the file name. But I am getting a npe when the servlet tries to access the filename.
Can someone tell me what I am missing. The web.xml servlet mapping does not have any attribute. I thought
the mapping was only for context params and init params.