This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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................

 
I agree. Here's the link: http://aspose.com/file-tools
 
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