File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes how to get filename to browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "how to get filename to browser" Watch "how to get filename to browser" New topic
Author

how to get filename to browser

aatish pandya
Greenhorn

Joined: Apr 20, 2011
Posts: 21
I am having my code written in NewServlet.java. How can I print the filename "NewServlet" to browser?
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

Welcome To JavaRanch

why not try to set the request or context parameters,
Set the name of file in it.
And get those parameter in your JSP


SCJP6.0,My blog Ranchers from Delhi
aatish pandya
Greenhorn

Joined: Apr 20, 2011
Posts: 21
Dear Shanky,

I want the name from the System like we can get date and time from the sys!
Suppose I made a Servlet "MyServlet". Now I have getName.Jsp file where I could pass the name of MyServlet and getName.jsp will just print "MyServlet" on the web browser! any help?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get filename to browser