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

Servlet mapping

Sameer Sebastian
Greenhorn

Joined: Aug 19, 2011
Posts: 17
Hello,

I am trying to access the servlet through my jsp.

The web.xml is in a folder named lib, which is under the same folder in which the jsp is.

The URL pattern is "/showTime"

So how do I write the servlet's address in my JSP?

Thanks in advance,
Sameer
Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
you should write like this
Sameer Sebastian
Greenhorn

Joined: Aug 19, 2011
Posts: 17
thanks man
Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
welcome man...

regs
prashant
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60992
    
  65

Except that the action should use a less fragile server-relative URL that starts with the contact path.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet mapping