• Post Reply Bookmark Topic Watch Topic
  • New Topic

CSS Issue When redirected from servlet to the JSP  RSS feed

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all I have a problem with loading css file.

1. I have page from which the form is submitted and and sent to the servlet.
2. servlet inserts the sql query of inserting the data and redirects user to another jsp
3. on that another jsp i have displayed the data currently inserted using sessions.
4. The data is displayed but the CSS file which is used for styling is not loaded

how to solve this problem?
many thanks in adv!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be sure that your href for the style sheet is a server-relative URL that starts with the context path. See the JspFaq for more info.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!