• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where does request goes?  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folloing is my servlet code



and folling is my jsp code :



when i click on the a href link of the table on jsp form. where will my request go ???

on my browser's address bar i'm getting folloing url



but there is nothing getting printed in my console neither for get method nor for post method... Where does my request goes ???
[ March 15, 2007: Message edited by: Bear Bibeault ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in your web.xml, who/what is mapped to intercept requests to *.do files? Are you using struts?
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nopes not using Struts,

web.xml



well for temperary i have created one jsp(controller.jsp) which will call servlet...
 
Raghavendra Nittur
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jigar Naik:
<servlet-class>com.tg.servlets.Controller</servlet-class>


make sure your servlet is in right directory.
I mean,
your_application_directory/WEB-INF/classes/com/tg/servlets/
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jigar Naik:
Where does my request goes ???


have you check the server log is this print statement printed or not?

if(req.getRequestURI().equalsIgnoreCase("/Blogging/getTopicDetails.do")){
System.out.println("Here ============= ");
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!