|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
To get Filename for jsp Page on URl
i am working on web based app. When i run the project, my url shows filename.jsp which instead it shoul show just filename in url. i have written servlet code for this, also done servlet mapping in web.xml file. but its not working. Can anyone suggest code for this? |
#2
| |||
| |||
Re: To get Filename for jsp Page on URl
You can try the below code and check if its working for you or not: Code: • <% ...getServletConfig().getServletContext().getRealPath(request.getServletPath()); //returns file name and path ... %> • <% ... application.getRealPath(request.getServletPath()); //returns file name and path ... %> • <% ... this.getClass().getName(); //returns the class name ... %> |
![]() |
|
Tags: jsp, jsp page, url, web based app |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert String to filename | Maya Angelou | Software Development | 5 | 12-03-2010 01:20 PM |
Excel filename too large | munkey79 | Windows Software | 2 | 09-07-2009 04:24 PM |
PXE-E53: No boot filename received | Jisbomb | Windows XP Support | 3 | 14-04-2009 07:43 AM |
max length filename | John A Grandy | Windows Server Help | 6 | 23-10-2008 11:00 PM |
PXE-E53 No boot filename received | notagirrafe | Windows Server Help | 3 | 13-06-2008 01:58 AM |