| 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: 56554
|
|
|
Except that the action should use a less fragile server-relative URL that starts with the contact path.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Servlet mapping
|
|
|