jQuery in Action, 2nd edition*
The moose likes Portals and Portlets and the fly likes File not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "File not found exception" Watch "File not found exception" New topic
Author

File not found exception

Subhash Pavuskar
Ranch Hand

Joined: Jun 29, 2011
Posts: 57

I have the following script in a jsp page.

String homesDir = response.encodeURL(request.getContextPath());
homesDir=homesDir+"/"+request.getParameter("user");

i got homesDir= /spaceplanner-portlet;jsessionid=EB503511999BB15533D4F3A6BD40965B/20tech

why is this session id getting appended to the root path.???

Because of this path data is not getting saved.

stacktrace................

 
 
subject: File not found exception
 
Similar Threads
How to fix "Problem accessing the absolute URL" exception?
Property 'menuHasChild' not readable on type java.lang.Integer
How to convert Blob Type back to File
org.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.NullPointerException
JDBC in JSP not working