• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why execute twice doGet mothed in servlet.

 
xiaojun chen
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I using MVC formwork in UI. When Jsp file link a css file. So it will be execute twice doGet mothed in servlet. When I don't link this css file. It will be Ok. Please tell me what problem? Web container is weblogic. :roll:
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us some code?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like the browser is trying to fetch the CSS file by using the servlet URL. You should either specify the full URL for the CSS or use a base tag in the <head> area specify where resources like css files etc live.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic