• Post Reply Bookmark Topic Watch Topic
  • New Topic

Path to servlet after forward  RSS feed

 
Miran Cvenkel
Ranch Hand
Posts: 208
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my.jsp


this works, but if I get there (to my.jsp) after forward




ex = (java.lang.IllegalArgumentException)java.lang.IllegalArgumentException: Path ../servlets/myservlet does not start with a "/" character


How to solve that ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JspFaq for how to properly format resource paths. In short, you need to use the context path.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!