File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet mapping

 
Sameer Sebastian
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should write like this
 
Sameer Sebastian
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks man
 
Prashant Chindhade
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
welcome man...

regs
prashant
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Except that the action should use a less fragile server-relative URL that starts with the contact path.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic